×
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)
extkbeditor1 (Talk | contribs)
m
Line 3: Line 3:
 
__NOTOC__
 
__NOTOC__
 
__NOEDITSECTION__
 
__NOEDITSECTION__
{|style="background:#eceff2" width="660px" border="1" cellpadding="5" cellspacing="0"
+
{{KnowledgeBase
|-
+
|id=TSS001003
|'''ID''' ||TSS001003
+
|platform=S60 3rd Edition, S60 3rd Edition, FP1
|'''Creation date''' ||May 30, 2008
+
|devices=
|-
+
|category=Symbian C++
|'''Platform''' ||S60 3rd Edition, S60 3rd Edition, FP1
+
|subcategory=Base/System
|'''Devices''' || 
+
|creationdate=May 30, 2008
|-
+
|keywords=
|'''Category''' ||Symbian C++
+
}}
|'''Subcategory''' ||Base/System
+
|}
+
 
+
==Detailed description==
+
  
 +
== Description ==
 
The following code can be used to retrieve the default language of the device:<br>
 
The following code can be used to retrieve the default language of the device:<br>
  

Revision as of 16:41, 6 November 2008

Template:KBTS


Article Metadata
Compatibility
Platform(s): S60 3rd Edition, S60 3rd Edition, FP1
Symbian
S60 3rd Edition FP1
S60 3rd Edition (initial release)
Article
Created: (30 May 2008)
Last edited: extkbeditor1 (06 Nov 2008)

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