keep no-break space and ellipsis in ascii \u form

This commit is contained in:
Adam Velebil 2023-11-08 14:49:11 +01:00
parent 35562d7a35
commit 668a050ca7
No known key found for this signature in database
GPG Key ID: C9B1E4A3CBBD2E10
6 changed files with 47 additions and 41 deletions

View File

@ -18,6 +18,11 @@ def write_to_file(file_path, text):
with open(file_path, 'w', encoding='utf-8') as file:
file.write(text)
# Translation table for unicode characters we want to keep readable.
trans = str.maketrans({
'\u00a0': r"\u00a0", # No-Break Space (NBSP)
'\u2026': r"\u2026" # Horizontal Ellipsis
})
# Move keys in target into same order as in source.
# Keys not present in source are removed from target.
@ -56,6 +61,7 @@ def update_arb_file(source_path, target_path, language_code):
target_reordered = equalize_key_order(source_json, target_json)
target_text = json.dumps(target_reordered, indent=4, ensure_ascii=False)
target_text = target_text.translate(trans)
target_lines = target_text.splitlines()
for i, line in enumerate(source_lines):

View File

@ -72,7 +72,7 @@
"s_privacy_policy": "Datenschutzerklärung",
"s_open_src_licenses": "Open Source-Lizenzen",
"s_configure_yk": "YubiKey konfigurieren",
"s_please_wait": "Bitte warten",
"s_please_wait": "Bitte warten\u2026",
"s_secret_key": "Geheimer Schlüssel",
"s_show_secret_key": null,
"s_hide_secret_key": null,
@ -88,7 +88,7 @@
}
},
"s_character_count": "Anzahl Zeichen",
"s_learn_more": "Mehr erfahren",
"s_learn_more": "Mehr\u00a0erfahren",
"@_language": {},
"s_language": "Sprache",
@ -132,12 +132,12 @@
"p_try_reinsert_yk": "Versuchen Sie Ihren YubiKey zu entfernen und wieder anzuschließen.",
"s_touch_required": "Berührung erforderlich",
"l_touch_button_now": "Berühren Sie jetzt die Schaltfläche auf Ihrem YubiKey",
"l_keep_touching_yk": "Berühren Sie Ihren YubiKey wiederholt",
"l_keep_touching_yk": "Berühren Sie Ihren YubiKey wiederholt\u2026",
"@_app_configuration": {},
"s_toggle_applications": "Anwendungen umschalten",
"l_min_one_interface": "Mindestens ein Interface muss aktiviert sein",
"s_reconfiguring_yk": "YubiKey wird neu konfiguriert",
"s_reconfiguring_yk": "YubiKey wird neu konfiguriert\u2026",
"s_config_updated": "Konfiguration aktualisiert",
"l_config_updated_reinsert": "Konfiguration aktualisiert, entfernen Sie Ihren YubiKey und schließen ihn wieder an",
"s_app_not_supported": "Anwendung nicht unterstützt",
@ -506,7 +506,7 @@
"@_permissions": {},
"s_enable_nfc": "NFC aktivieren",
"s_permission_denied": "Zugriff verweigert",
"l_elevating_permissions": "Erhöhe Berechtigungen",
"l_elevating_permissions": "Erhöhe Berechtigungen\u2026",
"s_review_permissions": "Berechtigungen überprüfen",
"p_elevated_permissions_required": "Die Verwaltung dieses Geräts benötigt erhöhte Berechtigungen.",
"p_webauthn_elevated_permissions_required": "WebAuthn-Verwaltung benötigt erhöhte Berechtigungen.",
@ -538,7 +538,7 @@
"l_oath_application_reset": "OATH Anwendung zurücksetzen",
"s_reset_fido": "FIDO zurücksetzen",
"l_fido_app_reset": "FIDO Anwendung zurückgesetzt",
"l_press_reset_to_begin": "Drücken Sie Zurücksetzen um zu beginnen",
"l_press_reset_to_begin": "Drücken Sie Zurücksetzen um zu beginnen\u2026",
"l_reset_failed": "Fehler beim Zurücksetzen: {message}",
"@l_reset_failed": {
"placeholders": {
@ -573,7 +573,7 @@
"l_set_icons_for_accounts": "Icons für Konten setzen",
"p_custom_icons_description": "Icon-Pakete machen Ihre Konten mit bekannten Logos und Farben leichter unterscheidbar.",
"s_replace_icon_pack": "Icon-Paket ersetzen",
"l_loading_icon_pack": "Lade Icon-Paket",
"l_loading_icon_pack": "Lade Icon-Paket\u2026",
"s_load_icon_pack": "Icon-Paket laden",
"s_remove_icon_pack": "Icon-Paket entfernen",
"l_icon_pack_removed": "Icon-Paket entfernt",

View File

@ -72,7 +72,7 @@
"s_privacy_policy": "Privacy policy",
"s_open_src_licenses": "Open source licenses",
"s_configure_yk": "Configure YubiKey",
"s_please_wait": "Please wait",
"s_please_wait": "Please wait\u2026",
"s_secret_key": "Secret key",
"s_show_secret_key": "Show secret key",
"s_hide_secret_key": "Hide secret key",
@ -88,7 +88,7 @@
}
},
"s_character_count": "Character count",
"s_learn_more": "Learn more",
"s_learn_more": "Learn\u00a0more",
"@_language": {},
"s_language": "Language",
@ -132,12 +132,12 @@
"p_try_reinsert_yk": "Try to remove and reinsert your YubiKey.",
"s_touch_required": "Touch required",
"l_touch_button_now": "Touch the button on your YubiKey now",
"l_keep_touching_yk": "Keep touching your YubiKey repeatedly",
"l_keep_touching_yk": "Keep touching your YubiKey repeatedly\u2026",
"@_app_configuration": {},
"s_toggle_applications": "Toggle applications",
"l_min_one_interface": "At least one interface must be enabled",
"s_reconfiguring_yk": "Reconfiguring YubiKey",
"s_reconfiguring_yk": "Reconfiguring YubiKey\u2026",
"s_config_updated": "Configuration updated",
"l_config_updated_reinsert": "Configuration updated, remove and reinsert your YubiKey",
"s_app_not_supported": "Application not supported",
@ -439,7 +439,7 @@
"l_certificate_exported": "Certificate exported",
"l_import_file": "Import file",
"l_import_desc": "Import a key and/or certificate",
"l_importing_file": "Importing file",
"l_importing_file": "Importing file\u2026",
"s_file_imported": "File imported",
"l_delete_certificate": "Delete certificate",
"l_delete_certificate_desc": "Remove the certificate from your YubiKey",
@ -458,7 +458,7 @@
"slot": {}
}
},
"l_generating_private_key": "Generating private key",
"l_generating_private_key": "Generating private key\u2026",
"s_private_key_generated": "Private key generated",
"p_warning_delete_certificate": "Warning! This action will delete the certificate from your YubiKey.",
"q_delete_certificate_confirm": "Delete the certficate in PIV slot {slot}?",
@ -506,7 +506,7 @@
"@_permissions": {},
"s_enable_nfc": "Enable NFC",
"s_permission_denied": "Permission denied",
"l_elevating_permissions": "Elevating permissions",
"l_elevating_permissions": "Elevating permissions\u2026",
"s_review_permissions": "Review permissions",
"p_elevated_permissions_required": "Managing this device requires elevated privileges.",
"p_webauthn_elevated_permissions_required": "WebAuthn management requires elevated privileges.",
@ -538,7 +538,7 @@
"l_oath_application_reset": "OATH application reset",
"s_reset_fido": "Reset FIDO",
"l_fido_app_reset": "FIDO application reset",
"l_press_reset_to_begin": "Press reset to begin",
"l_press_reset_to_begin": "Press reset to begin\u2026",
"l_reset_failed": "Error performing reset: {message}",
"@l_reset_failed": {
"placeholders": {
@ -573,7 +573,7 @@
"l_set_icons_for_accounts": "Set icons for accounts",
"p_custom_icons_description": "Icon packs can make your accounts more easily distinguishable with familiar logos and colors.",
"s_replace_icon_pack": "Replace icon pack",
"l_loading_icon_pack": "Loading icon pack",
"l_loading_icon_pack": "Loading icon pack\u2026",
"s_load_icon_pack": "Load icon pack",
"s_remove_icon_pack": "Remove icon pack",
"l_icon_pack_removed": "Icon pack removed",

View File

@ -72,7 +72,7 @@
"s_privacy_policy": "Politique de confidentialité",
"s_open_src_licenses": "Licenses Open source",
"s_configure_yk": "Configurer la YubiKey",
"s_please_wait": "Veuillez patienter",
"s_please_wait": "Veuillez patienter\u2026",
"s_secret_key": "Clé secrète",
"s_show_secret_key": null,
"s_hide_secret_key": null,
@ -88,7 +88,7 @@
}
},
"s_character_count": "Nombre de caractères",
"s_learn_more": "En savoir plus",
"s_learn_more": "En savoir\u00a0plus",
"@_language": {},
"s_language": "Langue",
@ -132,12 +132,12 @@
"p_try_reinsert_yk": "Essayez de réinsérer votre YubiKey.",
"s_touch_required": "Touché requis",
"l_touch_button_now": "Touchez votre YubiKey maintenant",
"l_keep_touching_yk": "Continuez de toucher votre YubiKey",
"l_keep_touching_yk": "Continuez de toucher votre YubiKey\u2026",
"@_app_configuration": {},
"s_toggle_applications": "Changer les applications",
"l_min_one_interface": "Au moins une interface doit être activée",
"s_reconfiguring_yk": "Reconfiguration de la YubiKey",
"s_reconfiguring_yk": "Reconfiguration de la YubiKey\u2026",
"s_config_updated": "Configuration mise à jour",
"l_config_updated_reinsert": "Configuration mise à jour; retirez et réinsérez votre YubiKey",
"s_app_not_supported": "Application non supportée",
@ -439,7 +439,7 @@
"l_certificate_exported": "Certificat exporté",
"l_import_file": "Importer un fichier",
"l_import_desc": "Importer une clé et/ou un certificat",
"l_importing_file": "Importation d'un fichier",
"l_importing_file": "Importation d'un fichier\u2026",
"s_file_imported": "Fichier importé",
"l_delete_certificate": "Supprimer un certificat",
"l_delete_certificate_desc": "Supprimer un certificat de votre YubiKey",
@ -458,7 +458,7 @@
"slot": {}
}
},
"l_generating_private_key": "Génération d'une clé privée",
"l_generating_private_key": "Génération d'une clé privée\u2026",
"s_private_key_generated": "Clé privée générée",
"p_warning_delete_certificate": "Attention! Cette action supprimera le certificat de votre YubiKey.",
"q_delete_certificate_confirm": "Supprimer le certficat du slot PIV {slot}?",
@ -506,7 +506,7 @@
"@_permissions": {},
"s_enable_nfc": "Activer le NFC",
"s_permission_denied": "Permission refusée",
"l_elevating_permissions": "Élevation des permissions",
"l_elevating_permissions": "Élevation des permissions\u2026",
"s_review_permissions": "Révision des permissions",
"p_elevated_permissions_required": "Gérer cet appareil demande des privilèges plus élevés.",
"p_webauthn_elevated_permissions_required": "La gestion WebAuthn demande des privilèges plus élevés.",
@ -538,7 +538,7 @@
"l_oath_application_reset": "L'application OATH à été réinitialisée",
"s_reset_fido": "Réinitialiser le FIDO",
"l_fido_app_reset": "L'application FIDO à été réinitialisée",
"l_press_reset_to_begin": "Appuyez sur réinitialiser pour commencer",
"l_press_reset_to_begin": "Appuyez sur réinitialiser pour commencer\u2026",
"l_reset_failed": "Erreur pendant la réinitialisation: {message}",
"@l_reset_failed": {
"placeholders": {
@ -573,7 +573,7 @@
"l_set_icons_for_accounts": "Sélectionner les icônes pour les comptes",
"p_custom_icons_description": "Les packs d'icônes peuvent rendre vos comptes plus facilement repérables grâce à des logos et couleurs familières.",
"s_replace_icon_pack": "Remplacer le pack d'icônes",
"l_loading_icon_pack": "Chargement du pack d'icônes",
"l_loading_icon_pack": "Chargement du pack d'icônes\u2026",
"s_load_icon_pack": "Charger le pack d'icônes",
"s_remove_icon_pack": "Supprimer le pack d'icônes",
"l_icon_pack_removed": "Pack d'icônes supprimé",

View File

@ -72,7 +72,7 @@
"s_privacy_policy": "プライバシーポリシー",
"s_open_src_licenses": "オープンソースライセンス",
"s_configure_yk": "YubiKeyを構成する",
"s_please_wait": "お待ちください",
"s_please_wait": "お待ちください\u2026",
"s_secret_key": "秘密鍵",
"s_show_secret_key": null,
"s_hide_secret_key": null,
@ -132,12 +132,12 @@
"p_try_reinsert_yk": "YubiKeyを取り外して再挿入してみてください",
"s_touch_required": "タッチが必要です",
"l_touch_button_now": "今すぐYubiKeyのボタンをタッチしてください",
"l_keep_touching_yk": "YubiKeyを繰り返しタッチし続けてください",
"l_keep_touching_yk": "YubiKeyを繰り返しタッチし続けてください\u2026",
"@_app_configuration": {},
"s_toggle_applications": "アプリケーションの切替え",
"l_min_one_interface": "少なくとも 1 つのインターフェイスを有効にする必要があります",
"s_reconfiguring_yk": "YubiKeyを再構成しています",
"s_reconfiguring_yk": "YubiKeyを再構成しています\u2026",
"s_config_updated": "構成が更新されました",
"l_config_updated_reinsert": "設定が更新されました。YubiKeyを取り外して再挿入してください",
"s_app_not_supported": "アプリケーションがサポートされていません",
@ -439,7 +439,7 @@
"l_certificate_exported": "証明書がエクスポートされました",
"l_import_file": "ファイルのインポート",
"l_import_desc": "キーや証明書のインポート",
"l_importing_file": "ファイルのインポート中",
"l_importing_file": "ファイルのインポート中\u2026",
"s_file_imported": "ファイル をインポートしました",
"l_delete_certificate": "証明書を削除",
"l_delete_certificate_desc": "YubiKeyか証明書の削除",
@ -458,7 +458,7 @@
"slot": {}
}
},
"l_generating_private_key": "秘密鍵を生成しています",
"l_generating_private_key": "秘密鍵を生成しています\u2026",
"s_private_key_generated": "秘密鍵を生成しました",
"p_warning_delete_certificate": "警告この操作によってYubiKeyから証明書が削除されます",
"q_delete_certificate_confirm": "PIVスロット{slot}の証明書を削除しますか?",
@ -506,7 +506,7 @@
"@_permissions": {},
"s_enable_nfc": "NFCを有効にする",
"s_permission_denied": "権限がありません",
"l_elevating_permissions": "権限の昇格",
"l_elevating_permissions": "権限の昇格\u2026",
"s_review_permissions": "権限の確認",
"p_elevated_permissions_required": "このデバイスを管理するには権限の昇格が必要です",
"p_webauthn_elevated_permissions_required": "WebAuthn管理には権限の昇格が必要です",
@ -538,7 +538,7 @@
"l_oath_application_reset": "OATHアプリケーションのリセット",
"s_reset_fido": "FIDOのリセット",
"l_fido_app_reset": "FIDOアプリケーションのリセット",
"l_press_reset_to_begin": "リセットを押して開始してください",
"l_press_reset_to_begin": "リセットを押して開始してください\u2026",
"l_reset_failed": "リセット実行中のエラー:{message}",
"@l_reset_failed": {
"placeholders": {
@ -573,7 +573,7 @@
"l_set_icons_for_accounts": "アカウントのアイコンの設定",
"p_custom_icons_description": "アイコンパックを使用すると、見慣れたロゴと色でアカウントをより簡単に区別できるようになります",
"s_replace_icon_pack": "アイコンパックを置き換える",
"l_loading_icon_pack": "アイコンパックをロード中",
"l_loading_icon_pack": "アイコンパックをロード中\u2026",
"s_load_icon_pack": "アイコンパックのロード",
"s_remove_icon_pack": "アイコンパックの削除",
"l_icon_pack_removed": "アイコンパックが削除されました",

View File

@ -72,7 +72,7 @@
"s_privacy_policy": "Polityka prywatności",
"s_open_src_licenses": "Licencje open source",
"s_configure_yk": "Skonfiguruj YubiKey",
"s_please_wait": "Proszę czekać",
"s_please_wait": "Proszę czekać\u2026",
"s_secret_key": "Tajny klucz",
"s_show_secret_key": "Pokaż tajny klucz",
"s_hide_secret_key": "Ukryj tajny klucz",
@ -132,12 +132,12 @@
"p_try_reinsert_yk": "Spróbuj ponownie podłączyć klucz YubiKey.",
"s_touch_required": "Wymagane dotknięcie",
"l_touch_button_now": "Dotknij teraz przycisku na kluczu YubiKey",
"l_keep_touching_yk": "Wielokrotnie dotykaj klucza YubiKey",
"l_keep_touching_yk": "Wielokrotnie dotykaj klucza YubiKey\u2026",
"@_app_configuration": {},
"s_toggle_applications": "Przełączanie funkcji",
"l_min_one_interface": "Przynajmniej jeden interfejs musi być włączony",
"s_reconfiguring_yk": "Rekonfigurowanie YubiKey",
"s_reconfiguring_yk": "Rekonfigurowanie YubiKey\u2026",
"s_config_updated": "Zaktualizowano konfigurację",
"l_config_updated_reinsert": "Zaktualizowano konfigurację, podłącz ponownie klucz YubiKey",
"s_app_not_supported": "Funkcja nie jest obsługiwana",
@ -439,7 +439,7 @@
"l_certificate_exported": "Wyeksportowano certyfikat",
"l_import_file": "Importuj plik",
"l_import_desc": "Zaimportuj klucz i/lub certyfikat",
"l_importing_file": "Importowanie pliku",
"l_importing_file": "Importowanie pliku\u2026",
"s_file_imported": "Plik został zaimportowany",
"l_delete_certificate": "Usuń certyfikat",
"l_delete_certificate_desc": "Usuń certyfikat z klucza YubiKey",
@ -458,7 +458,7 @@
"slot": {}
}
},
"l_generating_private_key": "Generowanie prywatnego klucza",
"l_generating_private_key": "Generowanie prywatnego klucza\u2026",
"s_private_key_generated": "Wygenerowano klucz prywatny",
"p_warning_delete_certificate": "Uwaga! Ta czynność spowoduje usunięcie certyfikatu z klucza YubiKey.",
"q_delete_certificate_confirm": "Usunąć certyfikat ze slotu PIV {slot}?",
@ -506,7 +506,7 @@
"@_permissions": {},
"s_enable_nfc": "Włącz NFC",
"s_permission_denied": "Odmowa dostępu",
"l_elevating_permissions": "Podnoszenie uprawnień",
"l_elevating_permissions": "Podnoszenie uprawnień\u2026",
"s_review_permissions": "Przegląd uprawnień",
"p_elevated_permissions_required": "Zarządzanie tym urządzeniem wymaga podwyższonych uprawnień.",
"p_webauthn_elevated_permissions_required": "Zarządzanie WebAuthn wymaga podwyższonych uprawnień.",
@ -538,7 +538,7 @@
"l_oath_application_reset": "Reset funkcji OATH",
"s_reset_fido": "Zresetuj FIDO",
"l_fido_app_reset": "Reset funkcji FIDO",
"l_press_reset_to_begin": "Naciśnij reset, aby rozpocząć",
"l_press_reset_to_begin": "Naciśnij reset, aby rozpocząć\u2026",
"l_reset_failed": "Błąd podczas resetowania: {message}",
"@l_reset_failed": {
"placeholders": {
@ -573,7 +573,7 @@
"l_set_icons_for_accounts": "Ustaw ikony dla kont",
"p_custom_icons_description": "Pakiety ikon mogą sprawić, że Twoje konta będą łatwiejsze do odróżnienia dzięki znanym logo i kolorom.",
"s_replace_icon_pack": "Zastąp pakiet ikon",
"l_loading_icon_pack": "Wczytywanie pakietu ikon",
"l_loading_icon_pack": "Wczytywanie pakietu ikon\u2026",
"s_load_icon_pack": "Wczytaj pakiet ikon",
"s_remove_icon_pack": "Usuń pakiet ikon",
"l_icon_pack_removed": "Usunięto pakiet ikon",