german language to menu

This commit is contained in:
Milos Kozak 2016-07-03 20:54:00 +02:00
parent f6623c7a62
commit 59aba8d9be
5 changed files with 11 additions and 1 deletions

View file

@ -37,7 +37,7 @@
<ConfirmationsSetting value="0" id="Add" /> <ConfirmationsSetting value="0" id="Add" />
<ConfirmationsSetting value="0" id="Remove" /> <ConfirmationsSetting value="0" id="Remove" />
</component> </component>
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_7" default="true" assert-keyword="true" jdk-15="true" project-jdk-name="1.8" project-jdk-type="JavaSDK"> <component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="true" assert-keyword="true" jdk-15="true" project-jdk-name="1.8" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/build/classes" /> <output url="file://$PROJECT_DIR$/build/classes" />
</component> </component>
<component name="ProjectType"> <component name="ProjectType">

View file

@ -141,6 +141,11 @@ public class MainActivity extends AppCompatActivity {
recreate(); recreate();
break; break;
} }
case R.id.de_lang: {
LocaleHelper.setLocale(this, "de");
recreate();
break;
}
case R.id.nav_export: { case R.id.nav_export: {
ImportExportPrefs.exportSharedPreferences(this); ImportExportPrefs.exportSharedPreferences(this);
break; break;

View file

@ -22,6 +22,9 @@
<item <item
android:id="@+id/cs_lang" android:id="@+id/cs_lang"
android:title="@string/cs_lang" /> android:title="@string/cs_lang" />
<item
android:id="@+id/de_lang"
android:title="@string/de_lang" />
<item <item
android:id="@+id/nav_exit" android:id="@+id/nav_exit"
android:title="@string/nav_exit" /> android:title="@string/nav_exit" />

View file

@ -206,4 +206,5 @@
<string name="export_to">Exportovat nastavení do</string> <string name="export_to">Exportovat nastavení do</string>
<string name="nav_export">Exportovat nastavení</string> <string name="nav_export">Exportovat nastavení</string>
<string name="nav_import">Importovat nastavení</string> <string name="nav_import">Importovat nastavení</string>
<string name="de_lang">Němčina</string>
</resources> </resources>

View file

@ -214,5 +214,6 @@
<string name="filenotfound">File not found</string> <string name="filenotfound">File not found</string>
<string name="nav_export">Export settings</string> <string name="nav_export">Export settings</string>
<string name="nav_import">Import settings</string> <string name="nav_import">Import settings</string>
<string name="de_lang">German language</string>
</resources> </resources>