From 8a22c65228ad8a75d8eb342389b32be7bc8bceb5 Mon Sep 17 00:00:00 2001 From: Stanislav Levin Date: Sat, 14 Jul 2018 14:25:16 +0300 Subject: [PATCH] Provide translatable messages for MigrateScreen widget Translatable messages should be marked with @i18n. Also these messages should be presented in "i18n_messages" dictionary. Fixes: https://pagure.io/freeipa/issue/7641 Reviewed-By: Alexander Bokovoy Reviewed-By: Petr Vobornik Reviewed-By: Serhii Tsymbaliuk --- ipaserver/plugins/internal.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/ipaserver/plugins/internal.py b/ipaserver/plugins/internal.py index 2bdd8fad1..e5c8f720a 100644 --- a/ipaserver/plugins/internal.py +++ b/ipaserver/plugins/internal.py @@ -234,6 +234,7 @@ class i18n_messages(Command): "issue": _("Issue"), "match": _("Match"), "match_title": _("Match users according to certificate."), + "migrate": _("Migrate"), "ok": _("OK"), "refresh": _("Refresh"), "refresh_title": _("Reload current settings from the server."), @@ -369,6 +370,24 @@ class i18n_messages(Command): "number_of_passwords": _("number of passwords"), "seconds": _("seconds"), }, + "migration": { + "migrating": _("Migrating"), + "migration_error_msg": _( + "There was a problem with your request. Please, try again " + "later."), + "migration_failure_msg": _( + "Password migration was not successful"), + "migration_info_msg": _( + "

Password Migration

If you have been sent here by " + "your administrator, your personal information is being " + "migrated to a new identity management solution (IPA).

" + "Please, enter your credentials in the form to complete the " + "process. Upon successful login your kerberos account will be " + "activated.

"), + "migration_invalid_password": _( + "The password or username you entered is incorrect"), + "migration_success": _("Password migration was successful"), + }, "objects": { "aci": { "attribute": _("Attribute"),