From 5467792b5ab4604d4f6ffc6918b0dda08d1121f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krzysztof=20Cie=C5=9Blik?= Date: Sun, 14 Jun 2026 06:24:30 +0200 Subject: [PATCH] refactor(i18n): translate polish variable names and keys to english --- .../com/example/retroha/ConnectionSettingsActivity.kt | 6 +++--- app/src/main/java/com/example/retroha/SettingsActivity.kt | 8 ++++---- app/src/main/java/com/example/retroha/data/Prefs.kt | 2 +- .../main/java/com/example/retroha/i18n/AndroidStrings.kt | 8 ++++++-- app/src/main/res/values-en/strings.xml | 8 ++++++-- app/src/main/res/values/strings.xml | 8 ++++++-- .../src/main/kotlin/com/example/retroha/i18n/StringKey.kt | 8 ++++++-- 7 files changed, 32 insertions(+), 16 deletions(-) diff --git a/app/src/main/java/com/example/retroha/ConnectionSettingsActivity.kt b/app/src/main/java/com/example/retroha/ConnectionSettingsActivity.kt index adaf308..cc12b7e 100644 --- a/app/src/main/java/com/example/retroha/ConnectionSettingsActivity.kt +++ b/app/src/main/java/com/example/retroha/ConnectionSettingsActivity.kt @@ -26,12 +26,12 @@ class ConnectionSettingsActivity : BaseActivity() { val intervalSec = etRefreshInterval.text.toString().toLongOrNull() ?: 30L val strings = com.example.retroha.i18n.AndroidStrings(this) android.app.AlertDialog.Builder(this) - .setTitle("UWAGA") + .setTitle(strings.get(com.example.retroha.i18n.StringKey.DIALOG_WARNING)) .setMessage(strings.get(com.example.retroha.i18n.StringKey.CONFIRM_CHANGE_CONN)) - .setPositiveButton("TAK, ZMIEŃ") { _, _ -> + .setPositiveButton(strings.get(com.example.retroha.i18n.StringKey.DIALOG_YES_CHANGE)) { _, _ -> performTestAndSave(url, token, intervalSec, tvStatus) } - .setNegativeButton(strings.get(com.example.retroha.i18n.StringKey.DIALOG_ANULUJ), null) + .setNegativeButton(strings.get(com.example.retroha.i18n.StringKey.DIALOG_CANCEL), null) .show() } } diff --git a/app/src/main/java/com/example/retroha/SettingsActivity.kt b/app/src/main/java/com/example/retroha/SettingsActivity.kt index bd264a4..ff257a0 100644 --- a/app/src/main/java/com/example/retroha/SettingsActivity.kt +++ b/app/src/main/java/com/example/retroha/SettingsActivity.kt @@ -25,13 +25,13 @@ class SettingsActivity : BaseActivity() { findViewById