From: Pasi Kallinen Date: Tue, 8 Jan 2013 14:36:57 +0000 (+0200) Subject: Make some staff client tab names translatable. X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=refs%2Fheads%2Fuser%2Fpaxed%2Flp1081566fix;p=working%2FEvergreen.git Make some staff client tab names translatable. Allows translation of the "Portal", "On Shelf Pull List", "Register Patron", "Record Buckets", "Reports", and "MARC Batch Import/Export" tab names. Signed-off-by: Pasi Kallinen --- diff --git a/Open-ILS/web/opac/locale/en-US/lang.dtd b/Open-ILS/web/opac/locale/en-US/lang.dtd index 70063d8ae5..87a82b43c0 100644 --- a/Open-ILS/web/opac/locale/en-US/lang.dtd +++ b/Open-ILS/web/opac/locale/en-US/lang.dtd @@ -3621,6 +3621,12 @@ + + + + + + diff --git a/Open-ILS/xul/staff_client/server/index.xhtml b/Open-ILS/xul/staff_client/server/index.xhtml index b0ddccd4b6..17d51db478 100644 --- a/Open-ILS/xul/staff_client/server/index.xhtml +++ b/Open-ILS/xul/staff_client/server/index.xhtml @@ -87,7 +87,8 @@ data.stash_retrieve(); document.getElementById('staffname').innerHTML = ", " + data.list.au[0].first_given_name(); home_ou_id = data.list.au[0].ws_ou(); - xulG.set_tab_name('Portal'); + var tabname = document.getElementById('staff.client.portal.tab_name'); + xulG.set_tab_name(tabname ? tabname.textContent : 'Portal'); } function jb_open_eg_web_page(path, label) { var loc = urls.XUL_BROWSER + '?url=' + window.escape(xulG.url_prefix('EG_WEB_BASE') + '/' + path); @@ -142,7 +143,8 @@ } function hold_pull_list(newtab) { var loc = urls.XUL_REMOTE_BROWSER + '?url=' + window.escape(urls.XUL_HOLD_PULL_LIST + '?ses=' + window.escape(ses())); - var params = {'tab_name':'On Shelf Pull List'}; + var tabname = document.getElementById('staff.client.hold_pull_list.tab_name'); + var params = {'tab_name': tabname ? tabname.textContent : 'On Shelf Pull List'}; if(newtab) xulG.new_tab(loc, params); @@ -178,7 +180,8 @@ xulG.set_tab(urls.XUL_COPY_BUCKETS, params, {}); } function record_buckets(newtab) { - params = {'tab_name':'Record Buckets'}; + var tabname = document.getElementById('staff.client.record_buckets.tab_name'); + params = {'tab_name': tabname ? tabname.textContent : 'Record Buckets'}; if(newtab) xulG.new_tab(urls.XUL_RECORD_BUCKETS, params, {}); else @@ -197,14 +200,17 @@ xulG.set_tab(urls.XUL_CHECKIN,{},{}); } function MARC_batch_import(newtab) { + var tabname = document.getElementById('staff.client.marc_batch_import.tab_name'); + var tn = tabname ? tabname.textContent : 'Server Settings'; if(newtab) - jb_open_eg_web_page_newtab('vandelay/vandelay', 'Server Settings'); + jb_open_eg_web_page_newtab('vandelay/vandelay', tn); else - jb_open_eg_web_page('vandelay/vandelay', 'Server Settings'); + jb_open_eg_web_page('vandelay/vandelay', tn); } function local_admin_reports(newtab) { + var tabname = document.getElementById('staff.client.local_admin_reports.tab_name'); var loc = urls.XUL_BROWSER + '?url=' + window.escape( xulG.url_prefix('XUL_REPORTS') + '?ses=' + ses()); - params = {'tab_name' : 'Reports', 'browser' : false } + params = {'tab_name' : tabname ? tabname.textContent : 'Reports', 'browser' : false } content_params = {'no_xulG' : false, 'show_print_button' : false, show_nav_buttons : true } if(newtab) xulG.new_tab(loc, params, content_params); @@ -234,9 +240,10 @@ } var loc = urls.XUL_REMOTE_BROWSER + '?url=' + window.escape( urls.XUL_PATRON_EDIT + '?ses=' + window.escape( ses() ) ); + var tabname = document.getElementById('staff.client.register_patron.tab_name'); var content_params = { 'show_print_button' : true , - 'tab_name' : 'Register Patron' , + 'tab_name' : tabname ? tabname.textContent : 'Register Patron' , 'passthru_content_params' : { 'spawn_search' : function(s) { spawn_search(s); }, 'spawn_editor' : spawn_editor } } @@ -563,6 +570,12 @@ + + + + + +