Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Empty translation results in sourceText using qsTranslate



  • I'm using qm for translation. If a translation value is intentionally empty, qsTranslate treats it as invalid translation and returns the sourceText.

    For instance, if I have this in the ts file:

    <message>
       <source>note_txt.value</source>
       <translation></translation>
    </message>
    

    qsTranslate(context, 'note_txt.value') returns 'note_txt.value' instead of ''.

    Is there a way to specify an empty translation string?


Log in to reply