|
|
Home » Extra libraries, Code snippets, applications etc. » Applications created with U++ » drawing toy ( sort of )
|
|
|
|
|
|
|
|
|
Re: drawing toy ( sort of ) [message #23258 is a reply to message #23257] |
Mon, 05 October 2009 21:09   |
|
Quote: |
mr_ped wrote on Mon, 05 October 2009 16:42 |
Why is that good? If the user is just visiting that country and actually doesn't speak that language, he can't switch it?
|
If a user visit a country and doesn't speak that language he/she will change the language for entire system not just for an application. Simple is better.
|
I agree with mr_ped on this... For example on my system there is only czech and english locale installed, so my German friend has no choice... But even if he doesn't speak any of those languages, I should be able to switch the application into German for him. I would probably not install full German locale just because he needs to use one application. Simple is better 
PS: That said, I agree that automatic detection should be primary way to setup language. Just saying that there should be a choice in configuration or somewhere.
[Updated on: Mon, 05 October 2009 21:16] Report message to a moderator
|
|
|
|
|
|
Re: drawing toy ( sort of ) [message #23262 is a reply to message #23261] |
Mon, 05 October 2009 22:58  |
andrei_natanael
Messages: 262 Registered: January 2009
|
Experienced Member |
|
|
koldo wrote on Mon, 05 October 2009 23:07 | Hello all
if(program.lang == -1)
SetLanguage(SetLanguage(GetSystemLNG()));
else
SetLanguage(program.lang);
So the first time the program starts with the system language an the rest with the one the user has chosen.
|
Once you've set the language manually you loose automatic change of language if you change the system language.
Quote: |
Because of it I need an option to choose the language and I would prefer to populate it with the supported languages. But I would like to know how to find the languages included in a project .t file.
|
I don't think that is possible(or not so easy) because AFAIK U++ translations are shared with application translations. You may detect that you have multiple translations (in U++ part) but in reality your application may not provide translations to that language and it result in incomplete translation (mixed translation i think, en-us - your-lang).
|
|
|
Goto Forum:
Current Time: Sat Apr 26 14:52:28 CEST 2025
Total time taken to generate the page: 0.00906 seconds
|
|
|