Namespaces

Variants
Actions

Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries over the next few weeks. Thanks for all your past and future contributions.

显示手机上当前语言的名称

From Wiki
Jump to: navigation, search
Article Metadata

兼容于
平台: S60 3rd Edition, S60 3rd Edition, FP1
S60 3rd Edition FP1
S60 3rd Edition (initial release)

文章
翻译:
hoolee
最后由 hamishwillee 在 09 Aug 2012 编辑
  • 详细描述

下列代码可以用来获得手机上的缺省语言。

头文件 akninputlanguageinfo.h

链接库 akninputlanguage.lib


能力

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 06:44.
110 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.

×