×
Namespaces

Variants
Actions

Get phone language setting

From Nokia Developer Wiki
Jump to: navigation, search
Article Metadata
Tested with
Devices(s): E90
Compatibility
Platform(s): S60 3rd,3rd FP1,3rd Fp2
Platform Security
Capabilities: )
Article
Keywords: keywords=User::Language()
Created: lming (01 Nov 2008)
Last edited: hamishwillee (24 Jun 2011)

Overview

This snippet demonstrates how to retrieve current phone language setting. This snippet can be self-signed

Source file

//necessary library
LIBRARY euser.lib
//necessary header file
#include <e32std.h>
 
TLanguage currentLanguage;
currentLanguage = User::Language();
switch ( currentLanguage )
{
case ELangEnglish:
{
//UK English is current language
 
}
break;
case ELangFinnish:
{
//finnish is current language
}
break;
default:
{
//other languages
//check TLanguage to see all language code.
}
}

Postconditions

phone language is retrieved.

This page was last modified on 24 June 2011, at 08:38.
23 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.

×