From 14526c50bbabb8df43fa6420b678fcfc3ecd6436 Mon Sep 17 00:00:00 2001 From: Florence Blanc-Renaud Date: Thu, 23 Feb 2023 18:42:45 +0100 Subject: [PATCH] Webui tests: fix test failure Fix translation issues in webui unit tests Signed-off-by: Florence Blanc-Renaud Reviewed-By: Alexander Bokovoy --- install/ui/test/data/i18n_messages.json | 2 +- ipaserver/plugins/internal.py | 13 +++++++------ 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/install/ui/test/data/i18n_messages.json b/install/ui/test/data/i18n_messages.json index 4cd32c743..75ddcdc63 100644 --- a/install/ui/test/data/i18n_messages.json +++ b/install/ui/test/data/i18n_messages.json @@ -556,7 +556,7 @@ "type_totp": "Time-based (TOTP)" }, "passkeyconfig": { - "options": _("Options") + "options": "Options" }, "permission": { "add_custom_attr": "Add Custom Attribute", diff --git a/ipaserver/plugins/internal.py b/ipaserver/plugins/internal.py index 0f80a5460..79b870314 100644 --- a/ipaserver/plugins/internal.py +++ b/ipaserver/plugins/internal.py @@ -1225,12 +1225,13 @@ class i18n_messages(Command): "type_totp": _("Time-based (TOTP)"), }, "passkey": { - "adder_title": "Add Passkey", - "data_label": "Passkey", - "deleter_content": "Do you want to remove passkey ${passkey}?", - "deleter_title": "Remove Passkey", - "type_discoverable": "(discoverable) ", - "type_serverside": "(server-side) " + "adder_title": _("Add Passkey"), + "data_label": _("Passkey"), + "deleter_content": _( + "Do you want to remove passkey ${passkey}?"), + "deleter_title": _("Remove Passkey"), + "type_discoverable": _("(discoverable) "), + "type_serverside": _("(server-side) ") }, "passkeyconfig": { "options": _("Options")