From 8e92597dc9422b0bb6a22d3d39ff2ed0b5954652 Mon Sep 17 00:00:00 2001 From: tom5079 Date: Sun, 12 May 2019 20:06:16 +0900 Subject: [PATCH] Added ko/ja language support --- app/build.gradle | 4 +- .../java/xyz/quaver/pupil/SettingsActivity.kt | 4 +- app/src/main/res/values-ja/strings.xml | 23 +++++++++++ app/src/main/res/values-ko/strings.xml | 23 +++++++++++ app/src/main/res/values/strings.xml | 38 +++++++++---------- app/src/main/res/xml/root_preferences.xml | 4 +- 6 files changed, 70 insertions(+), 26 deletions(-) create mode 100644 app/src/main/res/values-ja/strings.xml create mode 100644 app/src/main/res/values-ko/strings.xml diff --git a/app/build.gradle b/app/build.gradle index 9f4d114b..66bcddaa 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -9,8 +9,8 @@ android { applicationId "xyz.quaver.pupil" minSdkVersion 15 targetSdkVersion 28 - versionCode 1 - versionName "1.0" + versionCode 2 + versionName "1.1" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" } buildTypes { diff --git a/app/src/main/java/xyz/quaver/pupil/SettingsActivity.kt b/app/src/main/java/xyz/quaver/pupil/SettingsActivity.kt index 3df30a5a..871ce357 100644 --- a/app/src/main/java/xyz/quaver/pupil/SettingsActivity.kt +++ b/app/src/main/java/xyz/quaver/pupil/SettingsActivity.kt @@ -38,7 +38,7 @@ class SettingsActivity : AppCompatActivity() { suffixIndex++ } - return getString(R.string.settings_delete_cache_summary, size, suffix[suffixIndex]) + return getString(R.string.settings_clear_cache_summary, size, suffix[suffixIndex]) } override fun onCreatePreferences(savedInstanceState: Bundle?, rootKey: String?) { @@ -52,7 +52,7 @@ class SettingsActivity : AppCompatActivity() { setOnPreferenceClickListener { AlertDialog.Builder(context).apply { setTitle(R.string.warning) - setMessage(R.string.settings_delete_cache_alert_message) + setMessage(R.string.settings_clear_cache_alert_message) setPositiveButton(android.R.string.yes) { _, _ -> with(context.cacheDir) { if (exists()) diff --git a/app/src/main/res/values-ja/strings.xml b/app/src/main/res/values-ja/strings.xml new file mode 100644 index 00000000..2d50f270 --- /dev/null +++ b/app/src/main/res/values-ja/strings.xml @@ -0,0 +1,23 @@ + + + Pupil + 言語: %1$s + シリーズ: %1$s + タイプ: %1$s + 結果なし + 検索 + ギャラリー検索 + キャッシュ + キャッシュクリア + キャッシュをクリアするとイメージのロード速度に影響を与えます。実行しますか? + キャッシュサイズ: %1$d%2$s + デフォルト検索キーワード + 権限を拒否すると一部の機能が利用できません + 一回にロードするギャラリー数 + 検索設定 + 設定 + 新バージョン%1$sをリリースしました\n(現バージョン: %2$s)\nアップデートしますか? + アップデートダウンロード中 + 新しいアップデートがあります + 注意 + \ No newline at end of file diff --git a/app/src/main/res/values-ko/strings.xml b/app/src/main/res/values-ko/strings.xml new file mode 100644 index 00000000..c443a4b4 --- /dev/null +++ b/app/src/main/res/values-ko/strings.xml @@ -0,0 +1,23 @@ + + + Pupil + 언어: %1$s + 시리즈: %1$s + 종류: %1$s + 권한을 거부하면 일부 기능이 작동하지 않을 수 있습니다 + 갤러리 검색 + 기본 검색어 + 캐시 정리하기 + 캐시를 정리하면 이미지 로딩속도가 느려질 수 있습니다. 계속하시겠습니까? + 현재 캐시 사용량: %1$d%2$s + 한 번에 로드할 갤러리 수 + 검색 설정 + 설정 + 버전 %1$s이 출시되었습니다.\n(현재 %2$s)\n업데이트 하시겠습니까? + apk 다운로드중… + 업데이트가 있습니다! + 경고 + 결과 없음 + 검색 + 캐시 + \ 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 ea030bd9..6544d152 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -1,42 +1,40 @@ - Warning + Pupil - Pupil + https://api.github.com/repos/tom5079/Pupil-issue/releases + Pupil-v(\\d+\\.)+\\d+\\.apk + + Settings + Thumbnail + + Content ImageView + + + + Warning Denying any permission can deactivate some functions - https://api.github.com/repos/tom5079/Pupil-issue/releases - Pupil-v(\\d+\\.)+\\d+\\.apk + Search + No result Update available Version %1$s is available!\n(current version is %2$s)\nDo you want to update? Downloading apk… - Settings - Search - No result - Search galleries - Thumbnail - Series: %1$s Type: %1$s Language: %1$s - Content ImageView //No need to translate - Fullscreen - - Settings - Search Settings Galleries per page - Default query - - Delete Cache - Currently using %1$d%2$s of cache - Deleting cache can affect image loading speed. Do you want to continue? + Cache + Clear cache + Currently using %1$d%2$s of cache + Deleting cache can affect image loading speed. Do you want to continue? diff --git a/app/src/main/res/xml/root_preferences.xml b/app/src/main/res/xml/root_preferences.xml index 86a4e5d2..b85c107d 100644 --- a/app/src/main/res/xml/root_preferences.xml +++ b/app/src/main/res/xml/root_preferences.xml @@ -22,10 +22,10 @@ + app:title="@string/settings_cache_title">