Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-23241

QTranslator does not translate special unicode character

    XMLWordPrintable

Details

    • User Story
    • Resolution: Out of scope
    • P1: Critical
    • None
    • None
    • Tools: Linguist
    • 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

      Attachments

        1. zh_CN.qm
          23 kB
        2. zh_CN.ts
          48 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            buddenha Oswald Buddenhagen
            khteh Teh Kok How
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes