Browse Source

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

tags/2021-05-28
jules 11 years ago
parent
commit
d7ce09ff15
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      modules/juce_core/native/juce_android_SystemStats.cpp
  2. +1
    -1
      modules/juce_core/native/juce_linux_SystemStats.cpp

+ 1
- 1
modules/juce_core/native/juce_android_SystemStats.cpp 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


+ 1
- 1
modules/juce_core/native/juce_linux_SystemStats.cpp 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


Loading…
Cancel
Save