diff options
author | Petr Vobornik <pvoborni@redhat.com> | 2012-05-23 09:27:28 +0200 |
---|---|---|
committer | Petr Vobornik <pvoborni@redhat.com> | 2012-06-04 10:45:08 +0200 |
commit | 496fbbd9195d58f614fb169eebcdb95f93263729 (patch) | |
tree | cf9fcab43ddc0964dd605fce98276c4ec51de345 | |
parent | 888797ffac2c26e21129447ddc1d46167d36fc74 (diff) | |
download | freeipa-496fbbd9195d58f614fb169eebcdb95f93263729.tar.gz freeipa-496fbbd9195d58f614fb169eebcdb95f93263729.tar.xz freeipa-496fbbd9195d58f614fb169eebcdb95f93263729.zip |
Added missing i18n in action list and action panel
This patch adds strings to internal.py which were not translated in action list/panel patches.
https://fedorahosted.org/freeipa/ticket/2248
-rw-r--r-- | install/ui/facet.js | 2 | ||||
-rw-r--r-- | install/ui/test/data/ipa_init.json | 4 | ||||
-rw-r--r-- | install/ui/user.js | 1 | ||||
-rw-r--r-- | install/ui/widget.js | 1 | ||||
-rw-r--r-- | ipalib/plugins/internal.py | 2 |
5 files changed, 7 insertions, 3 deletions
diff --git a/install/ui/facet.js b/install/ui/facet.js index 3c87dcfcd..62950f6c4 100644 --- a/install/ui/facet.js +++ b/install/ui/facet.js @@ -1795,7 +1795,7 @@ IPA.action_list_widget = function(spec) { { type: 'button', name: 'apply', - label: "Apply" //TODO: translate + label: IPA.messages.actions.apply } ]; diff --git a/install/ui/test/data/ipa_init.json b/install/ui/test/data/ipa_init.json index 01201f69e..09d5a545e 100644 --- a/install/ui/test/data/ipa_init.json +++ b/install/ui/test/data/ipa_init.json @@ -14,10 +14,12 @@ } }, "actions": { + "apply": "Apply", "confirm": "Are you sure you want to proceed with the action.", "delete_confirm": "Are you sure you want to delete ${object}", "disable_confirm": "Are you sure you want to disable ${object}", - "enable_confirm": "Are you sure you want to enable ${object}" + "enable_confirm": "Are you sure you want to enable ${object}", + "title": "Actions" }, "association": { "add": { diff --git a/install/ui/user.js b/install/ui/user.js index 24d3ba499..04fac6bc0 100644 --- a/install/ui/user.js +++ b/install/ui/user.js @@ -106,7 +106,6 @@ IPA.user.entity = function(spec) { action_panel: { factory: IPA.action_panel, name: 'account_actions', - label: 'Actions', //TODO: translate actions: ['reset_password'] }, fields: [ diff --git a/install/ui/widget.js b/install/ui/widget.js index 85bc7132a..e7a837f99 100644 --- a/install/ui/widget.js +++ b/install/ui/widget.js @@ -3162,6 +3162,7 @@ IPA.sshkey_widget = function(spec) { IPA.action_panel = function(spec) { spec = spec || {}; + spec.label = spec.label || IPA.messages.actions.title; var that = IPA.widget(spec); diff --git a/ipalib/plugins/internal.py b/ipalib/plugins/internal.py index 2ed57f69a..d860baf47 100644 --- a/ipalib/plugins/internal.py +++ b/ipalib/plugins/internal.py @@ -149,10 +149,12 @@ class i18n_messages(Command): }, }, "actions": { + "apply": _("Apply"), "confirm": _("Are you sure you want to proceed with the action."), "delete_confirm": _("Are you sure you want to delete ${object}"), "disable_confirm": _("Are you sure you want to disable ${object}"), "enable_confirm": _("Are you sure you want to enable ${object}"), + "title": _("Actions"), }, "association": { "add": { |