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 56d89d39ce
commit 62817a4f72
3 changed files with 6 additions and 2 deletions

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();
}