From df8a9d5690a221a6f3ca0ce9a0f2aaf1a6466dc0 Mon Sep 17 00:00:00 2001 From: dbs Date: Wed, 21 May 2008 14:30:54 +0000 Subject: [PATCH] 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 git-svn-id: svn://svn.open-ils.org/ILS/trunk@9652 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/xul/staff_client/server/cat/opac.xul | 4 ++-- Open-ILS/xul/staff_client/server/cat/record_buckets.js | 2 +- Open-ILS/xul/staff_client/server/locale/en-US/cat.properties | 2 ++ 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Open-ILS/xul/staff_client/server/cat/opac.xul b/Open-ILS/xul/staff_client/server/cat/opac.xul index 0e451e4c2d..954bc5bf92 100644 --- a/Open-ILS/xul/staff_client/server/cat/opac.xul +++ b/Open-ILS/xul/staff_client/server/cat/opac.xul @@ -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'); } diff --git a/Open-ILS/xul/staff_client/server/cat/record_buckets.js b/Open-ILS/xul/staff_client/server/cat/record_buckets.js index 3b3f5fe937..f1a6645d5e 100644 --- a/Open-ILS/xul/staff_client/server/cat/record_buckets.js +++ b/Open-ILS/xul/staff_client/server/cat/record_buckets.js @@ -526,7 +526,7 @@ cat.record_buckets.prototype = { 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]); diff --git a/Open-ILS/xul/staff_client/server/locale/en-US/cat.properties b/Open-ILS/xul/staff_client/server/locale/en-US/cat.properties index 68d784a5e0..2d829f3d21 100644 --- a/Open-ILS/xul/staff_client/server/locale/en-US/cat.properties +++ b/Open-ILS/xul/staff_client/server/locale/en-US/cat.properties @@ -196,6 +196,7 @@ staff.cat.marc_new.loading_template.error=Error loading MARC template: %1$s 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.item1=Choose a bucket... 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. -- 2.43.2