I'm working with existed code (.qml) and need to change line that translates by QTranslator with qm/ts translation files.
For example, the line in .qml file was:
item.text = qsTr("Old")
So I change it to:
item.text = qsTr("New")
But Linguist see "Old" line with no issue.
Maybe I need to change .ts file's line directly?
I have never done this before and want to change this properly. Can you advice me how would you do, if you have project that have translations file, but you actually need to change one line in application so it would be effect on origin text and translated one?
StephenQuan said:
Do you know how to run
lupdate
andlrelease
?
Based on that, if you need to change lines translated by Linguist you need to use:
Instruments > External > Linguist > lupdate
to update lines in .ts
file, and than set translation to those lines in Linguist. Then run lrelease
to update .qm
translation files for your project.