From 59aba8d9bec4167eb2e44d836c84e4dbad85c3db Mon Sep 17 00:00:00 2001 From: Milos Kozak Date: Sun, 3 Jul 2016 20:54:00 +0200 Subject: [PATCH] german language to menu --- .idea/misc.xml | 2 +- .../main/java/info/nightscout/androidaps/MainActivity.java | 5 +++++ app/src/main/res/menu/menu_main.xml | 3 +++ app/src/main/res/values-cs/strings.xml | 1 + app/src/main/res/values/strings.xml | 1 + 5 files changed, 11 insertions(+), 1 deletion(-) diff --git a/.idea/misc.xml b/.idea/misc.xml index 5d19981032..fbb68289f4 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -37,7 +37,7 @@ - + diff --git a/app/src/main/java/info/nightscout/androidaps/MainActivity.java b/app/src/main/java/info/nightscout/androidaps/MainActivity.java index 36d08346d8..56abc9bd86 100644 --- a/app/src/main/java/info/nightscout/androidaps/MainActivity.java +++ b/app/src/main/java/info/nightscout/androidaps/MainActivity.java @@ -141,6 +141,11 @@ public class MainActivity extends AppCompatActivity { recreate(); break; } + case R.id.de_lang: { + LocaleHelper.setLocale(this, "de"); + recreate(); + break; + } case R.id.nav_export: { ImportExportPrefs.exportSharedPreferences(this); break; diff --git a/app/src/main/res/menu/menu_main.xml b/app/src/main/res/menu/menu_main.xml index ef7a82ff3e..4375e8946f 100644 --- a/app/src/main/res/menu/menu_main.xml +++ b/app/src/main/res/menu/menu_main.xml @@ -22,6 +22,9 @@ + diff --git a/app/src/main/res/values-cs/strings.xml b/app/src/main/res/values-cs/strings.xml index fd5b017aa3..4b75660efa 100644 --- a/app/src/main/res/values-cs/strings.xml +++ b/app/src/main/res/values-cs/strings.xml @@ -206,4 +206,5 @@ Exportovat nastavení do Exportovat nastavení Importovat nastavení + Němčina \ No newline at end of file diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 94989c73e0..3431d5614a 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -214,5 +214,6 @@ File not found Export settings Import settings + German language