سؤال

I'm porting a C++ game to Windows Phone 8. In iOS and Android I use the сurrent language name to select internal game resources (en, de, es, etc.). How I can get the current system language in Windows Phone 8 from C++?

For C# there is .NET solution with CultureInfo.CurrentUICulture, but it's inaccessible from a C++ Windows Phone 8 application.

هل كانت مفيدة؟

المحلول

You should use GetUserPreferredUILanguages API for that.

Here's a sample.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top