From b2f9cd215b0fc0163512258a26a7c7bdc8c81ff0 Mon Sep 17 00:00:00 2001 From: Gongxter Date: Wed, 11 Nov 2015 14:28:24 +0100 Subject: [PATCH] Multilanguage for german English First GUI samples --- .idea/gradle.xml | 2 +- .idea/vcs.xml | 2 +- app/build.gradle | 1 + app/src/main/AndroidManifest.xml | 25 +- .../view/AppCompatPreferenceActivity.java | 111 +++++++ .../view/{GameView.java => GameActivity.java} | 68 ++-- .../sudoku/view/MainActivity.java | 23 ++ .../tu_darmstadt/sudoku/view/MainMenu.java | 52 --- .../sudoku/view/SettingsActivity.java | 297 ++++++++++++++++++ .../sudoku/view/SudokuCellView.java | 52 +++ .../sudoku/view/SudokuFieldLayout.java | 43 +++ .../res/drawable-hdpi/ic_info_black_24dp.png | Bin 0 -> 321 bytes .../ic_notifications_black_24dp.png | Bin 0 -> 233 bytes .../res/drawable-hdpi/ic_sync_black_24dp.png | Bin 0 -> 368 bytes .../res/drawable-mdpi/ic_info_black_24dp.png | Bin 0 -> 222 bytes .../ic_notifications_black_24dp.png | Bin 0 -> 182 bytes .../res/drawable-mdpi/ic_sync_black_24dp.png | Bin 0 -> 250 bytes .../res/drawable-v21/ic_info_black_24dp.xml | 9 + .../ic_notifications_black_24dp.xml | 9 + .../res/drawable-v21/ic_sync_black_24dp.xml | 9 + .../res/drawable-xhdpi/ic_info_black_24dp.png | Bin 0 -> 412 bytes .../ic_notifications_black_24dp.png | Bin 0 -> 278 bytes .../res/drawable-xhdpi/ic_sync_black_24dp.png | Bin 0 -> 467 bytes .../drawable-xxhdpi/ic_info_black_24dp.png | Bin 0 -> 579 bytes .../ic_notifications_black_24dp.png | Bin 0 -> 383 bytes .../drawable-xxhdpi/ic_sync_black_24dp.png | Bin 0 -> 669 bytes .../drawable-xxxhdpi/ic_info_black_24dp.png | Bin 0 -> 766 bytes .../ic_notifications_black_24dp.png | Bin 0 -> 497 bytes .../drawable-xxxhdpi/ic_sync_black_24dp.png | Bin 0 -> 875 bytes app/src/main/res/layout/activity_main.xml | 18 ++ .../main/res/layout/activity_main_menu.xml | 20 -- app/src/main/res/layout/app_bar_game_view.xml | 6 +- app/src/main/res/layout/content_game_view.xml | 6 +- app/src/main/res/layout/content_main_menu.xml | 14 - .../res/menu/activity_game_view_drawer.xml | 22 +- app/src/main/res/menu/game_view.xml | 3 +- app/src/main/res/menu/menu_main_menu.xml | 6 - app/src/main/res/values-de/strings.xml | 7 + app/src/main/res/values/strings.xml | 75 ++++- app/src/main/res/xml/pref_data_sync.xml | 21 ++ app/src/main/res/xml/pref_general.xml | 33 ++ app/src/main/res/xml/pref_headers.xml | 16 + app/src/main/res/xml/pref_highlighting.xml | 11 + app/src/main/res/xml/pref_notification.xml | 27 ++ 44 files changed, 826 insertions(+), 162 deletions(-) create mode 100644 app/src/main/java/tu_darmstadt/sudoku/view/AppCompatPreferenceActivity.java rename app/src/main/java/tu_darmstadt/sudoku/view/{GameView.java => GameActivity.java} (59%) create mode 100644 app/src/main/java/tu_darmstadt/sudoku/view/MainActivity.java delete mode 100644 app/src/main/java/tu_darmstadt/sudoku/view/MainMenu.java create mode 100644 app/src/main/java/tu_darmstadt/sudoku/view/SettingsActivity.java create mode 100644 app/src/main/java/tu_darmstadt/sudoku/view/SudokuCellView.java create mode 100644 app/src/main/java/tu_darmstadt/sudoku/view/SudokuFieldLayout.java create mode 100644 app/src/main/res/drawable-hdpi/ic_info_black_24dp.png create mode 100644 app/src/main/res/drawable-hdpi/ic_notifications_black_24dp.png create mode 100644 app/src/main/res/drawable-hdpi/ic_sync_black_24dp.png create mode 100644 app/src/main/res/drawable-mdpi/ic_info_black_24dp.png create mode 100644 app/src/main/res/drawable-mdpi/ic_notifications_black_24dp.png create mode 100644 app/src/main/res/drawable-mdpi/ic_sync_black_24dp.png create mode 100644 app/src/main/res/drawable-v21/ic_info_black_24dp.xml create mode 100644 app/src/main/res/drawable-v21/ic_notifications_black_24dp.xml create mode 100644 app/src/main/res/drawable-v21/ic_sync_black_24dp.xml create mode 100644 app/src/main/res/drawable-xhdpi/ic_info_black_24dp.png create mode 100644 app/src/main/res/drawable-xhdpi/ic_notifications_black_24dp.png create mode 100644 app/src/main/res/drawable-xhdpi/ic_sync_black_24dp.png create mode 100644 app/src/main/res/drawable-xxhdpi/ic_info_black_24dp.png create mode 100644 app/src/main/res/drawable-xxhdpi/ic_notifications_black_24dp.png create mode 100644 app/src/main/res/drawable-xxhdpi/ic_sync_black_24dp.png create mode 100644 app/src/main/res/drawable-xxxhdpi/ic_info_black_24dp.png create mode 100644 app/src/main/res/drawable-xxxhdpi/ic_notifications_black_24dp.png create mode 100644 app/src/main/res/drawable-xxxhdpi/ic_sync_black_24dp.png create mode 100644 app/src/main/res/layout/activity_main.xml delete mode 100644 app/src/main/res/layout/activity_main_menu.xml delete mode 100644 app/src/main/res/layout/content_main_menu.xml delete mode 100644 app/src/main/res/menu/menu_main_menu.xml create mode 100644 app/src/main/res/values-de/strings.xml create mode 100644 app/src/main/res/xml/pref_data_sync.xml create mode 100644 app/src/main/res/xml/pref_general.xml create mode 100644 app/src/main/res/xml/pref_headers.xml create mode 100644 app/src/main/res/xml/pref_highlighting.xml create mode 100644 app/src/main/res/xml/pref_notification.xml diff --git a/.idea/gradle.xml b/.idea/gradle.xml index 5f8ec24..166a03b 100644 --- a/.idea/gradle.xml +++ b/.idea/gradle.xml @@ -5,7 +5,7 @@