I18n clean-up.

The hard-coded 'undo' and 'undo all' labels have been moved into
internal.py to allow translation.

Ticket #1897
This commit is contained in:
Endi S. Dewata 2011-09-30 11:49:00 -05:00 committed by Martin Kosek
parent 46c16ed6ec
commit af8350c327
3 changed files with 6 additions and 2 deletions

View File

@ -17054,6 +17054,8 @@
"optional": "Optional field: click to show",
"page": "Page",
"prev": "Prev",
"undo": "undo",
"undo_all": "undo all",
"validation": {
"error": "Text does not match field pattern",
"integer": "Must be an integer",

View File

@ -305,7 +305,7 @@ IPA.widget = function(spec) {
name: 'undo',
style: 'display: none;',
'class': 'ui-state-highlight ui-corner-all undo',
html: 'undo'
html: IPA.messages.widget.undo
}).appendTo(container);
if(on_undo === undefined) {
@ -600,7 +600,7 @@ IPA.multivalued_text_widget = function(spec) {
name: 'undo_all',
style: 'display: none;',
'class': 'ui-state-highlight ui-corner-all undo',
html: 'undo all',
html: IPA.messages.widget.undo_all,
click: function() {
that.reset();
}

View File

@ -453,6 +453,8 @@ class i18n_messages(Command):
"optional": _("Optional field: click to show"),
"page": _("Page"),
"prev": _("Prev"),
"undo": _("undo"),
"undo_all": _("undo all"),
"validation": {
"error": _("Text does not match field pattern"),
"integer": _("Must be an integer"),