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 » GetLanguageCode
Re: GetLanguageCode [message #19727 is a reply to message #19725] Wed, 07 January 2009 16:50 Go to previous messageGo to previous message
White_Owl is currently offline  White_Owl
Messages: 27
Registered: January 2009
Location: New York
Promising Member
luzr wrote on Wed, 07 January 2009 13:42

This would work, right?:
Looks like it. With some minor corrections of course Smile

Topic GetTopicLNG(const String &path) {
	return GetTopic(path + "$" + ToLower(LNGAsText(SetLNGCharset(GetCurrentLanguage(), CHARSET_DEFAULT))));
}


I am not sure about the second one though... May be with a longer name it would be more easy to use:
int GetCurrentLanguageIdWithDefaultCharset()
{
    return SetLNGCharset(GetCurrentLanguage(), CHARSET_DEFAULT));
}
But I do not actually see where this shortcut would be useful.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: how to add ISO10646 charset?
Next Topic: GetNativeLangName returns English for non-english languages
Goto Forum:
  


Current Time: Fri Jun 20 16:06:04 CEST 2025

Total time taken to generate the page: 0.03497 seconds