[open-ils-commits] r9137 - 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 Mar 26 00:03:47 EDT 2008
Author: dbs
Date: 2008-03-25 23:28:32 -0400 (Tue, 25 Mar 2008)
New Revision: 9137
Modified:
trunk/Open-ILS/xul/staff_client/server/cat/copy_browser.js
trunk/Open-ILS/xul/staff_client/server/locale/en-US/cat.properties
Log:
Knock off a few more strings for i18n
Modified: trunk/Open-ILS/xul/staff_client/server/cat/copy_browser.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/cat/copy_browser.js 2008-03-26 02:02:42 UTC (rev 9136)
+++ trunk/Open-ILS/xul/staff_client/server/cat/copy_browser.js 2008-03-26 03:28:32 UTC (rev 9137)
@@ -607,8 +607,22 @@
}
);
- 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++) {
list[i].isdeleted('1');
@@ -618,7 +632,7 @@
[ 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 @@
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();
}
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-03-26 02:02:42 UTC (rev 9136)
+++ trunk/Open-ILS/xul/staff_client/server/locale/en-US/cat.properties 2008-03-26 03:28:32 UTC (rev 9137)
@@ -34,3 +34,12 @@
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
More information about the open-ils-commits
mailing list