From 5afaf98874e01b186c0d45f4555f5f22092c8cfb Mon Sep 17 00:00:00 2001 From: Elias Bonnici Date: Tue, 4 Feb 2025 14:35:19 +0100 Subject: [PATCH] Fix `l10n` strings --- lib/l10n/app_de.arb | 7 ++++++- lib/l10n/app_en.arb | 13 +++++++++---- lib/l10n/app_fr.arb | 7 ++++++- lib/l10n/app_ja.arb | 7 ++++++- lib/l10n/app_pl.arb | 7 ++++++- lib/l10n/app_sk.arb | 7 ++++++- lib/l10n/app_vi.arb | 7 ++++++- lib/otp/views/configure_static_dialog.dart | 3 ++- 8 files changed, 47 insertions(+), 11 deletions(-) diff --git a/lib/l10n/app_de.arb b/lib/l10n/app_de.arb index b4f89dce9..b06c25a17 100644 --- a/lib/l10n/app_de.arb +++ b/lib/l10n/app_de.arb @@ -706,7 +706,6 @@ "s_output_format": null, "s_expiration_date": null, "p_algorithm_desc": null, - "p_output_format_desc": null, "p_expiration_date_desc": null, "p_cert_options_desc": "Verwendeter Schlüssel-Algorithmus, Ausgabeformat und Ablaufdatum (nur bei Zertifikat).", "p_cert_options_bio_desc": "Zu verwendender Schlüssel-Algorithmus, Ausgabeformat, Ablaufdatum (nur bei Zertifikaten) und ob Fingerabdrücke anstelle der PIN verwendet werden können.", @@ -764,6 +763,12 @@ "url": {} } }, + "l_keyboard_layout": null, + "@_keyboard_layout": { + "placeholder": { + "layout": {} + } + }, "@_otp_slot_actions": {}, "s_delete_slot": "Anmeldedaten löschen", diff --git a/lib/l10n/app_en.arb b/lib/l10n/app_en.arb index 30113f1c6..60cc86e98 100644 --- a/lib/l10n/app_en.arb +++ b/lib/l10n/app_en.arb @@ -428,15 +428,15 @@ "l_authenticator_get_started": "Get started with OTP accounts", "l_no_accounts_desc": "Add accounts to your YubiKey from any service provider supporting OATH TOTP/HOTP", "s_add_account": "Add account", - "p_add_account_desc": "Scan QR code (recommended) or enter the credential details manually.", + "p_add_account_desc": "Scan QR code or enter the credential details manually.", "s_add_accounts": "Add account(s)", "p_add_description": "To scan a QR code, make sure the full code is visible on screen and press the button below. You can also drag a saved image from a folder onto this dialog. If you have the account credential details in writing, use the manual entry instead.", "l_drop_qr_description": "Drop QR code to add account(s)", - "p_add_account_three_ways": "There's 3 ways of adding accounts.", + "p_add_account_three_ways": "There are three ways of adding accounts.", "s_scanning": "Scanning (recommended)", "p_scanning_desc": "Before scanning a QR code, make sure the full code is visible on screen.", "s_drag_and_drop": "Drag and drop", - "p_drag_and_drop_desc": "An image containing a QR code may be dropped anywhere in the Accounts application.", + "p_drag_and_drop_desc": "An image containing a QR code may be dropped anywhere in the Accounts view.", "s_manually": "Manually", "p_manually_desc": "Account credential details may be entered manually in the form.", "s_add_manually": "Add manually", @@ -706,7 +706,6 @@ "s_output_format": "Output format", "s_expiration_date": "Expiration date", "p_algorithm_desc": "Key algorithm to use.", - "p_output_format_desc": "The public key can be:\n\t• Saved to file.\n\t• Embedded into a self-signed certificate stored on the YubiKey (default).\n\t• Saved to file in a certificate signing request (CSR).", "p_expiration_date_desc": "Date when the certificate expires (default 1 year).", "p_cert_options_desc": "Key algorithm to use, output format, and expiration date (certificate only).", "p_cert_options_bio_desc": "Key algorithm to use, output format, expiration date (certificate only), and if biometrics can be used instead of PIN.", @@ -764,6 +763,12 @@ "url": {} } }, + "l_keyboard_layout": "Keyboard {layout}", + "@_keyboard_layout": { + "placeholder": { + "layout": {} + } + }, "@_otp_slot_actions": {}, "s_delete_slot": "Delete credential", diff --git a/lib/l10n/app_fr.arb b/lib/l10n/app_fr.arb index f1765d595..3b2a52317 100644 --- a/lib/l10n/app_fr.arb +++ b/lib/l10n/app_fr.arb @@ -706,7 +706,6 @@ "s_output_format": null, "s_expiration_date": null, "p_algorithm_desc": null, - "p_output_format_desc": null, "p_expiration_date_desc": null, "p_cert_options_desc": "Algorithme clé à utiliser, format de sortie et date d'expiration (certificat uniquement).", "p_cert_options_bio_desc": "Algorithme de clé à utiliser, format de sortie, date d'expiration (certificat uniquement) et possibilité d'utiliser des données biométriques à la place du code PIN.", @@ -764,6 +763,12 @@ "url": {} } }, + "l_keyboard_layout": null, + "@_keyboard_layout": { + "placeholder": { + "layout": {} + } + }, "@_otp_slot_actions": {}, "s_delete_slot": "Supprimer les infos d'identification", diff --git a/lib/l10n/app_ja.arb b/lib/l10n/app_ja.arb index 2af3b991e..4dabf9614 100644 --- a/lib/l10n/app_ja.arb +++ b/lib/l10n/app_ja.arb @@ -706,7 +706,6 @@ "s_output_format": null, "s_expiration_date": null, "p_algorithm_desc": null, - "p_output_format_desc": null, "p_expiration_date_desc": null, "p_cert_options_desc": "使用する鍵アルゴリズム、出力形式、および有効期限(証明書のみ)。", "p_cert_options_bio_desc": "使用する鍵アルゴリズム、出力フォーマット、有効期限 (証明書のみ)、PIN の代わりに生体認証を使用できるようにするかを設定します。", @@ -764,6 +763,12 @@ "url": {} } }, + "l_keyboard_layout": null, + "@_keyboard_layout": { + "placeholder": { + "layout": {} + } + }, "@_otp_slot_actions": {}, "s_delete_slot": "認証情報を削除", diff --git a/lib/l10n/app_pl.arb b/lib/l10n/app_pl.arb index 1de1008b2..3e0699285 100644 --- a/lib/l10n/app_pl.arb +++ b/lib/l10n/app_pl.arb @@ -706,7 +706,6 @@ "s_output_format": null, "s_expiration_date": null, "p_algorithm_desc": null, - "p_output_format_desc": null, "p_expiration_date_desc": null, "p_cert_options_desc": "Algorytm klucza do użycia, format wyjściowy i data wygaśnięcia (tylko certyfikat).", "p_cert_options_bio_desc": "Używany algorytm klucza, format wyjściowy, data wygaśnięcia (tylko certyfikat) i czy zamiast kodu PIN można użyć danych biometrycznych.", @@ -764,6 +763,12 @@ "url": {} } }, + "l_keyboard_layout": null, + "@_keyboard_layout": { + "placeholder": { + "layout": {} + } + }, "@_otp_slot_actions": {}, "s_delete_slot": "Usuń poświadczenie", diff --git a/lib/l10n/app_sk.arb b/lib/l10n/app_sk.arb index c18b34bc8..933956ac6 100644 --- a/lib/l10n/app_sk.arb +++ b/lib/l10n/app_sk.arb @@ -706,7 +706,6 @@ "s_output_format": null, "s_expiration_date": null, "p_algorithm_desc": null, - "p_output_format_desc": null, "p_expiration_date_desc": null, "p_cert_options_desc": "Algoritmus kľúča, ktorý sa má použiť, formát výstupu a dátum platnosti (len certifikát).", "p_cert_options_bio_desc": "Algoritmus kľúča, ktorý sa má použiť, formát výstupu, dátum vypršania platnosti (len certifikát) a či sa namiesto PIN kódu môžu použiť biometrické údaje.", @@ -764,6 +763,12 @@ "url": {} } }, + "l_keyboard_layout": null, + "@_keyboard_layout": { + "placeholder": { + "layout": {} + } + }, "@_otp_slot_actions": {}, "s_delete_slot": "Odstrániť poverenie", diff --git a/lib/l10n/app_vi.arb b/lib/l10n/app_vi.arb index 116ff6b7a..bd8b27e05 100644 --- a/lib/l10n/app_vi.arb +++ b/lib/l10n/app_vi.arb @@ -706,7 +706,6 @@ "s_output_format": null, "s_expiration_date": null, "p_algorithm_desc": null, - "p_output_format_desc": null, "p_expiration_date_desc": null, "p_cert_options_desc": "Thuật toán khóa để sử dụng, định dạng đầu ra và ngày hết hạn (chứng chỉ chỉ).", "p_cert_options_bio_desc": "Thuật toán khóa để sử dụng, định dạng đầu ra, ngày hết hạn (chứng chỉ chỉ) và nếu sinh trắc học có thể được sử dụng thay cho PIN.", @@ -764,6 +763,12 @@ "url": {} } }, + "l_keyboard_layout": null, + "@_keyboard_layout": { + "placeholder": { + "layout": {} + } + }, "@_otp_slot_actions": {}, "s_delete_slot": "Xóa thông tin xác thực", diff --git a/lib/otp/views/configure_static_dialog.dart b/lib/otp/views/configure_static_dialog.dart index 4400687c0..c2eaecca4 100644 --- a/lib/otp/views/configure_static_dialog.dart +++ b/lib/otp/views/configure_static_dialog.dart @@ -229,7 +229,8 @@ class _ConfigureStaticDialogState extends ConsumerState { items: widget.keyboardLayouts.keys.toList(), value: _keyboardLayout, selected: _keyboardLayout != _defaultKeyboardLayout, - labelBuilder: (value) => Text('Keyboard $value'), + labelBuilder: (value) => + Text(l10n.l_keyboard_layout(value)), itemBuilder: (value) => Text(value), onChanged: (layout) { setState(() {