IFW translations in controller.qs
-
What is the correct way to make translations work in controller script?
I am trying to translate custom abort text:
Controller.prototype.TargetDirectoryPageCallback = function() { if (!checkOS()) { var msg = qsTr("Installation on %1 is not supported."); cancelInstaller(msg.replace("%1", systemInfo.prettyProductName)); return; } }I have my .ts and .qm file in config directory, but it doesn't work.
I've already tried to add qm file to <Translations> and resource.qrc file (as prefix="/translations_new" and prefix="/translations") without success..
I didn't see it loaded using setup.exe -d -d command. -
I've downloaded sources and now I know that it is not possible to add additional translations to ControlScript (via config.xml).
Dev can only provide full translation files qt_lang.qm or ifw_lang.qm.I've moved my code to Component's script and handle it there, but it would be nice to set installer status to failed instead using custom variable through installer.setValue().