Archived:Displaying the name of the active language of a Symbian device
hamishwillee
(Talk | contribs) m (Hamishwillee - Bot update - Merge KB into wiki) |
hamishwillee
(Talk | contribs) m (Hamishwillee - Fix categories) |
||
| (One intermediate revision by one user not shown) | |||
| Line 1: | Line 1: | ||
| + | [[Category:Symbian C++]][[Category:Symbian]][[Category:S60 3rd Edition (initial release)]][[Category:S60 3rd Edition FP1]][[Category:Code Snippet]][[Category:Base/System]][[Category:Localization]] | ||
{{Archived|timestamp=20120313125036|user=roy.debjit| }} | {{Archived|timestamp=20120313125036|user=roy.debjit| }} | ||
| − | + | ||
{{ArticleMetaData <!-- v1.2 --> | {{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]]) --> | ||
Latest revision as of 09:43, 9 August 2012
Archived: 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
Article
Created: User:Technical writer 1
(30 May 2008)
Last edited: hamishwillee
(09 Aug 2012)
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);
}

