How to use Qt Linguist for Any other language translation?
Hi All,
In my application I wanted to change the language as per the user preference. ie nothing but if the user can select any regional language accordingly the application should load the language dynamically.
I went thru the Qt Linguist in that I couldn't get the languages like Hindi, Tamil and etc., Because these are all has different script(written strokes).
Could any help me in this regard....
Thanks a lot in advance..........
Re: How to use Qt Linguist for Any other language translation?
I use QTranslator and QSettings for this.
Code:
switch (settings.value("appearance/language").toInt()) {
translator.
load(QString(":myproj_ru"));
break;
default:
translator.
load(QString(":myproj_en"));
}
Well, i have to rerun my app after i change language settings in my options dialog =(... but it is ok for me.
Re: How to use Qt Linguist for Any other language translation?
Thanks buddy,
But my questions are
How to get the other language support in Qt Linguist which is not available in Qt Phrase Book? (Like Arabic, Hindi languages).
Where to keep the " *.ttf " font file to use in Qt Linguist.?
Thanks in Advance...
Note:
I'm using Qt4 in Linux.
Re: Problem in changing the language using Qt Linguist...?
Dear All,
Can any one help me to change the language of an application in the runtime.
Because I'm working in an application like mobile device, in that let the user can change the language of the application without restarting the device.
I hope it is possible but couldn't make it out. So any one help me to crack the problem.
Thanks a lot in advance...:)
Re: How to use Qt Linguist for Any other language translation?