Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improve getCurrentLanguage to android #1784

Merged
merged 2 commits into from Jul 29, 2019
Merged

Conversation

@knoxHuang
Copy link
Contributor

@knoxHuang knoxHuang commented Jul 26, 2019

用户反馈: https://forum.cocos.com/t/cc-sys-languagecode/81212/2

修复 cc.sys.languageCode 在安卓平台无法获取完整语言地区码

@@ -128,7 +128,7 @@ void Application::setPreferredFramesPerSecond(int fps)

std::string Application::getCurrentLanguageCode() const
{
std::string language = getCurrentLanguageJNI();
std::string language = getCurrentLanguageCodeJNI();
Copy link
Contributor

@minggo minggo Jul 26, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里直接 return getCurrentLanguageCodeJNI() 就可以了。

minggo
minggo approved these changes Jul 29, 2019
@jareguo jareguo merged commit f951240 into cocos-creator:v2.1.3 Jul 29, 2019
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants