Handling identical text translation based on build flag.
-
Hi team,
I have nearly 10000+ strings where most of the strings need to be translated with different text along with existing one.
For Example, say I have a text added from qml called qsTranslate("Mode", "Current State");
So after lupdate this marks string for translation.
<context>
<name>Mode</name>
<message>
<location filename="../Main.qml" line="42"/>
<source>Current State:</source>
<translation>Current State:</translation>
</message>
</context>Translation.h
QT_TRANSLATE_NOOP("Mode", "Current State");As this text is more than 5000+ places, and also I need change with respect to build flag i.e say debug mode and release mode,
In debug mode, we need this earlier translation i.e., "Current State" where as in release mode, It should display "Active state".How can I achieve this? Please provide some guidelines for simple approach.
Thanks in advance.