From 46f5a5b95139d2ba13a370a7266ad0bc664c3dfa Mon Sep 17 00:00:00 2001 From: Adam Young <ayo...@redhat.com> Date: Fri, 22 Jul 2011 17:35:06 -0400 Subject: [PATCH] dns section header i18n.
https://fedorahosted.org/freeipa/ticket/1493 --- install/ui/dns.js | 4 +- install/ui/test/data/ipa_init.json | 103 +++++++++++++----------------------- ipalib/plugins/internal.py | 2 + 3 files changed, 40 insertions(+), 69 deletions(-) diff --git a/install/ui/dns.js b/install/ui/dns.js index bba1e5cbf06cc7f8f2694db475b20750ad5673e1..f3704bc6ba6569f3ad0f26dc7bb620342d1552cd 100644 --- a/install/ui/dns.js +++ b/install/ui/dns.js @@ -283,7 +283,7 @@ IPA.entity_factories.dnsrecord = function() { }, { name:'standard', - label:'Standard Records', + label:IPA.messages.objects.dnsrecord.standard, fields:[ { factory: IPA.multivalued_text_widget, name: 'arecord', @@ -330,7 +330,7 @@ IPA.entity_factories.dnsrecord = function() { }, { name:'unusual', - label:'Other Record Types', + label:IPA.messages.objects.dnsrecord.other, fields:[ { factory: IPA.multivalued_text_widget, label:'AFSDB', diff --git a/install/ui/test/data/ipa_init.json b/install/ui/test/data/ipa_init.json index 7d9d234e98686889601c8f5cc8316dcd847baa4b..0528d0847a3f7f7d3b6ff5e910f8112efe693abd 100644 --- a/install/ui/test/data/ipa_init.json +++ b/install/ui/test/data/ipa_init.json @@ -9651,8 +9651,13 @@ "sudocmd", "sudocommand", "sudohost", + "sudonotafter", + "sudonotbefore", "sudooption", + "sudoorder", "sudorunas", + "sudorunasgroup", + "sudorunasuser", "sudouser", "supportedalgorithms", "supportedcontrol", @@ -10139,7 +10144,7 @@ "include": null, "label": "Time to live", "maxvalue": 2147483647, - "minvalue": null, + "minvalue": -2147483648, "multivalue": false, "name": "dnsttl", "primary_key": false, @@ -10556,7 +10561,7 @@ "include": null, "label": "SOA time to live", "maxvalue": 2147483647, - "minvalue": null, + "minvalue": -2147483648, "multivalue": false, "name": "dnsttl", "primary_key": false, @@ -10922,7 +10927,7 @@ "include": null, "label": "GID", "maxvalue": 2147483647, - "minvalue": null, + "minvalue": -2147483648, "multivalue": false, "name": "gidnumber", "primary_key": false, @@ -10973,7 +10978,6 @@ "container_dn": "cn=hbac", "default_attributes": [ "cn", - "accessruletype", "ipaenabledflag", "description", "usercategory", @@ -11080,8 +11084,13 @@ "cli_short_name": null, "default": "allow", "doc": "Rule type (allow)", - "exclude": null, - "flags": [], + "exclude": [ + "webui" + ], + "flags": [ + "no_option", + "no_output" + ], "hint": null, "include": null, "label": "Rule type", @@ -15450,7 +15459,7 @@ "include": null, "label": "GID", "maxvalue": 2147483647, - "minvalue": null, + "minvalue": -2147483648, "multivalue": false, "name": "gidnumber", "primary_key": false, @@ -15952,6 +15961,8 @@ "delegation": {}, "dnsrecord": { "data": "Data", + "other": "Other Record Types", + "standard": "Standard Record Types", "title": "Records for DNS Zone", "type": "Record Type" }, @@ -16160,30 +16171,30 @@ "Administrator" ], "gidnumber": [ - "193200000" + "349800000" ], "homedirectory": [ "/home/admin" ], "ipauniqueid": [ - "c300021e-a445-11e0-80b9-525400b55a47" + "3d3de554-b49b-11e0-921a-525400b55a47" ], "krbextradata": [ { + "__base64__": "AALU0ylOcm9vdC9hZG1pbkBTRVJWRVIxNS5BWU9VTkcuQk9TVE9OLkRFVkVMLlJFREhBVC5DT00A" + }, + { "__base64__": "AAgBAA==" - }, - { - "__base64__": "AAL2bA5Ocm9vdC9hZG1pbkBTRVJWRVIxNS5BWU9VTkcuQk9TVE9OLkRFVkVMLlJFREhBVC5DT00A" } ], "krblastpwdchange": [ - "20110702005726Z" + "20110722194732Z" ], "krblastsuccessfulauth": [ - "20110705180548Z" + "20110722195221Z" ], "krbpasswordexpiration": [ - "20110930005726Z" + "20111020194732Z" ], "krbprincipalname": [ "ad...@server15.ayoung.boston.devel.redhat.com" @@ -16211,7 +16222,7 @@ "admin" ], "uidnumber": [ - "193200000" + "349800000" ] } ], @@ -16219,7 +16230,7 @@ "truncated": false }, { - "count": 67, + "count": 68, "error": null, "result": { "basedn": "dc=server15,dc=ayoung,dc=boston,dc=devel,dc=redhat,dc=com", @@ -16278,7 +16289,7 @@ "mount_jsonserver": "json", "mount_xmlserver": "xml", "prompt_all": false, - "ra_plugin": "dogtag", + "ra_plugin": "selfsign", "realm": "SERVER15.AYOUNG.BOSTON.DEVEL.REDHAT.COM", "rpc_json_uri": "http://localhost:8888/ipa/json", "script": "/var/www/mod_wsgi", @@ -16286,12 +16297,13 @@ "startup_traceback": false, "validate_api": false, "verbose": 0, + "wait_for_attr": false, "webui_assets_dir": null, "webui_prod": true, "xmlrpc_uri": "https://server15.ayoung.boston.devel.redhat.com/ipa/xml" }, - "summary": "67 variables", - "total": 67 + "summary": "68 variables", + "total": 68 }, { "error": null, @@ -16300,54 +16312,11 @@ "value": "" }, { + "count": 0, "error": null, - "id": null, - "result": { - "count": 2, - "result": [ - { - "accessruletype": [ - "allow" - ], - "cn": [ - "allow_all" - ], - "description": [ - "Allow all users to access any host from any host" - ], - "dn": "ipauniqueid=75841b24-acba-11e0-aeb9-525400b55a47,cn=hbac,dc=server15,dc=ayoung,dc=boston,dc=devel,dc=redhat,dc=com", - "hostcategory": [ - "all" - ], - "ipaenabledflag": [ - "TRUE" - ], - "servicecategory": [ - "all" - ], - "sourcehostcategory": [ - "all" - ], - "usercategory": [ - "all" - ] - }, - { - "accessruletype": [ - "allow" - ], - "cn": [ - "allow_somnething" - ], - "dn": "ipauniqueid=137053da-acc4-11e0-8d43-525400b55a47,cn=hbac,dc=server15,dc=ayoung,dc=boston,dc=devel,dc=redhat,dc=com", - "ipaenabledflag": [ - "TRUE" - ] - } - ], - "summary": "2 HBAC rules matched", - "truncated": false - } + "result": [], + "summary": "0 HBAC rules matched", + "truncated": false } ] } diff --git a/ipalib/plugins/internal.py b/ipalib/plugins/internal.py index 6f279834a91092b67434bffaabb8d381db16319b..4cba44942579636606c367fde77325adbdd4edc7 100644 --- a/ipalib/plugins/internal.py +++ b/ipalib/plugins/internal.py @@ -161,6 +161,8 @@ class i18n_messages(Command): "type":_("Record Type"), "data":_("Data"), "title":_("Records for DNS Zone"), + "standard":_("Standard Record Types"), + "other":_("Other Record Types"), }, "entitle": { "account":_("Account"), -- 1.7.5.2
_______________________________________________ Freeipa-devel mailing list Freeipa-devel@redhat.com https://www.redhat.com/mailman/listinfo/freeipa-devel