How to change language in QMenu in QMainWindow class
-
Thanks a lot, so after surfing a bit around, I've found the following article:
http://developer.symbian.org/wiki/Apps:Deploying_a_Qt_Application#Change_the_language_of_the_installationSo, I added to my .pro file, (symbian configuration) the following code
@languages = "&HR"
my_deployment.pkg_prerules = languages
DEPLOYMENT += my_deployment@Now my .pkg file say it's croatian, by anyway, I got English in my QMenu...again :(
-
You need to test it in a device with croatian lang pack installed.
-
is Nokia 5230 with a system running in Croatian enough? or I need to install some language pack for Qt :S on my phone (confused :))?
-
Check what languages are supported in your device by going to its settings.
-
Croatian is default one :(
-
In that case it should have worked. May be we are missing something else. Check if we have .lHR file generated. This would be your croatian specific language resource.
-
No, unfortunately, there is no such file. Any solutions?
-
Usually in symbian, .loc file contains localized strings. So if its english it would be .l01, the 01 is the lang code for english. Similarly there would be one for croatian also.
Does other native apps show the option menu properly in croatian and only your app displays it in english.
-
I've checked my .loc file and here is the content:
@
#ifdef LANGUAGE_SC
#define STRING_r_short_caption "Lista"
#define STRING_r_caption "Lista"
#elif defined LANGUAGE_45
#define STRING_r_short_caption "Lista"
#define STRING_r_caption "Lista"
#else
#define STRING_r_short_caption "Lista"
#define STRING_r_caption "Lista"
#endif
@Code for Croatian is 45 so, I assume this is correct. Unfortunately, these problems I have only with my application, the other ones running on my phone (i.e. Contacts) display Menu properly, in Croatian.
-
Hi, i have similar problem
all the qt application that i create with qt have "Options" and i can't translate it to other language. is there any solution for this? i have to translate my application to "Latvian". my phone (nokia 5230) supports "Latvian" and in other Nokia applications "Options" is "Iespējas" (Latvian "Options")