[open-ils-commits] r9652 - in trunk/Open-ILS/xul/staff_client/server: cat locale/en-US

svn at svn.open-ils.org svn at svn.open-ils.org
Wed May 21 10:30:56 EDT 2008


Author: dbs
Date: 2008-05-21 10:30:54 -0400 (Wed, 21 May 2008)
New Revision: 9652

Modified:
   trunk/Open-ILS/xul/staff_client/server/cat/opac.xul
   trunk/Open-ILS/xul/staff_client/server/cat/record_buckets.js
   trunk/Open-ILS/xul/staff_client/server/locale/en-US/cat.properties
Log:
i18n patch from Craig Ricciuto (Laurentian University):

opac.xul: Converted a string that was missed
record_buckets.js: Converted a string that was missed

cat.properties: Added the variables and values for the missed strings from above files


Modified: trunk/Open-ILS/xul/staff_client/server/cat/opac.xul
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/cat/opac.xul	2008-05-21 11:32:40 UTC (rev 9651)
+++ trunk/Open-ILS/xul/staff_client/server/cat/opac.xul	2008-05-21 14:30:54 UTC (rev 9652)
@@ -68,7 +68,7 @@
 				set_opac();
 
 			} catch(E) {
-				var err_msg = document.getElementById("commonStrings").getFormattedString('common.exception', ['cat/opac.xul', E]);
+				var err_msg = $("commonStrings").getFormattedString('common.exception', ['cat/opac.xul', E]);
 				try { g.error.sdump('D_ERROR',err_msg); } catch(E) { dump(err_msg); }
 				alert(err_msg);
 			}
@@ -85,7 +85,7 @@
 						'docid' : docid,
 						'set_tab_name' : function(n) { 
 							if (typeof window.xulG == 'object' && typeof window.xulG.set_tab_name == 'function') {
-								try { window.xulG.set_tab_name('Bib Record: ' + n); } catch(E) { alert(E); }
+								try { window.xulG.set_tab_name($("catStrings").getFormattedString('staff.cat.opac.set_tab_name', [n])); } catch(E) { alert(E); }
 							} else {
 								dump('no set_tab_name\n');
 							}

Modified: trunk/Open-ILS/xul/staff_client/server/cat/record_buckets.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/cat/record_buckets.js	2008-05-21 11:32:40 UTC (rev 9651)
+++ trunk/Open-ILS/xul/staff_client/server/cat/record_buckets.js	2008-05-21 14:30:54 UTC (rev 9652)
@@ -526,7 +526,7 @@
 							try {
 								var bucket = obj.controller.view.bucket_menulist.value;
 								var name = obj.bucket_id_name_map[ bucket ];
-								var conf = window.confirm('Delete the bucket named ' + name + '?');
+								var conf = window.confirm($("catStrings").getFormattedString('staff.cat.record_buckets.delete_bucket_named', [name]));
 								if (!conf) return;
 								obj.list2.clear();
 								var robj = obj.network.simple_request('BUCKET_DELETE',[ses(),'biblio',bucket]);

Modified: trunk/Open-ILS/xul/staff_client/server/locale/en-US/cat.properties
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/locale/en-US/cat.properties	2008-05-21 11:32:40 UTC (rev 9651)
+++ trunk/Open-ILS/xul/staff_client/server/locale/en-US/cat.properties	2008-05-21 14:30:54 UTC (rev 9652)
@@ -196,6 +196,7 @@
 staff.cat.opac.set_marc_edit.alert=Record successfully saved.
 staff.cat.opac.set_marc_edit.std_unexpected_error=Record not likely updated.
 staff.cat.opac.refresh.function_not_implemented.alert=Not yet implemented.  Work around: Choose Duplicate in New Tab option
+staff.cat.opac.set_tab_name=Bib Record: %1$s
 staff.cat.record_buckets.save_file_as=Save File As
 staff.cat.record_buckets.export_records.alert=File not downloaded.
 staff.cat.record_buckets.export_records.std_unexpected_error=Records could not be exported.
@@ -206,6 +207,7 @@
 staff.cat.record_buckets.menulist_placeholder.item2=Retrieve shared bucket...
 staff.cat.record_buckets.change_bucket.bucket_id=Enter bucket number:
 staff.cat.record_buckets.change_bucket.error=Error retrieving bucket.  Did you use a valid bucket ID?
+staff.cat.record_buckets.delete_bucket_named=Delete the bucket named %1$s?
 staff.cat.record_buckets.new_bucket.bucket_prompt=What would you like to name the bucket?
 staff.cat.record_buckets.new_bucket.bucket_prompt_title=Bucket Creation
 staff.cat.record_buckets.new_bucket.same_name_alert=You already have a bucket with that name.



More information about the open-ils-commits mailing list