summaryrefslogtreecommitdiffstats
path: root/install
diff options
context:
space:
mode:
authorPetr Vobornik <pvoborni@redhat.com>2012-05-23 09:27:28 +0200
committerPetr Vobornik <pvoborni@redhat.com>2012-06-04 10:45:08 +0200
commit496fbbd9195d58f614fb169eebcdb95f93263729 (patch)
treecf9fcab43ddc0964dd605fce98276c4ec51de345 /install
parent888797ffac2c26e21129447ddc1d46167d36fc74 (diff)
downloadfreeipa-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
Diffstat (limited to 'install')
-rw-r--r--install/ui/facet.js2
-rw-r--r--install/ui/test/data/ipa_init.json4
-rw-r--r--install/ui/user.js1
-rw-r--r--install/ui/widget.js1
4 files changed, 5 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);