Localised "ok" in dialogs

This commit is contained in:
Corewala 2022-05-03 18:54:12 -04:00
parent e27526deaa
commit ee664058bc
3 changed files with 6 additions and 2 deletions

View File

@ -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()

View File

@ -40,6 +40,8 @@
<string name="unknown_host_dialog_title">Hôte inconnu</string>
<string name="download">Télécharger</string>
<string name="cancel">Annuler</string>
<string name="close">Fermer</string>
<string name="confirm">Confirmer</string>
<string name="error">Erreur</string>
<string name="no_app_installed_that_can_open">Aucune app installée qui puisse ouvrir %s</string>
<string name="no_state_object_exists">Erreur de téléchargement de fichier - aucun état d\'objet n\'existe</string>

View File

@ -40,6 +40,8 @@
<string name="unknown_host_dialog_title" tools:ignore="MissingTranslation">Unknown Host</string>
<string name="download">Download</string>
<string name="cancel">Cancel</string>
<string name="close">Close</string>
<string name="confirm">Ok</string>
<string name="error">Error</string>
<string name="no_app_installed_that_can_open">No app installed that can open %s</string>
<string name="no_state_object_exists">File download error - no state object exists</string>