From 9761b6e31c9adab2f24c518e43da69321e64c259 Mon Sep 17 00:00:00 2001 From: serso Date: Fri, 26 Feb 2016 19:47:01 +0100 Subject: [PATCH] Add more imported translations --- .../wizard/ChooseThemeWizardStep.java | 8 +++---- app/src/main/res/values-ar/text_imported.xml | 11 +++++++-- app/src/main/res/values-cs/text_imported.xml | 11 +++++++-- app/src/main/res/values-de/text_imported.xml | 11 +++++++-- app/src/main/res/values-es/text_imported.xml | 11 +++++++-- app/src/main/res/values-fi/text_imported.xml | 11 +++++++-- app/src/main/res/values-fr/text_imported.xml | 11 +++++++-- app/src/main/res/values-it/text_imported.xml | 11 +++++++-- app/src/main/res/values-ja/text_imported.xml | 11 +++++++-- app/src/main/res/values-nl/text_imported.xml | 11 +++++++-- app/src/main/res/values-pl/text_imported.xml | 11 +++++++-- .../main/res/values-pt-rBR/text_imported.xml | 11 +++++++-- .../main/res/values-pt-rPT/text_imported.xml | 11 +++++++-- app/src/main/res/values-ru/text_imported.xml | 11 +++++++-- app/src/main/res/values-tr/text_imported.xml | 11 +++++++-- app/src/main/res/values-vi/text_imported.xml | 11 +++++++-- .../main/res/values-zh-rCN/text_imported.xml | 11 +++++++-- .../main/res/values-zh-rTW/text_imported.xml | 11 +++++++-- app/src/main/res/values/arrays.xml | 8 +++---- app/src/main/res/values/text_imported.xml | 11 +++++++-- .../main/res/xml/preferences_appearance.xml | 4 ++-- translations/build.gradle | 3 ++- .../android/translations/Android.java | 24 ++++++++++++++++--- 23 files changed, 194 insertions(+), 51 deletions(-) diff --git a/app/src/main/java/org/solovyev/android/calculator/wizard/ChooseThemeWizardStep.java b/app/src/main/java/org/solovyev/android/calculator/wizard/ChooseThemeWizardStep.java index cb54d46e..7f62ca3a 100644 --- a/app/src/main/java/org/solovyev/android/calculator/wizard/ChooseThemeWizardStep.java +++ b/app/src/main/java/org/solovyev/android/calculator/wizard/ChooseThemeWizardStep.java @@ -30,18 +30,16 @@ import android.view.View; import android.widget.AdapterView; import android.widget.FrameLayout; import android.widget.Spinner; - import org.solovyev.android.Views; import org.solovyev.android.calculator.App; import org.solovyev.android.calculator.Preferences; import org.solovyev.android.calculator.R; import org.solovyev.android.calculator.keyboard.BaseKeyboardUi; +import javax.annotation.Nonnull; import java.util.ArrayList; import java.util.List; -import javax.annotation.Nonnull; - public class ChooseThemeWizardStep extends WizardFragment implements AdapterView.OnItemSelectedListener { @Nonnull @@ -61,8 +59,8 @@ public class ChooseThemeWizardStep extends WizardFragment implements AdapterView final Preferences.Gui.Theme theme = Preferences.Gui.getTheme(App.getPreferences()); final Spinner spinner = (Spinner) root.findViewById(R.id.wizard_theme_spinner); themes.clear(); - themes.add(new ThemeUi(Preferences.Gui.Theme.material_theme, R.string.p_material_theme)); - themes.add(new ThemeUi(Preferences.Gui.Theme.material_light_theme, R.string.p_material_light_theme)); + themes.add(new ThemeUi(Preferences.Gui.Theme.material_theme, R.string.cpp_theme_dark)); + themes.add(new ThemeUi(Preferences.Gui.Theme.material_light_theme, R.string.cpp_theme_light)); themes.add(new ThemeUi(Preferences.Gui.Theme.metro_blue_theme, R.string.p_metro_blue_theme)); themes.add(new ThemeUi(Preferences.Gui.Theme.metro_green_theme, R.string.p_metro_green_theme)); themes.add(new ThemeUi(Preferences.Gui.Theme.metro_purple_theme, R.string.p_metro_purple_theme)); diff --git a/app/src/main/res/values-ar/text_imported.xml b/app/src/main/res/values-ar/text_imported.xml index c831131c..81f1990e 100644 --- a/app/src/main/res/values-ar/text_imported.xml +++ b/app/src/main/res/values-ar/text_imported.xml @@ -2,8 +2,15 @@ الاهتزاز عند اللمس التدوير التلقائي للشاشة - اللغة - المظهر + اللغة + المظهر + فاتح + داكن البقاء في الوضع النشط الظهور أمام التطبيقات الأخرى + نعم + لا + إنشاء + إغلاق + تبديل \ No newline at end of file diff --git a/app/src/main/res/values-cs/text_imported.xml b/app/src/main/res/values-cs/text_imported.xml index 1c5af800..c31e13d3 100644 --- a/app/src/main/res/values-cs/text_imported.xml +++ b/app/src/main/res/values-cs/text_imported.xml @@ -2,8 +2,15 @@ Při dotyku vibrovat Autom. otočení obrazovky - Jazyk - Motiv + Jazyk + Motiv + Světlý + Tmavý Nevypínat obrazovku Vykreslení přes další aplikace + Ano + Ne + Vytvořit + Zavřít + Přepnout \ No newline at end of file diff --git a/app/src/main/res/values-de/text_imported.xml b/app/src/main/res/values-de/text_imported.xml index 6261d69d..33e220c2 100644 --- a/app/src/main/res/values-de/text_imported.xml +++ b/app/src/main/res/values-de/text_imported.xml @@ -2,8 +2,15 @@ Bei Berührung vibrieren Display automatisch drehen - Sprache - Design + Sprache + Design + Hell + Dunkel Aktiv lassen Über anderen Apps einblenden + Ja + Nein + Erstellen + Schließen + Wechseln \ No newline at end of file diff --git a/app/src/main/res/values-es/text_imported.xml b/app/src/main/res/values-es/text_imported.xml index 6e69924c..9c581748 100644 --- a/app/src/main/res/values-es/text_imported.xml +++ b/app/src/main/res/values-es/text_imported.xml @@ -2,8 +2,15 @@ Vibrar al tocar Girar pantalla automáticamente - Idioma - Tema + Idioma + Tema + Claro + Oscuro Pantalla activa Escribir sobre otras aplicaciones + + No + Crear + Cerrar + Cambiar \ No newline at end of file diff --git a/app/src/main/res/values-fi/text_imported.xml b/app/src/main/res/values-fi/text_imported.xml index 70d56d23..a47e3a27 100644 --- a/app/src/main/res/values-fi/text_imported.xml +++ b/app/src/main/res/values-fi/text_imported.xml @@ -2,8 +2,15 @@ Käytä värinää kosketettaessa Näytön automaattinen kierto - Kieli - Teema + Kieli + Teema + Vaalea + Tumma Pysy käynnissä Piirrä muihin sovelluksiin + Kyllä + Ei + Luo + Sulje + Vaihda \ No newline at end of file diff --git a/app/src/main/res/values-fr/text_imported.xml b/app/src/main/res/values-fr/text_imported.xml index d0beffef..cbfbc9e2 100644 --- a/app/src/main/res/values-fr/text_imported.xml +++ b/app/src/main/res/values-fr/text_imported.xml @@ -2,8 +2,15 @@ Vibrer au toucher Rotation auto de l\'écran - Langue - Thème + Langue + Thème + Clair + Foncé Rester activé Se superposer aux autres applis + Oui + Non + Créer + Fermer + Changer \ No newline at end of file diff --git a/app/src/main/res/values-it/text_imported.xml b/app/src/main/res/values-it/text_imported.xml index 4e8ba1fe..82899f8c 100644 --- a/app/src/main/res/values-it/text_imported.xml +++ b/app/src/main/res/values-it/text_imported.xml @@ -2,8 +2,15 @@ Vibra alla pressione Rotazione automatica - Lingua - Tema + Lingua + Tema + Chiaro + Scuro Rimani attivo Spostamento su altre app + + No + Crea + Chiudi + Cambia \ No newline at end of file diff --git a/app/src/main/res/values-ja/text_imported.xml b/app/src/main/res/values-ja/text_imported.xml index 9133dccb..4397dc68 100644 --- a/app/src/main/res/values-ja/text_imported.xml +++ b/app/src/main/res/values-ja/text_imported.xml @@ -2,8 +2,15 @@ タッチ操作バイブ 画面の自動回転 - 言語 - テーマ + 言語 + テーマ + ライト + ダーク スリープモードにしない 他のアプリの上に重ねて描画 + はい + いいえ + 作成 + 閉じる + 切り替え \ No newline at end of file diff --git a/app/src/main/res/values-nl/text_imported.xml b/app/src/main/res/values-nl/text_imported.xml index 3679345d..461577e1 100644 --- a/app/src/main/res/values-nl/text_imported.xml +++ b/app/src/main/res/values-nl/text_imported.xml @@ -2,8 +2,15 @@ Trillen bij aanraking Scherm autom. draaien - Taal - Thema + Taal + Thema + Licht + Donker Stand-by Over andere apps tekenen + Ja + Nee + Aanmaken + Sluiten + Overschakelen \ No newline at end of file diff --git a/app/src/main/res/values-pl/text_imported.xml b/app/src/main/res/values-pl/text_imported.xml index ae2cc32c..12d3807d 100644 --- a/app/src/main/res/values-pl/text_imported.xml +++ b/app/src/main/res/values-pl/text_imported.xml @@ -2,8 +2,15 @@ Wibracje przy dotknięciu Autoobracanie ekranu - Język - Motyw + Język + Motyw + Jasny + Ciemny Pozostaw ekran włączony Wyświetlanie nad innymi aplikacjami + Tak + Nie + Utwórz + Zamknij + Przełącz \ No newline at end of file diff --git a/app/src/main/res/values-pt-rBR/text_imported.xml b/app/src/main/res/values-pt-rBR/text_imported.xml index 025efe52..a8273ace 100644 --- a/app/src/main/res/values-pt-rBR/text_imported.xml +++ b/app/src/main/res/values-pt-rBR/text_imported.xml @@ -2,8 +2,15 @@ Vibrar ao tocar Girar tela - Idioma - Tema + Idioma + Tema + Claro + Escuro Permanecer ativo Sobrepor a outros apps + Sim + Não + Criar + Fechar + Alternar \ No newline at end of file diff --git a/app/src/main/res/values-pt-rPT/text_imported.xml b/app/src/main/res/values-pt-rPT/text_imported.xml index 84dd9990..3e39ecb0 100644 --- a/app/src/main/res/values-pt-rPT/text_imported.xml +++ b/app/src/main/res/values-pt-rPT/text_imported.xml @@ -2,8 +2,15 @@ Vibrar ao tocar Rodar ecrã automaticamente - Idioma - Tema + Idioma + Tema + Claro + Escuro Manter ativo Sobrepor a outras aplicações + Sim + Não + Criar + Fechar + Alternar \ No newline at end of file diff --git a/app/src/main/res/values-ru/text_imported.xml b/app/src/main/res/values-ru/text_imported.xml index f9aee806..b934a9f4 100644 --- a/app/src/main/res/values-ru/text_imported.xml +++ b/app/src/main/res/values-ru/text_imported.xml @@ -2,8 +2,15 @@ Виброотклик Автоповорот экрана - Язык - Тема + Язык + Тема + Светлая + Темная Не выключать экран Наложение поверх других окон + Да + Нет + Создать + Закрыть + Сменить аккаунт \ No newline at end of file diff --git a/app/src/main/res/values-tr/text_imported.xml b/app/src/main/res/values-tr/text_imported.xml index 0bffc4a1..a31144e7 100644 --- a/app/src/main/res/values-tr/text_imported.xml +++ b/app/src/main/res/values-tr/text_imported.xml @@ -2,8 +2,15 @@ Dokunulduğunda titreşim Ekranı otomatik döndür - Dil - Tema + Dil + Tema + Açık Renkli + Koyu Renkli Uyanık kal Diğer uygl. üzerinde görüntüle + Evet + Hayır + Oluştur + Kapat + Değiştir \ No newline at end of file diff --git a/app/src/main/res/values-vi/text_imported.xml b/app/src/main/res/values-vi/text_imported.xml index 3c0cce5e..5d9462fa 100644 --- a/app/src/main/res/values-vi/text_imported.xml +++ b/app/src/main/res/values-vi/text_imported.xml @@ -2,8 +2,15 @@ Rung khi chạm Tự động xoay màn hình - Ngôn ngữ - Chủ đề + Ngôn ngữ + Chủ đề + Sáng + Tối Không khóa màn hình Vẽ lên trên ứng dụng khác + + Không + Tạo + Đóng + Chuyển đổi \ No newline at end of file diff --git a/app/src/main/res/values-zh-rCN/text_imported.xml b/app/src/main/res/values-zh-rCN/text_imported.xml index cebdfe2e..a5f51507 100644 --- a/app/src/main/res/values-zh-rCN/text_imported.xml +++ b/app/src/main/res/values-zh-rCN/text_imported.xml @@ -2,8 +2,15 @@ 触摸时振动 自动旋转屏幕 - 语言 - 主题背景 + 语言 + 主题背景 + 浅色 + 深色 不锁定屏幕 在其他应用的上层显示 + + + 创建 + 关闭 + 切换 \ No newline at end of file diff --git a/app/src/main/res/values-zh-rTW/text_imported.xml b/app/src/main/res/values-zh-rTW/text_imported.xml index 1abd56de..46b1df52 100644 --- a/app/src/main/res/values-zh-rTW/text_imported.xml +++ b/app/src/main/res/values-zh-rTW/text_imported.xml @@ -2,8 +2,15 @@ 觸控時震動 自動旋轉螢幕 - 語言 - 主題 + 語言 + 主題 + 淺色 + 深色 螢幕不休眠 在其他應用程式上層繪製內容 + + + 建立 + 關閉 + 切換 \ No newline at end of file diff --git a/app/src/main/res/values/arrays.xml b/app/src/main/res/values/arrays.xml index 6e31b447..9445d300 100644 --- a/app/src/main/res/values/arrays.xml +++ b/app/src/main/res/values/arrays.xml @@ -22,8 +22,8 @@ - @string/p_material_theme - @string/p_material_light_theme + @string/cpp_theme_dark + @string/cpp_theme_light @string/p_metro_blue_theme @string/p_metro_green_theme @string/p_metro_purple_theme @@ -38,8 +38,8 @@ @string/p_use_app_theme - @string/p_material_theme - @string/p_material_light_theme + @string/cpp_theme_dark + @string/cpp_theme_light @string/p_metro_blue_theme diff --git a/app/src/main/res/values/text_imported.xml b/app/src/main/res/values/text_imported.xml index 8def7aec..f41ffc01 100644 --- a/app/src/main/res/values/text_imported.xml +++ b/app/src/main/res/values/text_imported.xml @@ -2,8 +2,15 @@ Vibrate on touch Auto-rotate screen - Language - Theme + Language + Theme + Light + Dark Stay awake Draw over other apps + Yes + No + Create + Close + Switch \ No newline at end of file diff --git a/app/src/main/res/xml/preferences_appearance.xml b/app/src/main/res/xml/preferences_appearance.xml index 2a05646c..f102bcaa 100644 --- a/app/src/main/res/xml/preferences_appearance.xml +++ b/app/src/main/res/xml/preferences_appearance.xml @@ -27,7 +27,7 @@ + a:title="@string/cpp_theme" /> translationLinks = new ArrayList<>(); translationLinks.add(new TranslationLink("haptic_feedback_enable_title", "cpp_prefs_vibrate_on_keypress")); translationLinks.add(new TranslationLink("accelerometer_title", "cpp_prefs_auto_rotate_screen")); - translationLinks.add(new TranslationLink("phone_language", "cpp_prefs_language")); - translationLinks.add(new TranslationLink("night_mode_title", "cpp_prefs_theme")); + translationLinks.add(new TranslationLink("phone_language", "cpp_language")); + translationLinks.add(new TranslationLink("night_mode_title", "cpp_theme")); + translationLinks.add(new TranslationLink("night_mode_no", "cpp_theme_light")); + translationLinks.add(new TranslationLink("night_mode_yes", "cpp_theme_dark")); translationLinks.add(new TranslationLink("keep_screen_on", "cpp_prefs_keep_screen_on")); translationLinks.add(new TranslationLink("draw_overlay", "cpp_permission_overlay")); + translationLinks.add(new TranslationLink("yes", "cpp_yes")); + translationLinks.add(new TranslationLink("no", "cpp_no")); + translationLinks.add(new TranslationLink("create", "cpp_create")); + translationLinks.add(new TranslationLink("dlg_close", "cpp_close")); + translationLinks.add(new TranslationLink("dlg_switch", "cpp_switch")); List languageLocales = new ArrayList<>(Utils.languageLocales); languageLocales.add("");