Namespaces
Variants
Actions
Revision as of 14:38, 24 June 2011 by hamishwillee (Talk | contribs)

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

Jump to: navigation, search

Template:KBTS


Article Metadata

Compatibility
Platform(s): S60 3rd Edition, S60 3rd Edition, FP1

Article
Created: User:Technical writer 1 (30 May 2008)
Last edited: hamishwillee (24 Jun 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);
}
128 page views in the last 30 days.
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved