Archived:Displaying the name of the active language of a Symbian device
hamishwillee
(Talk | contribs) m (Hamishwillee - Bot change of template (Template:KnowledgeBase) - now using Template:ArticleMetaData) |
hamishwillee
(Talk | contribs) m (Hamishwillee - Adding missing translation link) |
||
| Line 50: | Line 50: | ||
} | } | ||
</code> | </code> | ||
| + | <!-- Translation --> [[zh-hans:显示手机上当前语言的名称]] | ||
Revision as of 06:55, 16 December 2011
Article Metadata
Compatibility
Platform(s): S60 3rd Edition, S60 3rd Edition, FP1
Article
Created: User:Technical writer 1
(30 May 2008)
Last edited: hamishwillee
(16 Dec 2011)
Description
The following code can be used to retrieve the default language of the device:
Header files:
akninputlanguageinfo.h
Library:
akninputlanguage.lib
Capability:
None
TDes& language;
TLanguage languageId;
languageId = User::Language();
CAknInputLanguageInfo* Langg =
AknInputLanguageInfoFactory::CreateInputLanguageInfoL();
if(Langg)
{
CleanupStack::PushL(Langg);
language.Append(Langg->LanguageName(languageId));
CleanupStack::PopAndDestroy(Langg);
CEikonEnv::InfoWinL(_L("Phone Language is:"), language);
}

