Multiple language selection
-
Hi everyone,
I am developing a application like that, if i chose to other language like French (means other than English) my entire application will change to selected language. I referred some sample codes also, but it is not working. If any one did this type of application development can you please help me.
Can you please advise me how to do this or if have any sample code please share for my reference, it helps me.
Regards
Karthick -
I am not sure if I understood correctly, but is this what you mean:
Add "settings" widget with list of supported languages and when the
user select a new language from the list the application changes to
use that language?If that is what you meant then what you need to do is to
create and install a new QTranslator object to your window.
You also need to overridevoid QWidget::changeEvent(QEvent * event)
in your window class. You need to call reTranslate() function from there,
providing that you are using Qt Designer/Creator created UI. You also
need to manually retranslate all manually created string in the event -
Thanks for reply,
That's what i want, if you have any sample codes or links can you share me please.thank you once again.
Regards
Karthick