trallallero
26th October 2011, 07:46
I'm working on a GUI that uses QTranslator and everything works fine.
I load the language at start up and can change it on the fly.
The only problem is that the menu (menuBar) is not translated when the language is switched.
If I save the options and restart the GUI, then the menu is in the right language but if I
change the language on the fly, the menu is not translated.
I create the menu after having installed the translator.
I create all the menus/actions with the tr("name") function.
What am I missing ?
thanks
Added after 18 minutes:
Another question: is it possible to run lupdate automatically from the makefile ?
If yes, what should I write in the .pro file ?
I load the language at start up and can change it on the fly.
The only problem is that the menu (menuBar) is not translated when the language is switched.
If I save the options and restart the GUI, then the menu is in the right language but if I
change the language on the fly, the menu is not translated.
I create the menu after having installed the translator.
I create all the menus/actions with the tr("name") function.
What am I missing ?
thanks
Added after 18 minutes:
Another question: is it possible to run lupdate automatically from the makefile ?
If yes, what should I write in the .pro file ?