×
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
debjit.roy (Talk | contribs)
(Debjit.roy -)
hamishwillee (Talk | contribs)
m (Hamishwillee - Fix categories)
 
(4 intermediate revisions by one user not shown)
Line 1: Line 1:
[[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]]
+
[[Category:Symbian C++]][[Category:Symbian]][[Category:S60 3rd Edition (initial release)]][[Category:S60 3rd Edition FP1]][[Category:Code Snippet]][[Category:Base/System]][[Category:Localization]]
{{KBTS}}
+
{{Archived|timestamp=20120313125036|user=roy.debjit| }}
__NOTOC__
+
__NOEDITSECTION__
+
{{ArticleMetaData
+
|id=TSS001003
+
|platform=S60 3rd Edition, S60 3rd Edition, FP1
+
|devices=
+
|category=Symbian C++
+
|subcategory=Base/System
+
|creationdate=May 30, 2008
+
|keywords=
+
  
 +
{{ArticleMetaData <!-- v1.2 -->
 
|sourcecode= <!-- Link to example source code (e.g. [[Media:The Code Example ZIP.zip]]) -->
 
|sourcecode= <!-- Link to example source code (e.g. [[Media:The Code Example ZIP.zip]]) -->
 
|installfile= <!-- Link to installation file (e.g. [[Media:The Installation File.sis]]) -->
 
|installfile= <!-- Link to installation file (e.g. [[Media:The Installation File.sis]]) -->
|sdk=<!-- SDK(s) built and tested against (e.g. [http://linktosdkdownload/ Nokia Qt SDK 1.1]) -->
+
|devices= <!-- Devices tested against - e.g. ''devices=Nokia 6131 NFC, Nokia C7-00'') -->
|devicecompatability=<!-- Compatible devices (e.g.: All* (must have GPS) ) -->
+
|sdk= <!-- SDK(s) built and tested against (e.g. [http://linktosdkdownload/ Nokia Qt SDK 1.1]) -->
|signing=<!-- Empty or one of Self-Signed, DevCert, Manufacturer -->
+
|platform= S60 3rd Edition, S60 3rd Edition, FP1
|capabilities=<!-- Capabilities required (e.g. Location, NetworkServices.) -->
+
|devicecompatability= <!-- Compatible devices (e.g.: All* (must have GPS) ) -->
|author=[[User:Technical writer 1]]
+
|dependencies= <!-- Any other/external dependencies e.g.: Google Maps Api v1.0 -->
 +
|signing= <!-- Empty or one of Self-Signed, DevCert, Manufacturer -->
 +
|capabilities= <!-- Capabilities required by the article/code example (e.g. Location, NetworkServices. -->
 +
|keywords= <!-- APIs, classes and methods (e.g. QSystemScreenSaver, QList, CBase -->
 +
|language= <!-- Language category code for non-English topics - e.g. Lang-Chinese -->
 +
|translated-by= <!-- [[User:XXXX]] -->
 +
|translated-from-title= <!-- Title only -->
 +
|translated-from-id= <!-- Id of translated revision -->
 +
|review-by= <!-- After re-review: [[User:username]] -->
 +
|review-timestamp= <!-- After re-review: YYYYMMDD -->
 +
|update-by= <!-- After significant update: [[User:username]]-->
 +
|update-timestamp= <!-- After significant update: YYYYMMDD -->
 +
|creationdate= 20080530
 +
|author= [[User:Technical writer 1]]
 +
<!-- The following are not in current metadata -->
 +
|subcategory= Base/System
 +
|id= TSS001003
 
}}
 
}}
{{Archived|timestamp=20120313125036|user=roy.debjit| }}
 
 
    
 
    
 
== Description ==
 
== Description ==
Line 39: Line 45:
 
<code cpp>
 
<code cpp>
 
  TDes& language;
 
  TDes& language;
  TLanguage languageId;
+
  TLanguage languageId;
 
  languageId = User::Language();
 
  languageId = User::Language();
 
  CAknInputLanguageInfo* Langg =  
 
  CAknInputLanguageInfo* Langg =  

Latest revision as of 09:43, 9 August 2012

Archived.pngArchived: This article is archived because it is not considered relevant for third-party developers creating commercial solutions today. If you think this article is still relevant, let us know by adding the template {{ReviewForRemovalFromArchive|user=~~~~|write your reason here}}.

Article Metadata
Compatibility
Platform(s): S60 3rd Edition, S60 3rd Edition, FP1
Symbian
S60 3rd Edition FP1
S60 3rd Edition (initial release)
Article
Created: User:Technical writer 1 (30 May 2008)
Last edited: hamishwillee (09 Aug 2012)

[edit] 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);
}
This page was last modified on 9 August 2012, at 09:43.
72 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.

×