From c64896b61f20fd9f103b3beef015e710409af1bf Mon Sep 17 00:00:00 2001 From: Peter Osterlund Date: Sun, 25 Feb 2018 08:47:34 +0100 Subject: [PATCH] DroidFish: Allow setting user interface language. Made it possible to change the user interface language to be different from the Android system default language. --- DroidFish/res/values/strings.xml | 35 +++++++++++++++++++ DroidFish/res/xml/preferences.xml | 8 +++++ .../src/org/petero/droidfish/DroidFish.java | 19 ++++++++++ 3 files changed, 62 insertions(+) diff --git a/DroidFish/res/values/strings.xml b/DroidFish/res/values/strings.xml index 9f2dbbd..756f032 100644 --- a/DroidFish/res/values/strings.xml +++ b/DroidFish/res/values/strings.xml @@ -6,6 +6,7 @@ 120000 0 1 + default 12 4 2 @@ -324,6 +325,8 @@ you are not actively using the program.\ Controls on left side in landscape mode Square selection Control how selecting squares on the chess board behaves + Language + User interface language Text Size Font size for move list and game information Large Buttons @@ -593,6 +596,38 @@ you are not actively using the program.\ 0 1 + + System default + English + Belarusian + German + Spanish + French + Italian + Korean + Dutch + Polish + Portuguese + Russian + Turkish + Ukrainian + + + default + en + be + de + es + fr + it + ko + nl + pl + pt + ru + tr + uk + Small Medium diff --git a/DroidFish/res/xml/preferences.xml b/DroidFish/res/xml/preferences.xml index 806583f..8ca5de6 100644 --- a/DroidFish/res/xml/preferences.xml +++ b/DroidFish/res/xml/preferences.xml @@ -129,6 +129,14 @@ android:summary="@string/prefs_fullScreenMode_summary" android:defaultValue="false"> + +