Knock off a few more strings for i18n
authordbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 26 Mar 2008 03:28:32 +0000 (03:28 +0000)
committerdbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 26 Mar 2008 03:28:32 +0000 (03:28 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@9137 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/server/cat/copy_browser.js
Open-ILS/xul/staff_client/server/locale/en-US/cat.properties

index d64a76a..7277272 100644 (file)
@@ -607,7 +607,21 @@ cat.copy_browser.prototype = {
                                                                                }
                                                                        );
 
-                                                                       var r = obj.error.yns_alert('Are you sure you would like to delete ' + (list.length != 1 ? 'these ' + list.length + ' volumes' : 'this one volume') + '?', 'Delete Volumes?', 'Delete', 'Cancel', null, 'Check here to confirm this action');
+                                                                       var del_prompt;
+                                                                       if (list.length == 1) {
+                                                                               del_prompt = document.getElementById('catStrings').getString('staff.cat.copy_browser.delete_volume.prompt');
+                                                                       } else {
+                                                                               del_prompt = document.getElementById('catStrings').getFormattedString('staff.cat.copy_browser.delete_volumes.prompt.plural', [list.length]);
+                                                                       }
+
+                                                                       var r = obj.error.yns_alert(
+                                                                                       del_prompt,
+                                                                                       document.getElementById('catStrings').getString('staff.cat.copy_browser.delete_volume.title'),
+                                                                                       document.getElementById('catStrings').getString('staff.cat.copy_browser.delete_volume.delete'),
+                                                                                       document.getElementById('catStrings').getString('staff.cat.copy_browser.delete_volume.cancel'),
+                                                                                       null,
+                                                                                       document.getElementById('commonStrings').getString('common.confirm')
+                                                                       );
 
                                                                        if (r == 0) {
                                                                                for (var i = 0; i < list.length; i++) {
@@ -618,7 +632,7 @@ cat.copy_browser.prototype = {
                                                                                        [ ses(), list, true ],
                                                                                        null,
                                                                                        {
-                                                                                               'title' : 'Override Delete Failure?',
+                                                                                               'title' : document.getElementById('catStrings').getString('staff.cat.copy_browser.delete_volume.override'),
                                                                                                'overridable_events' : [
                                                                                                ]
                                                                                        }
@@ -626,16 +640,16 @@ cat.copy_browser.prototype = {
                                                                                if (robj == null) throw(robj);
                                                                                if (typeof robj.ilsevent != 'undefined') {
                                                                                        if (robj.ilsevent == 1206 /* VOLUME_NOT_EMPTY */) {
-                                                                                               alert('You must delete all the copies on the volume before you may delete the volume itself.');
+                                                                                               alert(document.getElementById('catStrings').getString('staff.cat.copy_browser.delete_volume.copies_remain'));
                                                                                                return;
                                                                                        }
                                                                                        if (robj.ilsevent != 0) throw(robj);
                                                                                }
-                                                                               alert('Volumes deleted.');
+                                                                               alert(document.getElementById('catStrings').getString('staff.cat.copy_browser.delete_volume.success'));
                                                                                obj.refresh_list();
                                                                        }
                                                                } catch(E) {
-                                                                       obj.error.standard_unexpected_error_alert('copy browser -> delete volumes',E);
+                                                                       obj.error.standard_unexpected_error_alert(document.getElementById('catStrings').getString('staff.cat.copy_browser.delete_volume.exception'),E);
                                                                        obj.refresh_list();
                                                                }
 
index b608415..cb19917 100644 (file)
@@ -34,3 +34,12 @@ staff.cat.copy_browser.edit_volume.failed=Edit failed:  You tried to change a vo
 staff.cat.copy_browser.edit_volume.success=Volumes modified.
 staff.cat.copy_browser.edit_volume.error=volume update error: 
 staff.cat.copy_browser.edit_volume.exception=Copy Browser -> Volume Edit
+staff.cat.copy_browser.delete_volume.prompt=Are you sure you would like to delete this volume?
+staff.cat.copy_browser.delete_volume.prompt.plural=Are you sure you would like to delete these %1$s volumes?
+staff.cat.copy_browser.delete_volume.title=Delete Volumes?
+staff.cat.copy_browser.delete_volume.delete=Delete
+staff.cat.copy_browser.delete_volume.cancel=Cancel
+staff.cat.copy_browser.delete_volume.override=Override Delete Failure?
+staff.cat.copy_browser.delete_volume.copies_remain=You must delete all the copies on the volume before you may delete the volume itself.
+staff.cat.copy_browser.delete_volume.success=Volumes deleted.
+staff.cat.copy_browser.delete_volume.exception=copy browser -> delete volumes