|
|
Home » U++ Library support » U++ Libraries and TheIDE: i18n, Unicode and Internationalization » How can I translate the controls for my app?
How can I translate the controls for my app? [message #34398] |
Sun, 20 November 2011 16:27 |
lectus
Messages: 329 Registered: September 2006 Location: Brazil
|
Senior Member |
|
|
Hi!
I like Upp, but one feature I miss (or I don't know how to use) is to translate the controls.
For example:
I want to translate the Report Dialog to say "Print" in my native language, I want the calendar control to say "November" in my language to, and I want the EditDate to show dates in non-US format like say 20/11/2011 instead of 11/20/2011.
Any help is welcome!
Thanks
|
|
|
|
Re: How can I translate the controls for my app? [message #34401 is a reply to message #34398] |
Sun, 20 November 2011 17:25 |
|
lectus wrote on Sun, 20 November 2011 16:27 | Hi!
I like Upp, but one feature I miss (or I don't know how to use) is to translate the controls.
For example:
I want to translate the Report Dialog to say "Print" in my native language, I want the calendar control to say "November" in my language to, and I want the EditDate to show dates in non-US format like say 20/11/2011 instead of 11/20/2011.
Any help is welcome!
Thanks
|
Hi lectus,
The feature is definitely there In best case all you have to do is to call SetLanguage somewhere before the GUI is initialized (best at the beginning of main) e.g. for cs-cz:GUI_APP_MAIN {
SetLanguage(LNG_('C','S','C','Z'));
MyApp().Run();
}
After this all the strings in GUI (at least those generated using layouts, for in-code strings use t_() macro to mark them for translation) for which the translations are available will be translated.
In case your language is not translated yet, nothing will happen and the strings will remain English. In such case please have a look at Project > Synchronize translation files to confirm it is not listed there. It is very easy to provide translation to new language (well, apart from the actual translating - that can be tedious ), have a look here to see how to do it.
Best regards,
Honza
|
|
|
|
|
|
|
|
|
|
Goto Forum:
Current Time: Sat Apr 20 11:35:32 CEST 2024
Total time taken to generate the page: 2.02379 seconds
|
|
|