summaryrefslogtreecommitdiffstats
path: root/install/ui/src/freeipa/hbactest.js
diff options
context:
space:
mode:
authorPetr Vobornik <pvoborni@redhat.com>2013-04-03 18:18:57 +0200
committerPetr Vobornik <pvoborni@redhat.com>2013-05-06 16:22:21 +0200
commitfcff33fb511db5ffe5c7809bb1a4593f2e681718 (patch)
tree31af15433d3e1a9df92f86a54eb56d8fcd2ebab9 /install/ui/src/freeipa/hbactest.js
parent12f5f4cfdd38c2a29c8e6eeac17557f4e7731307 (diff)
downloadfreeipa-fcff33fb511db5ffe5c7809bb1a4593f2e681718.tar.gz
freeipa-fcff33fb511db5ffe5c7809bb1a4593f2e681718.tar.xz
freeipa-fcff33fb511db5ffe5c7809bb1a4593f2e681718.zip
Replace IPA.messages with @i18n definition for label specs
Replaced by execution of ls | grep .js | xargs sed -i -r "s/label: IPA.messages\.((.\w+)+)/label: '@i18n:\1'/" https://fedorahosted.org/freeipa/ticket/3235
Diffstat (limited to 'install/ui/src/freeipa/hbactest.js')
-rw-r--r--install/ui/src/freeipa/hbactest.js30
1 files changed, 15 insertions, 15 deletions
diff --git a/install/ui/src/freeipa/hbactest.js b/install/ui/src/freeipa/hbactest.js
index ac9183130..e51c7061b 100644
--- a/install/ui/src/freeipa/hbactest.js
+++ b/install/ui/src/freeipa/hbactest.js
@@ -38,7 +38,7 @@ IPA.hbac.test_entity = function(spec) {
facet({
factory: IPA.hbac.test_select_facet,
name: 'user',
- label: IPA.messages.objects.hbacrule.user,
+ label: '@i18n:objects.hbacrule.user',
managed_entity: 'user',
disable_breadcrumb: true,
facet_group: 'default',
@@ -49,7 +49,7 @@ IPA.hbac.test_entity = function(spec) {
'sn',
{
name: 'nsaccountlock',
- label: IPA.messages.status.label,
+ label: '@i18n:status.label',
formatter: IPA.boolean_status_formatter({
invert_value: true
})
@@ -59,7 +59,7 @@ IPA.hbac.test_entity = function(spec) {
facet({
factory: IPA.hbac.test_select_facet,
name: 'targethost',
- label: IPA.messages.objects.hbacrule.host,
+ label: '@i18n:objects.hbacrule.host',
managed_entity: 'host',
disable_breadcrumb: true,
facet_group: 'default',
@@ -68,7 +68,7 @@ IPA.hbac.test_entity = function(spec) {
'description',
{
name: 'has_keytab',
- label: IPA.messages.objects.host.enrolled,
+ label: '@i18n:objects.host.enrolled',
formatter: IPA.boolean_formatter()
}
]
@@ -76,7 +76,7 @@ IPA.hbac.test_entity = function(spec) {
facet({
factory: IPA.hbac.test_select_facet,
name: 'service',
- label: IPA.messages.objects.hbacrule.service,
+ label: '@i18n:objects.hbacrule.service',
managed_entity: 'hbacsvc',
disable_breadcrumb: true,
facet_group: 'default',
@@ -88,7 +88,7 @@ IPA.hbac.test_entity = function(spec) {
facet({
factory: IPA.hbac.test_rules_facet,
name: 'rules',
- label: IPA.messages.objects.hbactest.rules,
+ label: '@i18n:objects.hbactest.rules',
managed_entity: 'hbacrule',
disable_breadcrumb: true,
facet_group: 'default',
@@ -97,7 +97,7 @@ IPA.hbac.test_entity = function(spec) {
'cn',
{
name: 'ipaenabledflag',
- label: IPA.messages.status.label,
+ label: '@i18n:status.label',
formatter: IPA.boolean_status_formatter()
},
'description'
@@ -106,7 +106,7 @@ IPA.hbac.test_entity = function(spec) {
facet({
factory: IPA.hbac.test_run_facet,
name: 'run_test',
- label: IPA.messages.objects.hbactest.run_test,
+ label: '@i18n:objects.hbactest.run_test',
managed_entity: 'hbacrule',
disable_breadcrumb: true,
facet_group: 'default',
@@ -115,12 +115,12 @@ IPA.hbac.test_entity = function(spec) {
'cn',
{
name: 'matched',
- label: IPA.messages.objects.hbactest.matched,
+ label: '@i18n:objects.hbactest.matched',
formatter: IPA.boolean_formatter()
},
{
name: 'ipaenabledflag',
- label: IPA.messages.status.label,
+ label: '@i18n:status.label',
formatter: IPA.boolean_status_formatter()
},
'description'
@@ -165,7 +165,7 @@ IPA.hbac.test_facet = function(spec) {
if (index > 0) {
that.prev_button = IPA.button({
name: 'prev',
- label: IPA.messages.widget.prev,
+ label: '@i18n:widget.prev',
icon: 'ui-icon ui-icon-triangle-1-w',
click: function() {
if (!that.prev_button.hasClass('action-button-disabled')) {
@@ -180,7 +180,7 @@ IPA.hbac.test_facet = function(spec) {
that.next_button = IPA.button({
name: 'next',
- label: IPA.messages.widget.next,
+ label: '@i18n:widget.next',
icon: 'ui-icon ui-icon-triangle-1-e',
click: function() {
if (!that.next_button.hasClass('action-button-disabled')) {
@@ -516,7 +516,7 @@ IPA.hbac.test_run_facet = function(spec) {
that.run_button = IPA.button({
name: 'run_test',
- label: IPA.messages.objects.hbactest.run_test,
+ label: '@i18n:objects.hbactest.run_test',
click: function() {
if (!that.run_button.hasClass('action-button-disabled')) {
that.run();
@@ -588,7 +588,7 @@ IPA.hbac.test_run_facet = function(spec) {
that.prev_button = IPA.button({
name: 'prev',
- label: IPA.messages.widget.prev,
+ label: '@i18n:widget.prev',
icon: 'ui-icon ui-icon-triangle-1-w',
click: function() {
if (!that.prev_button.hasClass('action-button-disabled')) {
@@ -602,7 +602,7 @@ IPA.hbac.test_run_facet = function(spec) {
that.new_test_button = IPA.button({
name: 'new_test',
- label: IPA.messages.objects.hbactest.new_test,
+ label: '@i18n:objects.hbactest.new_test',
click: function() {
if (!that.new_test_button.hasClass('action-button-disabled')) {
that.new_test();