Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Libraries and TheIDE: i18n, Unicode and Internationalization » How can I translate the controls for my app?
Re: How can I translate the controls for my app? [message #34401 is a reply to message #34398] Sun, 20 November 2011 17:25 Go to previous messageGo to previous message
dolik.rce is currently offline  dolik.rce
Messages: 1789
Registered: August 2008
Location: Czech Republic
Ultimate Contributor

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 Wink 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 Smile ), have a look here to see how to do it.

Best regards,
Honza
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Ctrl responds to Language-Setting event?
Next Topic: Date format for zhCN
Goto Forum:
  


Current Time: Mon Apr 29 01:31:40 CEST 2024

Total time taken to generate the page: 0.05787 seconds