Details
-
User Story
-
Resolution: Out of scope
-
P1: Critical
-
None
-
None
-
None
Description
Hi;
I have the folloing source string in the .ts file:
<message>
<location filename="../../AutoGenerated/afSGAnalogEnumsCommon.cpp" line="60"/>
<source>Set 0° Reference</source>
<translation>璁剧疆0掳鍙傝€冩爣鍑?/translation>
</message>
<message>
<location filename="../../AutoGenerated/afSGAnalogEnumsCommon.cpp" line="60"/>
<source>0° reference not set</source>
<translation>鏈缃?掳鍙傝€冩爣鍑?/translation>
</message>
lrelease it using QT Linguist and load the .qm into QTranslator object. However, it fails to find/translate the source string when I do the following in my .cpp file (Visual Studios 2008):
QApplication::translate(m_context.c_str(), QT_TR_NOOP("0\xc2\xb0 reference not set"));
QApplication::translate(m_context.c_str(), QT_TR_NOOP("Set 0\xc2\xb0 Reference"));
Please advise. Thanks.
Regards,
KH