1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-16 00:34:19 +00:00

Tweaks to SystemStats::getDisplayLanguage() on android/linux to return a two-part identifier in the same way as other platforms.

This commit is contained in:
jules 2014-05-13 08:56:30 +01:00
parent a17aa2f1a4
commit d7ce09ff15
2 changed files with 2 additions and 2 deletions

View file

@ -273,7 +273,7 @@ String SystemStats::getComputerName()
String SystemStats::getUserLanguage() { return AndroidStatsHelpers::getLocaleValue (false); }
String SystemStats::getUserRegion() { return AndroidStatsHelpers::getLocaleValue (true); }
String SystemStats::getDisplayLanguage() { return getUserLanguage(); }
String SystemStats::getDisplayLanguage() { return getUserLanguage() + "-" + getUserRegion(); }
//==============================================================================
void CPUInformation::initialise() noexcept

View file

@ -139,7 +139,7 @@ static String getLocaleValue (nl_item key)
String SystemStats::getUserLanguage() { return getLocaleValue (_NL_IDENTIFICATION_LANGUAGE); }
String SystemStats::getUserRegion() { return getLocaleValue (_NL_IDENTIFICATION_TERRITORY); }
String SystemStats::getDisplayLanguage() { return getUserLanguage(); }
String SystemStats::getDisplayLanguage() { return getUserLanguage() + "-" + getUserRegion(); }
//==============================================================================
void CPUInformation::initialise() noexcept