From 122131ba9f05915b5a125cc890f39cdbc6a4e43a Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Thu, 23 Feb 2023 18:38:46 +0530 Subject: fix: clarify OTP import failure strings --- .../java/app/passwordstore/ui/crypto/PasswordCreationActivity.kt | 6 +++--- app/src/main/res/values-de/strings.xml | 2 +- app/src/main/res/values-fr/strings.xml | 2 +- app/src/main/res/values-gl/strings.xml | 2 +- app/src/main/res/values-it/strings.xml | 2 +- app/src/main/res/values-pt-rBR/strings.xml | 2 +- app/src/main/res/values-ru/strings.xml | 2 +- app/src/main/res/values-zh-rCN/strings.xml | 2 +- app/src/main/res/values/strings.xml | 5 ++--- 9 files changed, 12 insertions(+), 13 deletions(-) (limited to 'app') diff --git a/app/src/main/java/app/passwordstore/ui/crypto/PasswordCreationActivity.kt b/app/src/main/java/app/passwordstore/ui/crypto/PasswordCreationActivity.kt index 1d20eae9..9466daf2 100644 --- a/app/src/main/java/app/passwordstore/ui/crypto/PasswordCreationActivity.kt +++ b/app/src/main/java/app/passwordstore/ui/crypto/PasswordCreationActivity.kt @@ -96,14 +96,14 @@ class PasswordCreationActivity : BasePgpActivity() { else binding.extraContent.append(contents) snackbar(message = getString(R.string.otp_import_success)) } else { - snackbar(message = getString(R.string.otp_import_failure)) + snackbar(message = getString(R.string.otp_import_failure_generic)) } } private val imageImportAction = registerForActivityResult(ActivityResultContracts.GetContent()) { imageUri -> if (imageUri == null) { - snackbar(message = getString(R.string.otp_import_failure)) + snackbar(message = getString(R.string.otp_import_failure_no_selection)) return@registerForActivityResult } val bitmap = @@ -130,7 +130,7 @@ class PasswordCreationActivity : BasePgpActivity() { snackbar(message = getString(R.string.otp_import_success)) binding.otpImportButton.isVisible = false } - .onFailure { snackbar(message = getString(R.string.otp_import_failure)) } + .onFailure { snackbar(message = getString(R.string.otp_import_failure_generic)) } } override fun onCreate(savedInstanceState: Bundle?) { diff --git a/app/src/main/res/values-de/strings.xml b/app/src/main/res/values-de/strings.xml index 4de86ad9..a36d2694 100644 --- a/app/src/main/res/values-de/strings.xml +++ b/app/src/main/res/values-de/strings.xml @@ -261,7 +261,7 @@ Datei existiert bereits, bitte benutzen Sie einen anderen Dateinamen OTP hinzufügen TOTP-Konfiguration erfolgreich importiert - Import der TOTP-Konfiguration fehlgeschlagen + Import der TOTP-Konfiguration fehlgeschlagen Exportiere Passwörter… Dateiname darf nicht \'/\' enthalten, Verzeichnis oben setzen Ordner diff --git a/app/src/main/res/values-fr/strings.xml b/app/src/main/res/values-fr/strings.xml index e71117c1..b6eba4ae 100644 --- a/app/src/main/res/values-fr/strings.xml +++ b/app/src/main/res/values-fr/strings.xml @@ -265,7 +265,7 @@ Le fichier existe déjà, veuillez utiliser un autre nom Ajouter OTP Configuration TOTP importée avec succès - Impossible d\'importer la configuration TOTP + Impossible d\'importer la configuration TOTP Exportation des mots de passe… Le nom du fichier ne doit pas contenir \'/\', définir le répertoire parent Dossier diff --git a/app/src/main/res/values-gl/strings.xml b/app/src/main/res/values-gl/strings.xml index 0e0665db..361dd438 100644 --- a/app/src/main/res/values-gl/strings.xml +++ b/app/src/main/res/values-gl/strings.xml @@ -271,7 +271,7 @@ a app desde unha fonte de confianza, como a Play Store, Amazon Appstore, F-Droid Xa existe o ficheiro, usa un nome diferente Engade OTP Importouse correctamente a configuración TOTP - Fallou a importación da configuración TOTP + Fallou a importación da configuración TOTP Exportando contrasinais… Atopouse .gpg-id, pero contén un ID de chave, impresión dixital ou ID de usuaria non válidos O nome do ficheiro non pode conter \'/\', establece un directorio superior diff --git a/app/src/main/res/values-it/strings.xml b/app/src/main/res/values-it/strings.xml index df83cd4a..35d1b242 100644 --- a/app/src/main/res/values-it/strings.xml +++ b/app/src/main/res/values-it/strings.xml @@ -260,7 +260,7 @@ Il file esiste già, sei pregato di usare un nome differente Aggiungi OTP Configurazione TOTP importata correttamente - Impossibile importare la configurazione di TOTP + Impossibile importare la configurazione di TOTP Esportando le password… Il nome del file non deve contenere \'/0, imposta la directory sopra Directory diff --git a/app/src/main/res/values-pt-rBR/strings.xml b/app/src/main/res/values-pt-rBR/strings.xml index 19d2fac7..89dfb9e7 100644 --- a/app/src/main/res/values-pt-rBR/strings.xml +++ b/app/src/main/res/values-pt-rBR/strings.xml @@ -270,7 +270,7 @@ O arquivo já existe, por favor use um nome diferente Adicionar OTP Configuração TOTP importada com sucesso - Falha ao importar a configuração TOTP + Falha ao importar a configuração TOTP Exportando senhas… Encontrado .gpg-id, mas contém um ID de chave, fingerprint ou ID de usuário inválidos Nome do arquivo não deve conter \'/\', defina o diretório acima diff --git a/app/src/main/res/values-ru/strings.xml b/app/src/main/res/values-ru/strings.xml index 9dc83951..06f0165c 100644 --- a/app/src/main/res/values-ru/strings.xml +++ b/app/src/main/res/values-ru/strings.xml @@ -263,7 +263,7 @@ Файл с таким названием уже существует! Используйте другое имя Добавить OTP Конфигурация TOTP успешно импортирована - Не удалось импортировать конфигурацию TOTP + Не удалось импортировать конфигурацию TOTP Экспорт паролей… Имя файла не должно содержать \'/\', укажите директорию выше Директория diff --git a/app/src/main/res/values-zh-rCN/strings.xml b/app/src/main/res/values-zh-rCN/strings.xml index 9dfdd4ec..92903d65 100644 --- a/app/src/main/res/values-zh-rCN/strings.xml +++ b/app/src/main/res/values-zh-rCN/strings.xml @@ -275,7 +275,7 @@ personal.com 文件已存在,请使用其他名称 添加 OTP 导入TOTP配置成功 - 导入TOTP配置失败 + 导入TOTP配置失败 正在导出密码… 找到了 .gpg-id,但它包含无效的密钥ID、指纹或用户ID 文件名不能包含\'/\' diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index c59d3486..db2be860 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -290,8 +290,6 @@ Autofill will distinguish subdomains of these domains company.com\npersonal.com - - Error Failed to write password file to the store, please try again. @@ -299,7 +297,8 @@ File already exists, please use a different name Add OTP Successfully imported TOTP configuration - Failed to import TOTP configuration + Failed to import TOTP configuration + No image file was selected Exporting passwords… Found .gpg-id, but it contains an invalid key ID, fingerprint or user ID File name must not contain \'/\', set directory above -- cgit v1.2.3