mirror of
https://github.com/Corewala/Buran
synced 2025-01-02 21:24:19 +00:00
Localised "ok" in dialogs
This commit is contained in:
parent
e27526deaa
commit
ee664058bc
3 changed files with 6 additions and 2 deletions
|
@ -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()
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue