[open-ils-commits] r8726 - in trunk/Open-ILS: web/opac/locale/en-US xul/staff_client/server/OpenILS xul/staff_client/server/locale/en-US xul/staff_client/server/main

svn at svn.open-ils.org svn at svn.open-ils.org
Mon Feb 11 22:10:25 EST 2008


Author: dbs
Date: 2008-02-11 21:41:11 -0500 (Mon, 11 Feb 2008)
New Revision: 8726

Modified:
   trunk/Open-ILS/web/opac/locale/en-US/lang.dtd
   trunk/Open-ILS/xul/staff_client/server/OpenILS/util_overlay.xul
   trunk/Open-ILS/xul/staff_client/server/locale/en-US/common.properties
   trunk/Open-ILS/xul/staff_client/server/main/data.xul
   trunk/Open-ILS/xul/staff_client/server/main/gen_offline_widgets.xul
   trunk/Open-ILS/xul/staff_client/server/main/ws_info.xul
Log:
i18n for the server/main and server/OpenILS directories


Modified: trunk/Open-ILS/web/opac/locale/en-US/lang.dtd
===================================================================
--- trunk/Open-ILS/web/opac/locale/en-US/lang.dtd	2008-02-11 21:44:51 UTC (rev 8725)
+++ trunk/Open-ILS/web/opac/locale/en-US/lang.dtd	2008-02-12 02:41:11 UTC (rev 8726)
@@ -1646,3 +1646,8 @@
 <!ENTITY staff.circ.print_list.header.label "Header">
 <!ENTITY staff.circ.print_list.line_item.label "Line Item">
 <!ENTITY staff.circ.print_list.footer.label "Footer">
+<!ENTITY staff.main.data.loading "Loading data...">
+<!ENTITY staff.main.ws_info.entry "Enter a workstation name and library to register this client under:">
+<!ENTITY staff.main.ws_info.name "Name">
+<!ENTITY staff.main.ws_info.register_btn.label "Register">
+<!ENTITY staff.main.ws_info.register_btn.accesskey "R">

Modified: trunk/Open-ILS/xul/staff_client/server/OpenILS/util_overlay.xul
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/OpenILS/util_overlay.xul	2008-02-11 21:44:51 UTC (rev 8725)
+++ trunk/Open-ILS/xul/staff_client/server/OpenILS/util_overlay.xul	2008-02-12 02:41:11 UTC (rev 8726)
@@ -1,4 +1,4 @@
-<?xml version="1.0"?>
+<?xml version="1.0" encoding="UTF-8"?>
 <!-- Modified by Jason for Evergreen -->
 
 <overlay id="openils_util_overlay"

Modified: trunk/Open-ILS/xul/staff_client/server/locale/en-US/common.properties
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/locale/en-US/common.properties	2008-02-11 21:44:51 UTC (rev 8725)
+++ trunk/Open-ILS/xul/staff_client/server/locale/en-US/common.properties	2008-02-12 02:41:11 UTC (rev 8726)
@@ -84,3 +84,11 @@
 staff.z39_50.search_class.tcn=Accession #
 staff.z39_50.search_class.title=Title
 staff.z39_50_import_interface_label=Z39.50 IMPORT
+staff.main.data.loaded=Data loaded.
+staff.main.gen_offline_widgets.synced=Offline interface synchronized with server.
+staff.main.gen_offline_widgets.noncat_sort.error=error in noncat sorting: 
+staff.main.gen_offline_widgets.please_wait=Please Wait
+staff.main.gen_offline_widgets.workstation_registration_denied=You do not have permission to register a workstation.
+staff.main.gen_offline_widgets.registration.override=Override Registration Failure?
+staff.main.gen_offline_widgets.registration.error=Workstation Registration error (%1$s)
+staff.main.gen_offline_widgets.registration.success=Registration successful

Modified: trunk/Open-ILS/xul/staff_client/server/main/data.xul
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/main/data.xul	2008-02-11 21:44:51 UTC (rev 8725)
+++ trunk/Open-ILS/xul/staff_client/server/main/data.xul	2008-02-12 02:41:11 UTC (rev 8726)
@@ -1,6 +1,9 @@
-<?xml version="1.0"?>
+<?xml version="1.0" encoding="UTF-8"?>
 <!-- Application: Evergreen Staff Client -->
 <!-- Screen: Main, Authentication Window -->
+<!--
+ vim:noet:sw=4:ts=4:
+-->
 
 <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
 <!-- PRESENTATION -->
@@ -19,7 +22,7 @@
 <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
 <!-- LOCALIZATION -->
 <!DOCTYPE window PUBLIC "" ""[
-	<!--#include virtual="/opac/locale/en-US/lang.dtd"-->
+	<!--#include virtual="/opac/locale/${locale}/lang.dtd"-->
 ]>
 
 <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
@@ -47,9 +50,7 @@
 			netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
 
 			if (typeof JSAN == 'undefined') {
-				throw(
-					"The JSAN library object is missing."
-				);
+				throw(document.getElementById("commonStrings").getString('common.jsan.missing'));
 			}
 			/////////////////////////////////////////////////////////////////////////////
 
@@ -195,7 +196,7 @@
 					urls.XUL_OFFLINE_GENERATE_WIDGETS	
 				);
 
-				document.getElementById('caption').setAttribute('label','Data loaded.');
+				document.getElementById('caption').setAttribute('label', document.getElementById('commonStrings').getString('staff.main.data.loaded'));
 
 				xulG.window.open(urls.XUL_MENU_FRAME
 					+ '?server='+window.escape(xulG.url),
@@ -213,7 +214,7 @@
 	</script>
 
 	<groupbox id="data_groupbox" flex="1" class="my_overflow"> 
-		<caption id="caption" label="Loading data..."/> 
+		<caption id="caption" label="&staff.main.data.loading;"/> 
 		<description id="data_progress"/>
 		<iframe id="iframe" />
 	</groupbox>

Modified: trunk/Open-ILS/xul/staff_client/server/main/gen_offline_widgets.xul
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/main/gen_offline_widgets.xul	2008-02-11 21:44:51 UTC (rev 8725)
+++ trunk/Open-ILS/xul/staff_client/server/main/gen_offline_widgets.xul	2008-02-12 02:41:11 UTC (rev 8726)
@@ -1,6 +1,9 @@
-<?xml version="1.0"?>
+<?xml version="1.0" encoding="UTF-8"?>
 <!-- Application: Evergreen Staff Client -->
 <!-- Screen: Main, Authentication Window -->
+<!--
+ vim:noet:sw=4:ts=4:
+-->
 
 <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
 <!-- PRESENTATION -->
@@ -11,7 +14,7 @@
 <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
 <!-- LOCALIZATION -->
 <!DOCTYPE window PUBLIC "" ""[
-	<!--#include virtual="/opac/locale/en-US/lang.dtd"-->
+	<!--#include virtual="/opac/locale/${locale}/lang.dtd"-->
 ]>
 
 <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
@@ -36,9 +39,7 @@
             netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
 
 			if (typeof JSAN == 'undefined') {
-				throw(
-					"The JSAN library object is missing."
-				);
+				throw(document.getElementById('commonStrings').getString('common.jsan.missing'));
 			}
 			/////////////////////////////////////////////////////////////////////////////
 
@@ -87,7 +88,7 @@
 
 			save_object('print_list_templates',g.data.print_list_templates);
 
-			$('placeholder').setAttribute('value','Offline interface synchronized with server.');
+			$('placeholder').setAttribute('value', $('commonStrings').getString('staff.main.gen_offline_widgets.synced'));
 
 		}
 
@@ -107,7 +108,10 @@
 				util.functional.map_list( 
 					/*util.fm_utils.flatten_ou_branch(g.data.tree.aou)*/ g.data.list.aou,
 					function(obj) { 
-						var sname = obj.shortname(); for (i = sname.length; i < 20; i++) sname += ' ';
+						var sname = obj.shortname();
+						for (i = sname.length; i < 20; i++) {
+							sname += ' ';
+						}
 						return [ 
 							obj.name() ? sname + ' ' + obj.name() : obj.shortname(),
 							obj.id(), 
@@ -187,7 +191,7 @@
 									[ b.owning_lib(), b.name() ]
 								);
 							} catch(E) {
-								alert('error in noncat sorting: ' + E);
+								alert($('commonStrings').getString('staff.main.gen_offline_widgets.noncat_sort.error') + E);
 								return 0;
 							}
 						}

