From be109711a8406326e9b2a7297813c388fefc7641 Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Tue, 11 Oct 2011 21:00:45 -0700 Subject: [PATCH] i18n a few more labels in the new admin console --- lib/WebGUI/i18n/English/WebGUI.pm | 6 ++++++ www/extras/admin/admin.js | 8 ++++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/lib/WebGUI/i18n/English/WebGUI.pm b/lib/WebGUI/i18n/English/WebGUI.pm index 58cf1679d..1e9f2b185 100644 --- a/lib/WebGUI/i18n/English/WebGUI.pm +++ b/lib/WebGUI/i18n/English/WebGUI.pm @@ -4770,6 +4770,12 @@ Users may override this setting in their profile. context => 'Add, as in to append or add more', }, + 'Choose...' => { + message => 'Choose...', + lastUpdate => 0, + context => 'Choose, as in to select from a set of options', + }, + }; 1; diff --git a/www/extras/admin/admin.js b/www/extras/admin/admin.js index 3c1a4d494..4377426f8 100644 --- a/www/extras/admin/admin.js +++ b/www/extras/admin/admin.js @@ -158,7 +158,7 @@ WebGUI.Admin = function(cfg){ // Get I18N this.i18n = new WebGUI.i18n( { namespaces : { - 'WebGUI' : [ '< prev', 'next >', 'locked by' ], + 'WebGUI' : [ '< prev', 'next >', 'locked by', '364', 'Loading...' ], 'Asset' : [ 'rank', '99', 'type', 'revision date', 'size', 'locked', 'More', 'unlocked', 'edit', 'update', 'delete', '43', 'cut', 'Copy', 'duplicate', 'create shortcut' ], @@ -956,7 +956,7 @@ WebGUI.Admin.prototype.openTab // Prepare the tab var newTab = new YAHOO.widget.Tab({ - label : "Loading...", + label : window.admin.i18n.get('WebGUI','Loading...'), content : '' }); newTab.get('contentEl').appendChild( iframe ); @@ -2431,7 +2431,7 @@ WebGUI.Admin.Search newForm.style.display = "block"; var newTab = new YAHOO.widget.Tab({ - label : "Search", + label : window.admin.i18n.get('WebGUI','364'), content : '' }); this.tab = newTab; @@ -2648,7 +2648,7 @@ WebGUI.Admin.Search.prototype.addFilter filter.button = new YAHOO.widget.Button( { name : "className", type : "menu", - label : "Choose...", + label : window.admin.i18n.get('WebGUI','Choose...'), container : li, menu : filter.menu } );