[open-ils-commits] r9329 - trunk/Open-ILS/xul/staff_client/server/cat

svn at svn.open-ils.org svn at svn.open-ils.org
Sun Apr 13 20:24:46 EDT 2008


Author: dbs
Date: 2008-04-13 19:46:53 -0400 (Sun, 13 Apr 2008)
New Revision: 9329

Modified:
   trunk/Open-ILS/xul/staff_client/server/cat/copy_buckets_quick.xul
Log:
Clean up the problems I introduced during i18n-ization


Modified: trunk/Open-ILS/xul/staff_client/server/cat/copy_buckets_quick.xul
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/cat/copy_buckets_quick.xul	2008-04-13 18:23:17 UTC (rev 9328)
+++ trunk/Open-ILS/xul/staff_client/server/cat/copy_buckets_quick.xul	2008-04-13 23:46:53 UTC (rev 9329)
@@ -40,9 +40,9 @@
 		function my_init() {
 			try {
 				netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
-            if (typeof JSAN == 'undefined') {
-               throw( document.getElementById("commonStrings").getString('common.jsan.missing') );
-            }
+				if (typeof JSAN == 'undefined') {
+					throw( document.getElementById("commonStrings").getString('common.jsan.missing') );
+				}
 				JSAN.errorLevel = "die"; // none, warn, or die
 				JSAN.addRepository('/xul/server/');
 				JSAN.use('util.error'); g.error = new util.error();
@@ -60,11 +60,14 @@
 					}
 				);
 
-				$('desc').appendChild( document.createTextNode( 
-					(g.copy_ids.length == 1 ?
-						$('catStrings').getString('staff.cat.copy_buckets_quick.bucket_prompt') :
-						$('catStrings').getFormattedString('staff.cat.copy_buckets_quick.bucket_prompt.plural', [g.copy_ids.length]) 
-				) );
+				$('desc').appendChild(
+					document.createTextNode( 
+						(g.copy_ids.length == 1 ?
+							$('catStrings').getString('staff.cat.copy_buckets_quick.bucket_prompt') :
+							$('catStrings').getFormattedString('staff.cat.copy_buckets_quick.bucket_prompt.plural', [g.copy_ids.length]) 
+						) 
+					)
+				);
 				var robj = g.network.simple_request('BUCKET_RETRIEVE_VIA_USER',[ ses(), g.data.list.au[0].id() ]);
 				if (typeof robj.ilsevent != 'undefined') throw(robj);
 
@@ -107,7 +110,7 @@
 					g.add_to_bucket(bucket_id);
 				}
 			} catch(E) {
-				g.error.standard_unexpected_error_alert($('catStrings).getString('staff.cat.copy_buckets_quick.copy_buckets_new_bucket.error'), E);
+				g.error.standard_unexpected_error_alert($('catStrings').getString('staff.cat.copy_buckets_quick.copy_buckets_new_bucket.error'), E);
 			}
 		}
 
@@ -148,6 +151,10 @@
 	]]>
 	</script>
 
+	<messagecatalog id="catStrings" src="/xul/server/locale/<!--#echo var='locale'-->/cat.properties" />
+	<messagecatalog id="circStrings" src="/xul/server/locale/<!--#echo var='locale'-->/circ.properties" />
+	<messagecatalog id="commonStrings" src="/xul/server/locale/<!--#echo var='locale'-->/common.properties" />
+
 	<vbox flex="1" style="overflow: auto">
 	<groupbox flex="1">
 		<caption label="&staff.cat.copy_buckets_quick.item_buckets.label;"/>



More information about the open-ils-commits mailing list