×
Namespaces

Variants
Actions
(Difference between revisions)

Archived:Displaying the name of the active language of a Symbian device

From Nokia Developer Wiki
Jump to: navigation, search
Forum Nokia KB (Talk | contribs)
m (1 revision(s))
Forum Nokia KB (Talk | contribs)

Revision as of 09:20, 30 May 2008

Template:KBTS


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);
}
73 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×