I looked at adding a comment as per your request, however it's not as simple as it seemed :( the user interface is defined in a QT .ui file, so the string is contained in an XML block like this:
<string comment="Maximum length is 14 characters per line">System
Testing</string>
This is then converted to a .h file by uic-qt4. However the comment doesn't actually get added as a "comment" to the C file, rather, it's added as a "context" to the translator method we specify:
welcomeLabel->setText(checkboxTr("System \n"
"Testing", "Maximum length is 14 characters per line"));
Since this is not an actual comment, when intltool is run in the next step, this gets completely ignored:
So apparently, as it is I don't think we can add the comment as you request :( My apologies for this. I will continue to research ways to add the comment to help translators.
Hi Redmar,
I looked at adding a comment as per your request, however it's not as simple as it seemed :( the user interface is defined in a QT .ui file, so the string is contained in an XML block like this:
<string comment="Maximum length is 14 characters per line">System
Testing</string>
This is then converted to a .h file by uic-qt4. However the comment doesn't actually get added as a "comment" to the C file, rather, it's added as a "context" to the translator method we specify:
welcomeLabel- >setText( checkboxTr( "System \n"
"Testing", "Maximum length is 14 characters per line"));
Since this is not an actual comment, when intltool is run in the next step, this gets completely ignored:
#: ../qt/frontend/ ui_qtfront. h:635
msgid ""
"System \n"
"Testing"
msgstr ""
So apparently, as it is I don't think we can add the comment as you request :( My apologies for this. I will continue to research ways to add the comment to help translators.