android: Use system locale by default

Desktop / LibreOffice - Michael Weghorn [] - 22 January 2020 07:47 UTC

Instead of hard-coding the use of English as default locale and allowing manually selecting another language, this now makes the system's default locale to be used by default in the Android Viewer. It's still possible to explicitly select another language to override that.

In case there is no localization for the system locale, an automatic fallback to English happens anyway, so there should be no need to explicitly set the locale to English in that case either.

Change-Id: I0b8cfafea6a4659c3657522cfd5895c00f25f054 Reviewed-on:

5bf2ec9ed872 android: Use system locale by default
android/source/res/values/arrays.xml | 2 ++
android/source/res/xml/libreoffice_preferences.xml | 2 +-
.../src/java/org/libreoffice/ | 2 +-
android/source/src/java/org/libreoffice/ | 14 ++++++++------
.../src/java/org/libreoffice/ui/ | 4 ++--
5 files changed, 14 insertions(+), 10 deletions(-)


  • Share