From ee664058bc29ebf3359a26084f89e89efb5a4dc4 Mon Sep 17 00:00:00 2001 From: Corewala Date: Tue, 3 May 2022 18:54:12 -0400 Subject: [PATCH] Localised "ok" in dialogs --- app/src/main/java/corewala/buran/ui/GemActivity.kt | 4 ++-- app/src/main/res/values-fr/strings.xml | 2 ++ app/src/main/res/values/strings.xml | 2 ++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/corewala/buran/ui/GemActivity.kt b/app/src/main/java/corewala/buran/ui/GemActivity.kt index 0fffc3f..dc54509 100644 --- a/app/src/main/java/corewala/buran/ui/GemActivity.kt +++ b/app/src/main/java/corewala/buran/ui/GemActivity.kt @@ -389,7 +389,7 @@ class GemActivity : AppCompatActivity() { loadingView(false) builder .setTitle(state.header.meta) - .setPositiveButton("Ok"){ dialog, which -> + .setPositiveButton(getString(R.string.confirm)){ dialog, which -> request("${state.uri}?${Uri.encode(editText.text.toString())}") editText.hideKeyboard() } @@ -503,7 +503,7 @@ class GemActivity : AppCompatActivity() { AlertDialog.Builder(this) .setTitle(getString(R.string.error)) .setMessage(message) - .setPositiveButton("OK"){ _, _ -> + .setPositiveButton(getString(R.string.close)){ _, _ -> } .show() diff --git a/app/src/main/res/values-fr/strings.xml b/app/src/main/res/values-fr/strings.xml index 1a32e1d..7e000fa 100644 --- a/app/src/main/res/values-fr/strings.xml +++ b/app/src/main/res/values-fr/strings.xml @@ -40,6 +40,8 @@ Hôte inconnu Télécharger Annuler + Fermer + Confirmer Erreur Aucune app installée qui puisse ouvrir %s Erreur de téléchargement de fichier - aucun état d\'objet n\'existe diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index f4ab008..b69e165 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -40,6 +40,8 @@ Unknown Host Download Cancel + Close + Ok Error No app installed that can open %s File download error - no state object exists