Archived:Displaying the name of the active language of a Symbian device
m (Protected "TSS001003 - Displaying the name of the active language of the phone" [edit=sysop:move=sysop]) |
|||
| Line 1: | Line 1: | ||
| − | [[Category:Symbian C++]][[Category:S60]][[Category:S60 3rd Edition ]][[Category:S60 3rd Edition, Feature Pack 1 ]][[Category:Technical Solution | + | [[Category:Symbian C++]][[Category:S60]][[Category:S60 3rd Edition ]][[Category:S60 3rd Edition, Feature Pack 1 ]][[Category:Technical Solution]][[Category:Code Examples]][[Category:Base/System ]] |
{{KBTS}} | {{KBTS}} | ||
__NOTOC__ | __NOTOC__ | ||
Revision as of 09:21, 30 May 2008
| ID | TSS001003 | Creation date | May 30, 2008 |
| Platform | S60 3rd Edition, S60 3rd Edition, FP1 | Devices | |
| Category | Symbian C++ | Subcategory | Base/System |
Detailed 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);
}

