[open-ils-commits] SPAM: r8618 - in trunk/Open-ILS:
web/opac/locale/en-US xul/staff_client/chrome/content/main
xul/staff_client/chrome/locale/en-US
svn at svn.open-ils.org
svn at svn.open-ils.org
Mon Feb 4 18:01:24 EST 2008
Author: dbs
Date: 2008-02-04 17:33:11 -0500 (Mon, 04 Feb 2008)
New Revision: 8618
Modified:
trunk/Open-ILS/web/opac/locale/en-US/lang.dtd
trunk/Open-ILS/xul/staff_client/chrome/content/main/main.js
trunk/Open-ILS/xul/staff_client/chrome/content/main/menu.js
trunk/Open-ILS/xul/staff_client/chrome/content/main/menu_frame.xul
trunk/Open-ILS/xul/staff_client/chrome/content/main/menu_frame_overlay.xul
trunk/Open-ILS/xul/staff_client/chrome/locale/en-US/offline.properties
Log:
Bring more i18n love to chrome/main
Modified: trunk/Open-ILS/web/opac/locale/en-US/lang.dtd
===================================================================
--- trunk/Open-ILS/web/opac/locale/en-US/lang.dtd 2008-02-04 22:16:47 UTC (rev 8617)
+++ trunk/Open-ILS/web/opac/locale/en-US/lang.dtd 2008-02-04 22:33:11 UTC (rev 8618)
@@ -1585,3 +1585,21 @@
<!ENTITY staff.circ.copy_status_overlay.copy_status_print_export.accesskey "">
<!ENTITY staff.circ.copy_status_overlay.trim_list.label "Trim List (20 rows)">
<!ENTITY staff.circ.copy_status_overlay.strict_barcode.label "Strict Barcode">
+<!ENTITY staff.chrome.menu_frame_overlay.tab1.label "Tab 1">
+<!ENTITY staff.chrome.menu_frame_overlay.tab1.accesskey "1">
+<!ENTITY staff.chrome.menu_frame_overlay.tab2.label "Tab 2">
+<!ENTITY staff.chrome.menu_frame_overlay.tab2.accesskey "2">
+<!ENTITY staff.chrome.menu_frame_overlay.tab3.label "Tab 3">
+<!ENTITY staff.chrome.menu_frame_overlay.tab3.accesskey "3">
+<!ENTITY staff.chrome.menu_frame_overlay.tab4.label "Tab 4">
+<!ENTITY staff.chrome.menu_frame_overlay.tab4.accesskey "4">
+<!ENTITY staff.chrome.menu_frame_overlay.tab5.label "Tab 5">
+<!ENTITY staff.chrome.menu_frame_overlay.tab5.accesskey "5">
+<!ENTITY staff.chrome.menu_frame_overlay.tab6.label "Tab 6">
+<!ENTITY staff.chrome.menu_frame_overlay.tab6.accesskey "6">
+<!ENTITY staff.chrome.menu_frame_overlay.tab7.label "Tab 7">
+<!ENTITY staff.chrome.menu_frame_overlay.tab7.accesskey "7">
+<!ENTITY staff.chrome.menu_frame_overlay.tab8.label "Tab 8">
+<!ENTITY staff.chrome.menu_frame_overlay.tab8.accesskey "8">
+<!ENTITY staff.chrome.menu_frame_overlay.tab9.label "Tab 9">
+<!ENTITY staff.chrome.menu_frame_overlay.tab9.accesskey "9">
Modified: trunk/Open-ILS/xul/staff_client/chrome/content/main/main.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/chrome/content/main/main.js 2008-02-04 22:16:47 UTC (rev 8617)
+++ trunk/Open-ILS/xul/staff_client/chrome/content/main/main.js 2008-02-04 22:33:11 UTC (rev 8618)
@@ -1,4 +1,5 @@
dump('entering main/main.js\n');
+// vim:noet:sw=4:ts=4:
function grant_perms(url) {
var perms = "UniversalXPConnect UniversalPreferencesWrite UniversalBrowserWrite UniversalPreferencesRead UniversalBrowserRead UniversalFileRead";
Modified: trunk/Open-ILS/xul/staff_client/chrome/content/main/menu.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/chrome/content/main/menu.js 2008-02-04 22:16:47 UTC (rev 8617)
+++ trunk/Open-ILS/xul/staff_client/chrome/content/main/menu.js 2008-02-04 22:33:11 UTC (rev 8618)
@@ -1,5 +1,9 @@
dump('entering main/menu.js\n');
+// vim:noet:sw=4:ts=4:
+var offlineStrings;
+offlineStrings = document.getElementById('offlineStrings');
+
if (typeof main == 'undefined') main = {};
main.menu = function () {
@@ -31,7 +35,7 @@
var cmd_map = {
'cmd_broken' : [
['oncommand'],
- function() { alert('Not Yet Implemented'); }
+ function() { alert(offlineStrings.getString('common.unimplemented')); }
],
/* File Menu */
@@ -68,28 +72,28 @@
['oncommand'],
function() {
obj.data.stash_retrieve();
- obj.set_tab(obj.url_prefix(urls.XUL_COPY_BUCKETS),{'tab_name':'Copy Buckets'},{});
+ obj.set_tab(obj.url_prefix(urls.XUL_COPY_BUCKETS),{'tab_name':offlineStrings.getString('menu.cmd_edit_copy_buckets.tab')},{});
}
],
'cmd_edit_volume_buckets' : [
['oncommand'],
function() {
obj.data.stash_retrieve();
- obj.set_tab(obj.url_prefix(urls.XUL_VOLUME_BUCKETS),{'tab_name':'Volume Buckets'},{});
+ obj.set_tab(obj.url_prefix(urls.XUL_VOLUME_BUCKETS),{'tab_name':offlineStrings.getString('menu.cmd_edit_volume_buckets.tab')},{});
}
],
'cmd_edit_record_buckets' : [
['oncommand'],
function() {
obj.data.stash_retrieve();
- obj.set_tab(obj.url_prefix(urls.XUL_RECORD_BUCKETS),{'tab_name':'Record Buckets'},{});
+ obj.set_tab(obj.url_prefix(urls.XUL_RECORD_BUCKETS),{'tab_name':offlineStrings.getString('menu.cmd_edit_record_buckets.tab')},{});
}
],
'cmd_edit_user_buckets' : [
['oncommand'],
function() {
obj.data.stash_retrieve();
- obj.set_tab(obj.url_prefix(urls.XUL_USER_BUCKETS),{'tab_name':'User Buckets'},{});
+ obj.set_tab(obj.url_prefix(urls.XUL_USER_BUCKETS),{'tab_name':offlineStrings.getString('menu.cmd_edit_user_buckets.tab')},{});
}
],
@@ -101,7 +105,7 @@
JSAN.use('util.network');
var network = new util.network();
- var old_bc = window.prompt('Enter original barcode for the item:','','Replace Barcode');
+ var old_bc = window.prompt(offlineStrings.getString('menu.cmd_replace_barcode.prompt'),'',offlineStrings.getString('menu.cmd_replace_barcode.label'));
if (!old_bc) return;
var copy;
@@ -110,7 +114,7 @@
if (typeof copy.ilsevent != 'undefined') throw(copy);
if (!copy) throw(copy);
} catch(E) {
- alert('We were unable to retrieve an item with barcode "' + old_bc + '".\n');
+ alert(offlineStrings.getFormattedString('menu.cmd_replace_barcode.retrieval.error', [old_bc]) + '\n');
return;
}
@@ -120,24 +124,24 @@
if (typeof copy.ilsevent != 'undefined') throw(copy);
if (!copy) throw(copy);
} catch(E) {
- try { alert('We were unable to retrieve an item with barcode "' + old_bc + '".\n' + (typeof E.ilsevent == 'undefined' ? '' : E.textcode + ' : ' + E.desc)); } catch(F) { alert(E + '\n' + F); }
+ try { alert(offlineStrings.getFormattedString('menu.cmd_replace_barcode.retrieval.error', [old_bc]) + '\n' + (typeof E.ilsevent == 'undefined' ? '' : E.textcode + ' : ' + E.desc)); } catch(F) { alert(E + '\n' + F); }
return;
}
- var new_bc = window.prompt('Enter the replacement barcode for the copy:','','Replace Barcode');
+ var new_bc = window.prompt(offlineStrings.getString('menu.cmd_replace_barcode.replacement.prompt'),'',offlineStrings.getString('menu.cmd_replace_barcode.replacement.label'));
new_bc = String( new_bc ).replace(/\s/g,'');
if (!new_bc) {
- alert('Rename aborted. Blank for barcode not allowed.');
+ alert(offlineStrings.getString('menu.cmd_replace_barcode.blank.error'));
return;
}
var test = network.simple_request('FM_ACP_RETRIEVE_VIA_BARCODE',[ new_bc ]);
if (typeof test.ilsevent == 'undefined') {
- alert('Rename aborted. Another copy has barcode "' + new_bc + '".');
+ alert(offlineStrings.getFormattedString('menu.cmd_replace_barcode.duplicate.error', [new_bc]));
return;
} else {
if (test.ilsevent != 1502 /* ASSET_COPY_NOT_FOUND */) {
- obj.error.standard_unexpected_error_alert('Error testing replacement barcode "' + new_bc + '".',test);
+ obj.error.standard_unexpected_error_alert(offlineStrings.getFormattedString('menu.cmd_replace_barcode.testing.error', [new_bc]),test);
return;
}
}
@@ -147,14 +151,14 @@
if (typeof r.ilsevent != 'undefined') {
if (r.ilsevent != 0) {
if (r.ilsevent == 5000 /* PERM_FAILURE */) {
- alert('Renamed aborted. Insufficient permission.');
+ alert(offlineStrings.getString('menu.cmd_replace_barcode.permission.error'));
} else {
- obj.error.standard_unexpected_error_alert('Error renaming item.',r);
+ obj.error.standard_unexpected_error_alert(offlineStrings.getString('menu.cmd_replace_barcode.renaming.error'),r);
}
}
}
} catch(E) {
- obj.error.standard_unexpected_error_alert('Rename did not likely occur.',copy);
+ obj.error.standard_unexpected_error_alert(offlineStrings.getString('menu.cmd_replace_barcode.renaming.failure'),copy);
}
}
],
@@ -172,13 +176,13 @@
function() {
obj.data.stash_retrieve();
var content_params = { 'session' : ses(), 'authtime' : ses('authtime') };
- obj.set_tab(obj.url_prefix(urls.XUL_OPAC_WRAPPER), {'tab_name':'Catalog'}, content_params);
+ obj.set_tab(obj.url_prefix(urls.XUL_OPAC_WRAPPER), {'tab_name':offlineStrings.getString('menu.cmd_search_opac.tab')}, content_params);
}
],
'cmd_search_tcn' : [
['oncommand'],
function() {
- var tcn = prompt('What is the TCN or accession ID for the record?','','TCN Lookup');
+ var tcn = prompt(offlineStrings.getString('menu.cmd_search_tcn.tab'),'',offlineStrings.getString('menu.cmd_search_tcn.prompt'));
function spawn_tcn(r) {
for (var i = 0; i < r.count; i++) {
@@ -214,9 +218,9 @@
if (robj.count == 0) {
var robj2 = network.simple_request('FM_BRE_ID_SEARCH_VIA_TCN',[tcn,1]);
if (robj2.count == 0) {
- alert('"' + tcn + '" not found');
+ alert(offlineStrings.getFormattedString('menu.cmd_search_tcn.not_found.error', [tcn]));
} else {
- if ( window.confirm('"' + tcn + '" is deleted. Show deleted record anyway?') ) {
+ if ( window.confirm(offlineStrings.getFormattedString('menu.cmd_search_tcn.deleted.error', [tcn])) ) {
spawn_tcn(robj2);
}
}
@@ -251,7 +255,7 @@
{},
{
'show_print_button' : true ,
- 'tab_name' : 'Editing Related Patron' ,
+ 'tab_name' : offline.getString('menu.cmd_patron_register.related.tab'),
'passthru_content_params' : {
'spawn_search' : function(s) { obj.spawn_search(s); },
'spawn_editor' : spawn_editor,
@@ -268,7 +272,7 @@
{},
{
'show_print_button' : true ,
- 'tab_name' : 'Register Patron' ,
+ 'tab_name' : offlineStrings.getString('menu.cmd_patron_register.tab'),
'passthru_content_params' : {
'spawn_search' : function(s) { obj.spawn_search(s); },
'spawn_editor' : spawn_editor,
@@ -302,14 +306,14 @@
['oncommand'],
function() {
obj.data.stash_retrieve();
- obj.set_tab(obj.url_prefix(urls.XUL_HOLDS_BROWSER),{ 'tab_name' : 'Hold Browser' },{});
+ obj.set_tab(obj.url_prefix(urls.XUL_HOLDS_BROWSER),{ 'tab_name' : offlineStrings.getString('menu.cmd_browse_holds.tab') },{});
}
],
'cmd_browse_holds_shelf' : [
['oncommand'],
function() {
obj.data.stash_retrieve();
- obj.set_tab(obj.url_prefix(urls.XUL_HOLDS_BROWSER)+'?shelf=1',{ 'tab_name' : 'Holds Shelf' },{});
+ obj.set_tab(obj.url_prefix(urls.XUL_HOLDS_BROWSER)+'?shelf=1',{ 'tab_name' : offlineStrings.getString('menu.cmd_browse_holds_shelf.tab') },{});
}
],
'cmd_circ_hold_pull_list' : [
@@ -319,7 +323,7 @@
var loc = urls.XUL_REMOTE_BROWSER + '?url=' + window.escape(
obj.url_prefix(urls.XUL_HOLD_PULL_LIST) + '?ses='+window.escape(ses())
);
- obj.set_tab( loc, {'tab_name':'On Shelf Pull List'}, { 'show_print_button' : true, } );
+ obj.set_tab( loc, {'tab_name' : offlineStrings.getString('menu.cmd_browse_hold_pull_list.tab')}, { 'show_print_button' : true, } );
}
],
@@ -347,7 +351,7 @@
);
obj.set_tab(
loc,
- {'tab_name':'Local Administration', 'browser' : true },
+ {'tab_name' : offlineStrings.getString('menu.cmd_local_admin.tab'), 'browser' : true },
{ 'no_xulG' : false, 'show_nav_buttons' : true, 'show_print_button' : true }
);
@@ -371,7 +375,7 @@
function() {
obj.data.stash_retrieve();
if (!obj.data.last_patron) {
- alert('No patron visited yet this session.');
+ alert(offlineStrings.getString('menu.cmd_retrieve_last_patron.session.error'));
return;
}
var url = obj.url_prefix( urls.XUL_PATRON_DISPLAY ); // + '?id=' + window.escape( obj.data.last_patron ) );
@@ -384,7 +388,7 @@
function() {
obj.data.stash_retrieve();
if (!obj.data.last_record) {
- alert('No record visited yet this session.');
+ alert(offlineStrings.getString('menu.cmd_retrieve_last_record.session.error'));
return;
}
var opac_url = obj.url_prefix( urls.opac_rdetail ) + '?r=' + obj.data.last_record;
@@ -395,7 +399,7 @@
};
obj.set_tab(
obj.url_prefix(urls.XUL_OPAC_WRAPPER),
- {'tab_name':'Retrieving title...'},
+ {'tab_name' : offlineStrings.getString('menu.cmd_retrieve_last_record.status')},
content_params
);
}
@@ -439,13 +443,13 @@
obj.data.stash('session');
removeCSSClass(document.getElementById('main_tabbox'),'operator_change');
} else {
- if (network.get_new_session('Change Login',{'url_prefix':obj.url_prefix})) {
+ if (network.get_new_session(offlineStrings.getString('menu.cmd_chg_session.label'),{'url_prefix':obj.url_prefix})) {
obj.data.stash_retrieve();
obj.data.list.au[1] = JSON2js( temp_au );
obj.data.stash('list');
obj.data.previous_session = JSON2js( temp_ses );
obj.data.stash('previous_session');
- x.setAttribute('label', 'Change Operator: ' + obj.data.list.au[1].usrname() );
+ x.setAttribute('label', offlineStrings.getFormattedString('menu.cmd_chg_session.operator.label', [obj.data.list.au[1].usrname()]) );
addCSSClass(document.getElementById('main_tabbox'),'operator_change');
}
}
@@ -457,7 +461,7 @@
'cmd_manage_offline_xacts' : [
['oncommand'],
function() {
- obj.set_tab(obj.url_prefix(urls.XUL_OFFLINE_MANAGE_XACTS), {'tab_name':'Offline Transactions'}, {});
+ obj.set_tab(obj.url_prefix(urls.XUL_OFFLINE_MANAGE_XACTS), {'tab_name' : offlineStrings.getString('menu.cmd_manage_offline_xacts.tab')}, {});
}
],
'cmd_download_patrons' : [
@@ -476,9 +480,9 @@
file = new util.file('offline_patron_list.date');
file.write_content('truncate',new Date());
file.close();
- alert('Download completed');
+ alert(offlineStrings.getString('menu.cmd_download_patrons.complete.status'));
} else {
- alert('There was a problem with the download. The server returned a status ' + x.status + ' : ' + x.statusText);
+ alert(offlineStrings.getFormattedString('menu.cmd_download_patrons.error', [x.status, x.statusText]));
}
} catch(E) {
obj.error.standard_unexpected_error_alert('cmd_download_patrons',E);
@@ -503,21 +507,21 @@
['oncommand'],
function() {
obj.data.stash_retrieve();
- obj.set_tab(obj.url_prefix(urls.XUL_STAT_CAT_EDIT) + '?ses='+window.escape(ses()),{'tab_name':'Stat Cat Editor'},{});
+ obj.set_tab(obj.url_prefix(urls.XUL_STAT_CAT_EDIT) + '?ses='+window.escape(ses()), {'tab_name' : offlineStrings.getString('menu.cmd_stat_cat_edit.tab')},{});
}
],
'cmd_non_cat_type_edit' : [
['oncommand'],
function() {
obj.data.stash_retrieve();
- obj.set_tab(obj.url_prefix(urls.XUL_NON_CAT_LABEL_EDIT) + '?ses='+window.escape(ses()),{'tab_name':'Non-Cataloged Type Editor'},{});
+ obj.set_tab(obj.url_prefix(urls.XUL_NON_CAT_LABEL_EDIT) + '?ses='+window.escape(ses()), {'tab_name' : offlineStrings.getString('menu.cmd_non_cat_type_edit.tab')},{});
}
],
'cmd_copy_location_edit' : [
['oncommand'],
function() {
obj.data.stash_retrieve();
- obj.set_tab(obj.url_prefix(urls.XUL_COPY_LOCATION_EDIT) + '?ses='+window.escape(ses()),{'tab_name':'Copy Location Editor'},{});
+ obj.set_tab(obj.url_prefix(urls.XUL_COPY_LOCATION_EDIT) + '?ses='+window.escape(ses()),{'tab_name' : offlineStrings.getString('menu.cmd_copy_location_edit.tab')},{});
}
],
'cmd_test' : [
@@ -545,25 +549,25 @@
'cmd_console' : [
['oncommand'],
function() {
- obj.set_tab(obj.url_prefix(urls.XUL_DEBUG_CONSOLE),{'tab_name':'Console'},{});
+ obj.set_tab(obj.url_prefix(urls.XUL_DEBUG_CONSOLE),{'tab_name' : offlineStrings.getString('menu.cmd_console.tab')},{});
}
],
'cmd_shell' : [
['oncommand'],
function() {
- obj.set_tab(obj.url_prefix(urls.XUL_DEBUG_SHELL),{'tab_name':'JS Shell'},{});
+ obj.set_tab(obj.url_prefix(urls.XUL_DEBUG_SHELL),{'tab_name' : offlineStrings.getString('menu.cmd_shell.tab')},{});
}
],
'cmd_xuleditor' : [
['oncommand'],
function() {
- obj.set_tab(obj.url_prefix(urls.XUL_DEBUG_XULEDITOR),{'tab_name':'XUL Editor'},{});
+ obj.set_tab(obj.url_prefix(urls.XUL_DEBUG_XULEDITOR),{'tab_name' : offlineStrings.getString('menu.cmd_xuleditor.tab')},{});
}
],
'cmd_fieldmapper' : [
['oncommand'],
function() {
- obj.set_tab(obj.url_prefix(urls.XUL_DEBUG_FIELDMAPPER),{'tab_name':'Fieldmapper'},{});
+ obj.set_tab(obj.url_prefix(urls.XUL_DEBUG_FIELDMAPPER),{'tab_name' : offlineStrings.getString('menu.cmd_fieldmapper.tab')},{});
}
],
'cmd_survey_wizard' : [
@@ -581,7 +585,7 @@
);
obj.set_tab(
loc,
- {'tab_name':'OPAC', 'browser' : true},
+ {'tab_name' : offlineStrings.getString('menu.cmd_public_opac.tab'), 'browser' : true},
{ 'no_xulG' : true, 'show_nav_buttons' : true, 'show_print_button' : true }
);
}
@@ -611,25 +615,25 @@
'cmd_extension_manager' : [
['oncommand'],
function() {
- obj.set_tab('chrome://mozapps/content/extensions/extensions.xul?type=extensions',{'tab_name':'Extension Manager'},{});
+ obj.set_tab('chrome://mozapps/content/extensions/extensions.xul?type=extensions',{'tab_name' : offlineStrings.getString('menu.cmd_extension_manager.tab')},{});
}
],
'cmd_theme_manager' : [
['oncommand'],
function() {
- obj.set_tab('chrome://mozapps/content/extensions/extensions.xul?type=themes',{'tab_name':'Theme Manager'},{});
+ obj.set_tab('chrome://mozapps/content/extensions/extensions.xul?type=themes',{'tab_name' : offlineStrings.getString('menu.cmd_theme_manager.tab')},{});
}
],
'cmd_about_config' : [
['oncommand'],
function() {
- obj.set_tab('chrome://global/content/config.xul',{'tab_name':'about:config'},{});
+ obj.set_tab('chrome://global/content/config.xul',{'tab_name' : 'about:config'},{});
}
],
'cmd_shutdown' : [
['oncommand'],
function() {
- if (window.confirm('Exit Evergreen completely?')) {
+ if (window.confirm(offlineStrings.getString('menu.cmd_shutdown.prompt'))) {
var windowManager = Components.classes["@mozilla.org/appshell/window-mediator;1"].getService();
var windowManagerInterface = windowManager.QueryInterface(Components.interfaces.nsIWindowMediator);
var enumerator = windowManagerInterface.getEnumerator(null);
@@ -659,7 +663,7 @@
'spawn_search' : function(s) {
var obj = this;
- obj.error.sdump('D_TRACE', 'Editor would like to search for: ' + js2JSON(s) );
+ obj.error.sdump('D_TRACE', offlineStrings.getFormattedString('menu.spawn_search.msg', [js2JSON(s)]) );
obj.data.stash_retrieve();
var loc = obj.url_prefix(urls.XUL_PATRON_DISPLAY);
loc += '?doit=1&query=' + window.escape(js2JSON(s));
@@ -704,7 +708,7 @@
for (var i = 0; i < count; i++) obj.close_tab();
setTimeout( function(){ obj.controller.view.tabs.firstChild.focus(); }, 0);
} catch(E) {
- obj.error.standard_unexpected_error_alert('Error closing all tabs',E);
+ obj.error.standard_unexpected_error_alert(offlineStrings.getString('menu.close_all_tabs.error'),E);
}
},
@@ -713,7 +717,7 @@
var tab = this.controller.view.tabs.childNodes[idx];
var panel = this.controller.view.panels.childNodes[ idx ];
while ( panel.lastChild ) panel.removeChild( panel.lastChild );
- tab.setAttribute('label','Tab ' + (idx+1));
+ tab.setAttribute('label', offlineStrings.getFormattedString('menu.close_tab.update_tab_label', [(idx+1)]));
if (idx == 0) {
try {
this.controller.view.tabs.advanceSelectedTab(+1);
@@ -790,7 +794,7 @@
var tab = this.controller.view.tabs.childNodes[ tc ];
tab.hidden = false;
if (!content_params) content_params = {};
- if (!params) params = { 'tab_name' : 'Tab ' + (tc+1) };
+ if (!params) params = { 'tab_name' : offlineStrings.getString('menu.new_tab.tab', [(tc+1)]) };
if (!params.nofocus) params.focus = true; /* make focus the default */
try {
if (params.focus) this.controller.view.tabs.selectedIndex = tc;
@@ -863,7 +867,7 @@
}
} catch(E) {
this.error.sdump('D_ERROR', 'main.menu:2: ' + E);
- alert('pause for error');
+ alert(offlineStrings.getString('menu.set_tab.error'));
}
return frame;
Modified: trunk/Open-ILS/xul/staff_client/chrome/content/main/menu_frame.xul
===================================================================
--- trunk/Open-ILS/xul/staff_client/chrome/content/main/menu_frame.xul 2008-02-04 22:16:47 UTC (rev 8617)
+++ trunk/Open-ILS/xul/staff_client/chrome/content/main/menu_frame.xul 2008-02-04 22:33:11 UTC (rev 8618)
@@ -1,6 +1,9 @@
<?xml version="1.0"?>
<!-- Application: Evergreen Staff Client -->
<!-- Screen: Main, Menu and Tab Navigation -->
+<!--
+ vim:noet:sw=4:ts=4:
+-->
<!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
<!-- STYLESHEETS -->
@@ -43,7 +46,7 @@
function my_init() {
try {
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
- if (typeof JSAN == 'undefined') { throw( "The JSAN library object is missing."); }
+ if (typeof JSAN == 'undefined') { throw(document.getElementById('offlineStrings').getString('common.jsan.missing')); }
JSAN.errorLevel = "die"; // none, warn, or die
/*
JSAN.addRepository('/xul/server/');
@@ -67,8 +70,7 @@
document.title = g.window.appshell_name_increment() + ': ' + g.data.list.au[0].usrname() + '@' + g.data.ws_name + '.' + g.data.server_unadorned;
} catch(E) {
- var err_msg = "!! This software has encountered an error. Please tell your friendly " +
- "system administrator or software developer the following:\nmenu_frame.xul\n" + E + '\n';
+ var err_msg = document.getElementById("offlineStrings").getFormattedString("common.exception", ["menu_frame.xul", E]);
try { g.error.sdump('D_ERROR',err_msg); } catch(E) { dump(err_msg); }
alert(err_msg);
}
@@ -77,6 +79,8 @@
</script>
<script src="chrome://venkman/content/venkman-overlay.js"/>
+ <messagecatalog id="offlineStrings" src="chrome://open_ils_staff_client/locale/offline.properties" />
+
<commandset id="universal_cmds" />
<keyset id="menu_frame_keys" />
Modified: trunk/Open-ILS/xul/staff_client/chrome/content/main/menu_frame_overlay.xul
===================================================================
--- trunk/Open-ILS/xul/staff_client/chrome/content/main/menu_frame_overlay.xul 2008-02-04 22:16:47 UTC (rev 8617)
+++ trunk/Open-ILS/xul/staff_client/chrome/content/main/menu_frame_overlay.xul 2008-02-04 22:33:11 UTC (rev 8618)
@@ -17,15 +17,15 @@
<toolbox id="main_toolbox"/>
<tabbox id="main_tabbox" flex="1" eventnode="window" handleCtrlTab="true">
<tabs id="main_tabs" closebutton="true">
- <tab id="tab_1" accesskey="1" label="Tab 1" hidden="true" />
- <tab id="tab_2" accesskey="2" label="Tab 2" hidden="true" />
- <tab id="tab_3" accesskey="3" label="Tab 3" hidden="true" />
- <tab id="tab_4" accesskey="4" label="Tab 4" hidden="true" />
- <tab id="tab_5" accesskey="5" label="Tab 5" hidden="true" />
- <tab id="tab_6" accesskey="6" label="Tab 6" hidden="true" />
- <tab id="tab_7" accesskey="7" label="Tab 7" hidden="true" />
- <tab id="tab_8" accesskey="8" label="Tab 8" hidden="true" />
- <tab id="tab_9" accesskey="9" label="Tab 9" hidden="true" />
+ <tab id="tab_1" accesskey="&staff.chrome.menu_frame_overlay.tab1.accesskey;" label="&staff.chrome.menu_frame_overlay.tab1.label;" hidden="true" />
+ <tab id="tab_2" accesskey="&staff.chrome.menu_frame_overlay.tab2.accesskey;" label="&staff.chrome.menu_frame_overlay.tab2.label;" hidden="true" />
+ <tab id="tab_3" accesskey="&staff.chrome.menu_frame_overlay.tab3.accesskey;" label="&staff.chrome.menu_frame_overlay.tab3.label;" hidden="true" />
+ <tab id="tab_4" accesskey="&staff.chrome.menu_frame_overlay.tab4.accesskey;" label="&staff.chrome.menu_frame_overlay.tab4.label;" hidden="true" />
+ <tab id="tab_5" accesskey="&staff.chrome.menu_frame_overlay.tab5.accesskey;" label="&staff.chrome.menu_frame_overlay.tab5.label;" hidden="true" />
+ <tab id="tab_6" accesskey="&staff.chrome.menu_frame_overlay.tab6.accesskey;" label="&staff.chrome.menu_frame_overlay.tab6.label;" hidden="true" />
+ <tab id="tab_7" accesskey="&staff.chrome.menu_frame_overlay.tab7.accesskey;" label="&staff.chrome.menu_frame_overlay.tab7.label;" hidden="true" />
+ <tab id="tab_8" accesskey="&staff.chrome.menu_frame_overlay.tab8.accesskey;" label="&staff.chrome.menu_frame_overlay.tab8.label;" hidden="true" />
+ <tab id="tab_9" accesskey="&staff.chrome.menu_frame_overlay.tab9.accesskey;" label="&staff.chrome.menu_frame_overlay.tab9.label;" hidden="true" />
</tabs>
<tabpanels id="main_panels" flex="1">
<tabpanel id="panel_1"><label value="panel_1"/></tabpanel>
Modified: trunk/Open-ILS/xul/staff_client/chrome/locale/en-US/offline.properties
===================================================================
--- trunk/Open-ILS/xul/staff_client/chrome/locale/en-US/offline.properties 2008-02-04 22:16:47 UTC (rev 8617)
+++ trunk/Open-ILS/xul/staff_client/chrome/locale/en-US/offline.properties 2008-02-04 22:33:11 UTC (rev 8618)
@@ -11,6 +11,7 @@
common.barcode.status.warning.blocked=Blocked
common.barcode.status.warning.unknown=with an unknown code: %1$s
common.date.invalid=Invalid Date
+common.unimplemented=Not Yet Implemented
cat.bib_record=Bib Record: %1$s
cat.opac.delete_record.confirm=Are you sure you want to delete title record #%1$s from the catalog?
cat.opac.delete_record=Delete Record
@@ -70,3 +71,53 @@
circ.offline_register.missing.files.error=ERROR: Offline patron registration requires some server-generated files. Please login periodically to retrieve these files.
jsan.file_not_found.error=File not found: %1$s
jsan.namespace.creation.error=Could not create namespace[%1$s]: %2$s
+menu.cmd_edit_copy_buckets.tab=Copy Buckets
+menu.cmd_edit_volume_buckets.tab=Volume Buckets
+menu.cmd_edit_record_buckets.tab=Record Buckets
+menu.cmd_edit_user_buckets.tab=User Buckets
+menu.cmd_replace_barcode.prompt=Enter original barcode for the item:
+menu.cmd_replace_barcode.label=Replace Barcode
+menu.cmd_replace_barcode.retrieval.error=We were unable to retrieve an item with barcode "%1$s".
+menu.cmd_replace_barcode.replacement.prompt=Enter the replacement barcode for the item:
+menu.cmd_replace_barcode.replacement.label=Replace Barcode
+menu.cmd_replace_barcode.blank.error=Rename aborted. Blank for barcode not allowed.
+menu.cmd_replace_barcode.duplicate.error=Rename aborted. Another copy has barcode "%1$s".
+menu.cmd_replace_barcode.testing.error=Error testing replacement barcode "%1$s".
+menu.cmd_replace_barcode.permission.error=Rename aborted. Insufficient permission.
+menu.cmd_replace_barcode.renaming.error=Error renaming item.
+menu.cmd_replace_barcode.renaming.failure=The rename operation probably failed.
+menu.cmd_search_opac.tab=Catalog
+menu.cmd_search_tcn.tab=What is the TCN or accession ID for the record?
+menu.cmd_search_tcn.prompt=TCN Lookup
+menu.cmd_search_tcn.not_found.error="%1$s" not found
+menu.cmd_search_tcn.deleted.error="%1$s" is deleted. Show the deleted record anyway?
+menu.cmd_patron_register.related.tab=Editing Related Patron
+menu.cmd_patron_register.tab=Register Patron
+menu.cmd_browse_holds.tab=Hold Browser
+menu.cmd_browse_holds_shelf.tab=Holds Shelf
+menu.cmd_browse_hold_pull_list.tab=On Shelf Pull List
+menu.cmd_local_admin.tab=Local Administration
+menu.cmd_retrieve_last_patron.session.error=No patron visited yet this session.
+menu.cmd_retrieve_last_record.session.error=No record visited yet this session.
+menu.cmd_retrieve_last_record.status=Retrieving title...
+menu.cmd_chg_session.label=Change Login
+menu.cmd_chg_session.operator.label=Change Operator: %1$s
+menu.cmd_manage_offline_xacts.tab=Offline Transactions
+menu.cmd_download_patrons.complete.status=Download completed
+menu.cmd_download_patrons.error=There was a problem with the download. The server returned a status %1$s : %2$s
+menu.cmd_stat_cat_edit.tab=Statistical Category Editor
+menu.cmd_non_cat_type_edit.tab=Non-Cataloged Type Editor
+menu.cmd_copy_location_edit.tab=Copy Location Editor
+menu.cmd_console.tab=JavaScript Console
+menu.cmd_shell.tab=JavaScript Shell
+menu.cmd_xuleditor.tab=XUL Editor
+menu.cmd_fieldmapper.tab=Fieldmapper
+menu.cmd_public_opac.tab=OPAC
+menu.cmd_extension_manager.tab=Extension Manager
+menu.cmd_theme_manager.tab=Theme Manager
+menu.cmd_shutdown.prompt=Exit Evergreen completely?
+menu.spawn_search.msg=Editor would like to search for: %1$s
+menu.close_all_tabs.error=Error closing all tabs
+menu.close_tab.update_tab_label=Tab %1$s
+menu.new_tab.tab=Tab %1$s
+menu.set_tab.error=pause for error
More information about the open-ils-commits
mailing list