Modified: trunk/Open-ILS/xul/staff_client/server/main/ws_info.xul
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/main/ws_info.xul	2008-02-11 21:44:51 UTC (rev 8725)
+++ trunk/Open-ILS/xul/staff_client/server/main/ws_info.xul	2008-02-12 02:41:11 UTC (rev 8726)
@@ -1,6 +1,9 @@
-<?xml version="1.0"?>
+<?xml version="1.0" encoding="UTF-8"?>
 <!-- Application: Evergreen Staff Client -->
 <!-- Screen: Main, Authentication Window -->
+<!--
+ vim:noet:sw=4:ts=4:
+-->
 
 <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
 <!-- PRESENTATION -->
@@ -11,7 +14,7 @@
 <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
 <!-- LOCALIZATION -->
 <!DOCTYPE window PUBLIC "" ""[
-	<!--#include virtual="/opac/locale/en-US/lang.dtd"-->
+	<!--#include virtual="/opac/locale/${locale}/lang.dtd"-->
 ]>
 
 <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
@@ -38,14 +41,12 @@
 
 			document.getElementById('register_btn').disabled = true;
 			document.getElementById('wsname').disabled = true;
-			document.getElementById('wsname').value = 'Please Wait';
+			document.getElementById('wsname').value = document.getElementById('commonStrings').getString('staff.main.gen_offline_widgets.please_wait');
 
 			netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
 
 			if (typeof JSAN == 'undefined') {
-				throw(
-					"The JSAN library object is missing."
-				);
+				throw(document.getElementById("commonStrings").getString('common.jsan.missing'));
 			}
 			/////////////////////////////////////////////////////////////////////////////
 
@@ -77,7 +78,7 @@
 				[ xulG.auth.session.key, g.user.id(), 'REGISTER_WORKSTATION']
 			);
 			if (highest_org_id == -1) {
-				alert('You do not have permission to register a workstation.');
+				alert(document.getElementById('commonStrings').getString('staff.main.gen_offline_widgets.workstation_registration_denied'));
 				xulG.auth.logoff();
 				return;
 			}
@@ -147,7 +148,7 @@
 					[ xulG.auth.session.key, g.my_libs_shortname_hash[ g.ml.value ] + '-' + g.tb.value, g.ml.value ],
 					null,
 					{
-						'title' : 'Override Registration Failure?',
+						'title' : document.getElementById('commonStrings').getString('staff.main.gen_offline_widgets.registration.override'),
 						'overridable_events' : [ 
 							1703 /* WORKSTATION_NAME_EXISTS */, 
 						],
@@ -158,7 +159,7 @@
 					switch(robj.ilsevent) {
 						case -1 : g.error.standard_network_error_alert(); break;
 						case 1703 /* WORKSTATION_NAME_EXISTS */ : /* handled with override request */ break;
-						default: g.error.standard_unexpected_error_alert('Workstation Registration',robj); break;
+						default: g.error.standard_unexpected_error_alert(document.getElementById('commonStrings').getFormattedString('staff.main.gen_offline_widgets.registration.error', ['1']), robj); break;
 					}
 				} else {
 					netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect UniversalPreferencesWrite UniversalBrowserWrite UniversalPreferencesRead UniversalBrowserRead");
@@ -169,11 +170,11 @@
 					};
 					xulG.file.get('ws_info');
 					xulG.file.set_object(g.data.ws_info);
-					alert('Registration successful');
+					alert(document.getElementById('commonStrings').getString('staff.main.gen_offline_widgets.registration.success'));
 					xulG.auth.logoff();
 				}
 			} catch(E) {
-				g.error.standard_unexpected_error_alert('Workstation Registration 2',E);
+				g.error.standard_unexpected_error_alert(document.getElementById('commonStrings').getFormattedString('staff.main.gen_offline_widgets.registration.error', ['2']) ,E);
 			}
 		}
 
@@ -182,15 +183,15 @@
 
 	<vbox flex="1" style="background: #993333">
 		<description>
-			Enter a workstation name and library to register this client under:
+			&staff.main.ws_info.entry;
 		</description>
 		<hbox>
-			<label value="Name" control="wsname"/>
+			<label value="&staff.main.ws_info.name;" control="wsname"/>
 			<textbox id="wsname" />
 		</hbox>
 		<hbox>
 			<hbox id="placeholder"/>
-			<button id="register_btn" label="Register" accesskey="R" oncommand="register();"/>
+			<button id="register_btn" label="&staff.main.ws_info.register_btn.label;" accesskey="&staff.main.ws_info.register_btn.accesskey;" oncommand="register();"/>
 		</hbox>
 	</vbox>
 </window>



More information about the open-ils-commits mailing list