i18n patch from Craig Ricciuto (Laurentian University):
authordbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 21 May 2008 14:30:54 +0000 (14:30 +0000)
committerdbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 21 May 2008 14:30:54 +0000 (14:30 +0000)
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
Open-ILS/xul/staff_client/server/cat/record_buckets.js
Open-ILS/xul/staff_client/server/locale/en-US/cat.properties

index 0e451e4..954bc5b 100644 (file)
@@ -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');
                                                        }
index 3b3f5fe..f1a6645 100644 (file)
@@ -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]);
index 68d784a..2d829f3 100644 (file)
@@ -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.