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 » Extra libraries, Code snippets, applications etc. » OS Problems etc., Win32, POSIX, MacOS, FreeBSD, X11 etc » GetUserDefaultUILanguage identifier not found (GetUserDefaultUILanguage identifier not found)
Re: GetUserDefaultUILanguage identifier not found [message #44792 is a reply to message #44790] Sun, 28 June 2015 22:56 Go to previous messageGo to previous message
Klugier is currently offline  Klugier
Messages: 1076
Registered: September 2012
Location: Poland, Kraków
Senior Contributor
Hello,

The most important thing in multi platform frameworks is that you shouldn't use operating system related methods at all in your applications. Please notice that code writing in the way you are talking about didn't compile under Linux.

Ultimate++ is such powerful framework and has language related function, so "GetUserDefaultUILanguage" is not needed anymore. For more information please read following topic: http://www.ultimatepp.org/srcdoc$Core$i18n$en-us.html.

For equivalents please search in documentation, you can do this easily by searching in Google box located on the left side of this website (For some reason it is only available outside forum Sad ).

Equivalent for function "GetUserDefaultUILanguage";
SetLanguage(GetSystemLNG()); // <- You should do this at the begging of your app then macro "t_" should load translated string.


P.S.
Don't forget to create translation file (.t extension). To synchronize translation please click on flags icon inside ide.

Sincerely,
Klugier


U++ - one framework to rule them all.

[Updated on: Sun, 28 June 2015 23:05]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: [Debian, Ubuntu] Add "sox" package dependency
Next Topic: Heap Leaks on Linux when migrating to new distro and newer UPP
Goto Forum:
  


Current Time: Fri Apr 19 23:45:17 CEST 2024

Total time taken to generate the page: 0.04230 seconds