Language translation with hot keys...
-
The application I am working on has to work in both English and French, today I had to change hot keys on some of the buttons, now the translations no longer work.
Before the working text was DataSets::tr("&Add New Dataset...") this is obviously the English version and the French translation worked, however now it is DataSets::tr("Add &New Dataset...") and the translation no longer works, when in French this entry still appears in English.
I would imagine this is a common problem, what is the fix?
-
@SPlatten said in Language translation with hot keys...:
the translation no longer works, when in French this entry still appears in English
Yes, because you changed the lookup "key" in the "translation map".
Please keep in mind that the tr() method uses the string argument to look for and return a translated string in the current active translator.
You need to do the lupdate/translate/lrelease cycle again. -
@Pablo-J-Rogina , of course, thank you.