Files
Michael Weghorn 39ed595d60 android: No longer manually set UI language
Drop the possibility to manually set a UI language
introduced in

    commit f2e35a695671028b32139df1824ff536e7610d35
    Author: Mert Tumer <merttumer@outlook.com>
    Date:   Tue Sep 18 23:29:57 2018 +0300

        Added language support on Android Viewer

Since

    commit 5bf2ec9ed8728a2042e110122ea2b0e4ff55104a
    Author: Michael Weghorn <m.weghorn@posteo.de>
    Date:   Fri Dec 20 10:40:34 2019 +0100

        android: Use system locale by default

, Android Viewer defaulted to the system
language for its UI language as well.

In addition, current Android versions allow to set
a specific language for apps: [1]

The previous approach of manually setting a language
in Android Viewer shouldn't really be necessary any more.

With the app now being available for translation on
Weblate and having been translated to more languages,
the list of available languages had become out of sync.

Additionally, the manually selected language wasn't
consistently applied everywhere:

* On the start activity where a document can be selected,
  it was only applied after closing the app, then opening
  it again.

* in the Settings, the language was not applied at all,
  that was always using the system locale anyway

Changes to the system locale are applied immediately
and consistently, so stick to the default Android mechanism
and reduce the overall complexity and maintenance burden.

[1] https://support.google.com/android/answer/12395118?hl=en

Change-Id: Ida61650b888a563f2346ea94a14b260802b1d24d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167718
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2024-05-16 12:13:30 +02:00
..