Change Menu Text with a parameter
The menu is defined in menulang.h
I want to change the text with a parameter.
eg
if (a)
{#define UI_TEXT_PRINT_TIME_DE "XX";}
else
{#define UI_TEXT_PRINT_TIME_DE "YY";}
the #define is a definition for the compiler - I am not familiar with it.
Is there a trick?
I want to change the text with a parameter.
eg
if (a)
{#define UI_TEXT_PRINT_TIME_DE "XX";}
else
{#define UI_TEXT_PRINT_TIME_DE "YY";}
the #define is a definition for the compiler - I am not familiar with it.
Is there a trick?
Comments
eg I want to misuse %do as a placeholder. How can I import another text?
...
case 'd': // debug boolean
//original if (c2 == 'o') addStringOnOff(Printer::debugEcho());
if (c2 == 'o') addStringOnOff("tt");
..
That is not working, "An" is added in the text
#define UI_TEXT_PRINT_TIME_DE " %do"
I added %P1,%P2,.. as placeholders.
works fine with addStringP!
Thanks again.