Fixed "enroll" labels.

Labels using the word "enroll" (except for host enrollment) have
been modified to use more relevant words.

The IPA.add_dialog has been renamed into IPA.entity_adder_dialog
for clarity.

Ticket #1642
This commit is contained in:
Endi S. Dewata 2011-10-24 19:20:14 -05:00
parent 4322370942
commit 6af5755de5
11 changed files with 25 additions and 27 deletions

View File

@ -23,7 +23,7 @@
/* REQUIRES: ipa.js */ /* REQUIRES: ipa.js */
IPA.add_dialog = function (spec) { IPA.entity_adder_dialog = function(spec) {
spec = spec || {}; spec = spec || {};
@ -192,7 +192,7 @@ IPA.add_dialog = function (spec) {
}; };
// methods that should be invoked by subclasses // methods that should be invoked by subclasses
that.add_dialog_create = that.create; that.entity_adder_dialog_create = that.create;
init(); init();

View File

@ -889,7 +889,7 @@ IPA.association_facet = function (spec) {
that.add_button = IPA.action_button({ that.add_button = IPA.action_button({
name: 'add', name: 'add',
label: IPA.messages.buttons.enroll, label: IPA.messages.buttons.add,
icon: 'add-icon', icon: 'add-icon',
click: function() { click: function() {
if (!that.add_button.hasClass('action-button-disabled')) { if (!that.add_button.hasClass('action-button-disabled')) {
@ -923,7 +923,7 @@ IPA.association_facet = function (spec) {
}).appendTo(span); }).appendTo(span);
$('<label/>', { $('<label/>', {
text: IPA.messages.association.direct_enrollment, text: IPA.messages.association.direct_membership,
'for': direct_id 'for': direct_id
}).appendTo(span); }).appendTo(span);
@ -944,7 +944,7 @@ IPA.association_facet = function (spec) {
}).appendTo(span); }).appendTo(span);
$('<label/>', { $('<label/>', {
text: IPA.messages.association.indirect_enrollment, text: IPA.messages.association.indirect_membership,
'for': indirect_id 'for': indirect_id
}).appendTo(span); }).appendTo(span);
} }

View File

@ -221,10 +221,10 @@ IPA.automount_key_column = function(spec) {
IPA.automountmap_adder_dialog = function(spec) { IPA.automountmap_adder_dialog = function(spec) {
var that = IPA.add_dialog(spec); var that = IPA.entity_adder_dialog(spec);
that.create = function() { that.create = function() {
that.add_dialog_create(); that.entity_adder_dialog_create();
var method_field = that.get_field('method'); var method_field = that.get_field('method');
var indirect_section = that.get_section('indirect'); var indirect_section = that.get_section('indirect');

View File

@ -492,7 +492,7 @@ IPA.adder_dialog = function(spec) {
var add_button = that.create_button({ var add_button = that.create_button({
name: 'add', name: 'add',
label: IPA.messages.buttons.enroll, label: IPA.messages.buttons.add,
click: function() { click: function() {
if (!add_button.is_enabled()) return; if (!add_button.is_enabled()) return;
that.execute(); that.execute();

View File

@ -383,10 +383,10 @@ IPA.dnszone_adder_dialog = function(spec) {
spec = spec || {}; spec = spec || {};
var that = IPA.add_dialog(spec); var that = IPA.entity_adder_dialog(spec);
that.create = function() { that.create = function() {
that.add_dialog_create(); that.entity_adder_dialog_create();
that.container.addClass('dnszone-adder-dialog'); that.container.addClass('dnszone-adder-dialog');
}; };

View File

@ -914,7 +914,7 @@ IPA.entity_builder = function(){
}; };
that.adder_dialog = function(spec) { that.adder_dialog = function(spec) {
spec.factory = spec.factory || IPA.add_dialog; spec.factory = spec.factory || IPA.entity_adder_dialog;
spec.name = spec.name || 'add'; spec.name = spec.name || 'add';
if (!spec.title) { if (!spec.title) {

View File

@ -140,7 +140,7 @@ IPA.group_adder_dialog = function (spec) {
spec = spec || {}; spec = spec || {};
var that = IPA.add_dialog(spec); var that = IPA.entity_adder_dialog(spec);
var init = function() { var init = function() {

View File

@ -267,10 +267,10 @@ IPA.host_adder_dialog = function(spec) {
spec = spec || {}; spec = spec || {};
spec.retry = typeof spec.retry !== 'undefined' ? spec.retry : false; spec.retry = typeof spec.retry !== 'undefined' ? spec.retry : false;
var that = IPA.add_dialog(spec); var that = IPA.entity_adder_dialog(spec);
that.create = function() { that.create = function() {
that.add_dialog_create(); that.entity_adder_dialog_create();
that.container.addClass('host-adder-dialog'); that.container.addClass('host-adder-dialog');
}; };

View File

@ -79,18 +79,18 @@ IPA.entity_factories.service = function() {
}). }).
standard_association_facets(). standard_association_facets().
adder_dialog({ adder_dialog({
factory: IPA.service_add_dialog, factory: IPA.service_adder_dialog,
height: 350 height: 350
}). }).
build(); build();
}; };
IPA.service_add_dialog = function(spec) { IPA.service_adder_dialog = function(spec) {
spec = spec || {}; spec = spec || {};
var that = IPA.add_dialog(spec). var that = IPA.entity_adder_dialog(spec).
field(IPA.widget({ field(IPA.widget({
name: 'krbprincipalname', name: 'krbprincipalname',
required: false, required: false,

View File

@ -24,8 +24,8 @@
"memberof": "Add ${entity} ${primary_key} into ${other_entity}", "memberof": "Add ${entity} ${primary_key} into ${other_entity}",
"sourcehost": "Add Source ${other_entity} into ${entity} ${primary_key}" "sourcehost": "Add Source ${other_entity} into ${entity} ${primary_key}"
}, },
"direct_enrollment": "Direct Enrollment", "direct_membership": "Direct Membership",
"indirect_enrollment": "Indirect Enrollment", "indirect_membership": "Indirect Membership",
"no_entries": "No entries.", "no_entries": "No entries.",
"paging": "Showing ${start} to ${end} of ${total} entries.", "paging": "Showing ${start} to ${end} of ${total} entries.",
"remove": { "remove": {
@ -48,7 +48,6 @@
"add_many": "Add Many", "add_many": "Add Many",
"cancel": "Cancel", "cancel": "Cancel",
"close": "Close", "close": "Close",
"enroll": "Enroll",
"find": "Find", "find": "Find",
"get": "Get", "get": "Get",
"issue": "Issue", "issue": "Issue",
@ -98,8 +97,8 @@
}, },
"facet_groups": { "facet_groups": {
"managedby": "${primary_key} is managed by:", "managedby": "${primary_key} is managed by:",
"member": "Entities enrolled in ${primary_key}:", "member": "${primary_key} members:",
"memberof": "${primary_key} is a member of these:" "memberof": "${primary_key} is a member of:"
}, },
"facets": { "facets": {
"details": "Settings", "details": "Settings",

View File

@ -114,8 +114,8 @@ class i18n_messages(Command):
"memberof": _("Add ${entity} ${primary_key} into ${other_entity}"), "memberof": _("Add ${entity} ${primary_key} into ${other_entity}"),
"sourcehost": _("Add Source ${other_entity} into ${entity} ${primary_key}"), "sourcehost": _("Add Source ${other_entity} into ${entity} ${primary_key}"),
}, },
"direct_enrollment": _("Direct Enrollment"), "direct_membership": _("Direct Membership"),
"indirect_enrollment": _("Indirect Enrollment"), "indirect_membership": _("Indirect Membership"),
"no_entries": _("No entries."), "no_entries": _("No entries."),
"paging": _("Showing ${start} to ${end} of ${total} entries."), "paging": _("Showing ${start} to ${end} of ${total} entries."),
"remove": { "remove": {
@ -138,7 +138,6 @@ class i18n_messages(Command):
"add_many": _("Add Many"), "add_many": _("Add Many"),
"cancel": _("Cancel"), "cancel": _("Cancel"),
"close": _("Close"), "close": _("Close"),
"enroll": _("Enroll"),
"find": _("Find"), "find": _("Find"),
"get": _("Get"), "get": _("Get"),
"issue": _("Issue"), "issue": _("Issue"),
@ -188,8 +187,8 @@ class i18n_messages(Command):
}, },
"facet_groups": { "facet_groups": {
"managedby": _("${primary_key} is managed by:"), "managedby": _("${primary_key} is managed by:"),
"member": _("Entities enrolled in ${primary_key}:"), "member": _("${primary_key} members:"),
"memberof": _("${primary_key} is a member of these:"), "memberof": _("${primary_key} is a member of:"),
}, },
"facets": { "facets": {
"details": _("Settings"), "details": _("Settings"),