【问题标题】:Getting current system language in Windows Phone 8 C++在 Windows Phone 8 C++ 中获取当前系统语言
【发布时间】:2014-02-11 19:53:23
【问题描述】:

我正在将 C++ 游戏移植到 Windows Phone 8。在 iOS 和 Android 中,我使用当前语言名称来选择内部游戏资源(endees 等)。如何从 C++ 获取 Windows Phone 8 中的当前系统语言?

对于 C#,有带有 CultureInfo.CurrentUICulture 的 .NET 解决方案,但它无法从 C++ Windows Phone 8 应用程序中访问。

【问题讨论】:

标签: c++ windows-phone-8 localization


【解决方案1】:

您应该为此使用GetUserPreferredUILanguages API。

Here's a sample.

【讨论】:

  • 是的,这个函数返回windows phone 8中的当前手机语言,谢谢。
猜你喜欢
  • 2013-08-14
  • 1970-01-01
  • 1970-01-01
  • 2013-05-01
  • 1970-01-01
  • 2011-08-08
  • 2011-06-06
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多