[open-ils-commits] SPAM: r9270 - in trunk/Open-ILS:
web/opac/locale/en-US xul/staff_client/server/cat
xul/staff_client/server/locale/en-US
svn at svn.open-ils.org
svn at svn.open-ils.org
Tue Apr 8 13:30:05 EDT 2008
Author: dbs
Date: 2008-04-08 12:52:54 -0400 (Tue, 08 Apr 2008)
New Revision: 9270
Modified:
trunk/Open-ILS/web/opac/locale/en-US/lang.dtd
trunk/Open-ILS/xul/staff_client/server/cat/copy_buckets_overlay.xul
trunk/Open-ILS/xul/staff_client/server/cat/copy_buckets_quick.xul
trunk/Open-ILS/xul/staff_client/server/locale/en-US/cat.properties
Log:
Finish the copy_buckets i18n.
Modified: trunk/Open-ILS/web/opac/locale/en-US/lang.dtd
===================================================================
--- trunk/Open-ILS/web/opac/locale/en-US/lang.dtd 2008-04-08 16:46:43 UTC (rev 9269)
+++ trunk/Open-ILS/web/opac/locale/en-US/lang.dtd 2008-04-08 16:52:54 UTC (rev 9270)
@@ -1805,3 +1805,37 @@
<!ENTITY staff.cat.copy_browser.holdings_maintenance.cmd_refresh_list.label "Refresh Listing">
<!ENTITY staff.cat.copy_browser.holdings_maintenance.cmd_refresh_list.accesskey "R">
<!ENTITY staff.cat.copy_buckets.window_title "Copy Buckets">
+<!ENTITY staff.cat.copy_buckets_overlay.pending_copies "Pending Copies">
+<!ENTITY staff.cat.copy_buckets_overlay.bucket_view "Bucket View">
+<!ENTITY staff.cat.copy_buckets_overlay.pending_buckets.save_columns1 "Save Columns">
+<!ENTITY staff.cat.copy_buckets_overlay.pending_buckets.sel_clip1 "Copy to Clipboard">
+<!ENTITY staff.cat.copy_buckets_overlay.pending_buckets.cmd_print_export1 "Print Export">
+<!ENTITY staff.cat.copy_buckets_overlay.pending_buckets.cmd_export1 "Export">
+<!ENTITY staff.cat.copy_buckets_overlay.pending_buckets.copy_buckets_add.label "Add All">
+<!ENTITY staff.cat.copy_buckets_overlay.pending_buckets.copy_buckets_add.accesskey "A">
+<!ENTITY staff.cat.copy_buckets_overlay.pending_buckets.copy_buckets_sel_add.label "Add Selected">
+<!ENTITY staff.cat.copy_buckets_overlay.copy_buckets.copy_buckets_new_bucket.label "New Bucket">
+<!ENTITY staff.cat.copy_buckets_overlay.copy_buckets.copy_buckets_delete_bucket.label "Delete Bucket">
+<!ENTITY staff.cat.copy_buckets_overlay.copy_buckets.refresh.label "Refresh">
+<!ENTITY staff.cat.copy_buckets_overlay.copy_buckets.save_columns2.label "Save Columns">
+<!ENTITY staff.cat.copy_buckets_overlay.copy_buckets.sel_clip2.label "Copy to Clipboard">
+<!ENTITY staff.cat.copy_buckets_overlay.copy_buckets.delete_item.label "Remove Selected From Bucket">
+<!ENTITY staff.cat.copy_buckets_overlay.copy_buckets.export.label "Add Selected">
+<!ENTITY staff.cat.copy_buckets_overlay.info_box.bucket.label "Bucket #">
+<!ENTITY staff.cat.copy_buckets_overlay.info_box.owner.label "Owner:">
+<!ENTITY staff.cat.copy_buckets_overlay.copy_buckets.print.label "Print">
+<!ENTITY staff.cat.copy_buckets_overlay.copy_buckets.print.accesskey "P">
+<!ENTITY staff.cat.copy_buckets_overlay.copy_buckets.print_export.label "Print Export">
+<!ENTITY staff.cat.copy_buckets_overlay.copy_buckets.cmd_copy_buckets_export.label "Export">
+<!ENTITY staff.cat.copy_buckets_overlay.copy_buckets.batch.label "Batch:">
+<!ENTITY staff.cat.copy_buckets_overlay.copy_buckets.cmd_export_to_copy_status.label "Show Status">
+<!ENTITY staff.cat.copy_buckets_overlay.copy_buckets.copy_buckets_transfer_to_volume.label "Transfer to Specific Volume">
+<!ENTITY staff.cat.copy_buckets_overlay.copy_buckets.copy_buckets_batch_copy_edit.label "Edit Item Attributes">
+<!ENTITY staff.cat.copy_buckets_overlay.copy_buckets.copy_buckets_batch_copy_delete.label "Delete All from Catalog">
+<!ENTITY staff.cat.copy_buckets_quick.item_buckets.label "Item Buckets">
+<!ENTITY staff.cat.copy_buckets_quick.item_buckets.add_to_bucket.label "Add to Selected Bucket">
+<!ENTITY staff.cat.copy_buckets_quick.item_buckets.add_to_bucket.accesskey "A">
+<!ENTITY staff.cat.copy_buckets_quick.item_buckets.new_bucket.label "Add to New Bucket">
+<!ENTITY staff.cat.copy_buckets_quick.item_buckets.new_bucket.accesskey "N">
+<!ENTITY staff.cat.copy_buckets_quick.item_buckets.cancel.label "Cancel">
+<!ENTITY staff.cat.copy_buckets_quick.item_buckets.cancel.accesskey "C">
Modified: trunk/Open-ILS/xul/staff_client/server/cat/copy_buckets_overlay.xul
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/cat/copy_buckets_overlay.xul 2008-04-08 16:46:43 UTC (rev 9269)
+++ trunk/Open-ILS/xul/staff_client/server/cat/copy_buckets_overlay.xul 2008-04-08 16:52:54 UTC (rev 9270)
@@ -1,6 +1,6 @@
<?xml version="1.0"?>
<!DOCTYPE overlay PUBLIC "" ""[
- <!--#include virtual="/opac/locale/en-US/lang.dtd"-->
+ <!--#include virtual="/opac/locale/${locale}/lang.dtd"-->
]>
<overlay id="copy_buckets_overlay"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
@@ -15,14 +15,14 @@
<vbox id="cmvb1" flex="1">
<groupbox flex="1">
- <caption label="Pending Copies" />
+ <caption label="&staff.cat.copy_buckets_overlay.pending_copies;" />
<hbox id="pending_buckets_top_ui" />
<tree id="pending_copies_list" flex="1" enableColumnDrag="true"/>
<hbox id="pending_buckets_bottom_ui" />
</groupbox>
<splitter><grippy /></splitter>
<groupbox flex="2">
- <caption label="Bucket View" />
+ <caption label="&staff.cat.copy_buckets_overlay.bucket_view;" />
<hbox id="copy_buckets_top_ui" />
<hbox id="info_box"/>
<tree id="copies_in_bucket_list" flex="1" enableColumnDrag="true"/>
@@ -31,49 +31,49 @@
</vbox>
<hbox id="pending_buckets_bottom_ui">
- <button id="save_button1" command="save_columns1" label="Save Columns" />
- <button id="clip_button1" command="sel_clip1" label="Copy to Clipboard" disabled="true" />
- <button id="cmd_print_export_btn1" command="cmd_print_export1" label="Print Export" />
- <button id="cmd_export_btn1" command="cmd_export1" label="Export" />
+ <button id="save_button1" command="save_columns1" label="&staff.cat.copy_buckets_overlay.pending_buckets.save_columns1;" />
+ <button id="clip_button1" command="sel_clip1" label="&staff.cat.copy_buckets_overlay.pending_buckets.sel_clip1;" disabled="true" />
+ <button id="cmd_print_export_btn1" command="cmd_print_export1" label="&staff.cat.copy_buckets_overlay.pending_buckets.cmd_print_export1;" />
+ <button id="cmd_export_btn1" command="cmd_export1" label="&staff.cat.copy_buckets_overlay.pending_buckets.cmd_export1;" />
<spacer flex="1"/>
- <button label="Add All" command="copy_buckets_add" accesskey="A" image="/xul/server/skin/media/images/down_arrow.gif"/>
- <button label="Add Selected" command="copy_buckets_sel_add" accesskey="" image="/xul/server/skin/media/images/down_arrow.gif"/>
+ <button label="&staff.cat.copy_buckets_overlay.pending_buckets.copy_buckets_add.label;" command="copy_buckets_add" accesskey="&staff.cat.copy_buckets_overlay.pending_buckets.copy_buckets_add.accesskey;" image="/xul/server/skin/media/images/down_arrow.gif"/>
+ <button label="&staff.cat.copy_buckets_overlay.pending_buckets.copy_buckets_sel_add.label;" command="copy_buckets_sel_add" accesskey="" image="/xul/server/skin/media/images/down_arrow.gif"/>
</hbox>
<hbox id="copy_buckets_top_ui">
<hbox id="copy_buckets_menulist_placeholder" />
- <button command="copy_buckets_new_bucket" label="New Bucket"/>
- <button command="copy_buckets_delete_bucket" label="Delete Bucket"/>
- <button id="refresh" label="Refresh"/>
+ <button command="copy_buckets_new_bucket" label="&staff.cat.copy_buckets_overlay.copy_buckets.copy_buckets_new_bucket.label;"/>
+ <button command="copy_buckets_delete_bucket" label="&staff.cat.copy_buckets_overlay.copy_buckets.copy_buckets_delete_bucket.label;"/>
+ <button id="refresh" label="&staff.cat.copy_buckets_overlay.copy_buckets.refresh.label;"/>
<spacer flex="1"/>
- <button id="save_button2" command="save_columns2" label="Save Columns" />
- <button id="clip_button2" command="sel_clip2" label="Copy to Clipboard" disabled="true" />
- <button command="copy_buckets_delete_item" label="Remove Selected From Bucket" disabled="true" image="/xul/server/skin/media/images/icon_delete.gif"/>
- <button command="copy_buckets_export" label="Add Selected" disabled="true" image="/xul/server/skin/media/images/up_arrow.gif"/>
+ <button id="save_button2" command="save_columns2" label="&staff.cat.copy_buckets_overlay.copy_buckets.save_columns2.label;" />
+ <button id="clip_button2" command="sel_clip2" label="&staff.cat.copy_buckets_overlay.copy_buckets.sel_clip2.label;" disabled="true" />
+ <button command="copy_buckets_delete_item" label="&staff.cat.copy_buckets_overlay.copy_buckets.delete_item.label;" disabled="true" image="/xul/server/skin/media/images/icon_delete.gif"/>
+ <button command="copy_buckets_export" label="&staff.cat.copy_buckets_overlay.copy_buckets.export.label;" disabled="true" image="/xul/server/skin/media/images/up_arrow.gif"/>
</hbox>
<hbox id="info_box" hidden="true" style="font-size: large;">
- <label value="Bucket #"/>
+ <label value="&staff.cat.copy_buckets_overlay.info_box.bucket.label;"/>
<label id="bucket_number" style="color: blue; text-decoration: underline; -moz-user-focus: normal;" onclick="copy_to_clipboard(event)"/>
<label id="bucket_name" style="color: blue;"/>
- <label value="Owner:"/>
+ <label value="&staff.cat.copy_buckets_overlay.info_box.owner.label;"/>
<label id="bucket_owner" style="color: blue;"/>
</hbox>
<hbox id="copy_buckets_bottom_ui">
- <button id="copy_buckets_print" label="Print" command="cmd_copy_buckets_print" accesskey="P"/>
- <button id="cmd_print_export_btn2" command="cmd_print_export2" label="Print Export" />
+ <button id="copy_buckets_print" label="&staff.cat.copy_buckets_overlay.copy_buckets.print.label;" command="cmd_copy_buckets_print" accesskey="&staff.cat.copy_buckets_overlay.copy_buckets.print.accesskey;"/>
+ <button id="cmd_print_export_btn2" command="cmd_print_export2" label="&staff.cat.copy_buckets_overlay.copy_buckets.print_export.label;" />
<button id="copy_buckets_export"
- label="Export"
+ label="&staff.cat.copy_buckets_overlay.copy_buckets.cmd_copy_buckets_export.label;"
command="cmd_copy_buckets_export"
accesskey=""/>
<spacer flex="1"/>
<hbox style="background: grey">
- <vbox><spacer flex="1"/><label value="Batch:" style="font-weight: bold"/><spacer flex="1"/></vbox>
- <button label="Show Status" command="cmd_export_to_copy_status"/>
- <button command="copy_buckets_transfer_to_volume" label="Transfer to Specific Volume"/>
- <button command="copy_buckets_batch_copy_edit" label="Edit Item Attributes" image="/xul/server/skin/media/images/grinder.gif"/>
- <button command="copy_buckets_batch_copy_delete" label="Delete All from Catalog" />
+ <vbox><spacer flex="1"/><label value="&staff.cat.copy_buckets_overlay.copy_buckets.batch.label;" style="font-weight: bold"/><spacer flex="1"/></vbox>
+ <button label="&staff.cat.copy_buckets_overlay.copy_buckets.cmd_export_to_copy_status.label;" command="cmd_export_to_copy_status"/>
+ <button command="copy_buckets_transfer_to_volume" label="&staff.cat.copy_buckets_overlay.copy_buckets.copy_buckets_transfer_to_volume.label;"/>
+ <button command="copy_buckets_batch_copy_edit" label="&staff.cat.copy_buckets_overlay.copy_buckets.copy_buckets_batch_copy_edit.label;" image="/xul/server/skin/media/images/grinder.gif"/>
+ <button command="copy_buckets_batch_copy_delete" label="&staff.cat.copy_buckets_overlay.copy_buckets.copy_buckets_batch_copy_delete.label;" />
</hbox>
</hbox>
Modified: trunk/Open-ILS/xul/staff_client/server/cat/copy_buckets_quick.xul
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/cat/copy_buckets_quick.xul 2008-04-08 16:46:43 UTC (rev 9269)
+++ trunk/Open-ILS/xul/staff_client/server/cat/copy_buckets_quick.xul 2008-04-08 16:52:54 UTC (rev 9270)
@@ -1,6 +1,9 @@
<?xml version="1.0"?>
<!-- Application: Evergreen Staff Client -->
<!-- Screen: Patron Display -->
+<!--
+ vim:noet:sw=4:ts=4:
+ -->
<!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
<!-- STYLESHEETS -->
@@ -12,7 +15,7 @@
<!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
<!-- LOCALIZATION -->
<!DOCTYPE window PUBLIC "" ""[
- <!--#include virtual="/opac/locale/en-US/lang.dtd"-->
+ <!--#include virtual="/opac/locale/${locale}/lang.dtd"-->
]>
<!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
@@ -37,7 +40,9 @@
function my_init() {
try {
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
- if (typeof JSAN == 'undefined') { throw( "The JSAN library object is missing."); }
+ if (typeof JSAN == 'undefined') {
+ throw( document.getElementById("commonStrings").getString('common.jsan.missing') );
+ }
JSAN.errorLevel = "die"; // none, warn, or die
JSAN.addRepository('/xul/server/');
JSAN.use('util.error'); g.error = new util.error();
@@ -57,8 +62,8 @@
$('desc').appendChild( document.createTextNode(
(g.copy_ids.length == 1 ?
- 'Copy this 1 item into which bucket?' :
- 'Copy these ' + g.copy_ids.length + ' items into which bucket?')
+ $('catStrings').getString('staff.cat.copy_buckets_quick.bucket_prompt') :
+ $('catStrings').getFormattedString('staff.cat.copy_buckets_quick.bucket_prompt.plural', [g.copy_ids.length])
) );
var robj = g.network.simple_request('BUCKET_RETRIEVE_VIA_USER',[ ses(), g.data.list.au[0].id() ]);
if (typeof robj.ilsevent != 'undefined') throw(robj);
@@ -85,7 +90,11 @@
g.new_bucket = function() {
try {
- var name = prompt('What would you like to name the bucket?','','Bucket Creation');
+ var name = prompt(
+ $('catStrings').getString('staff.cat.copy_buckets_quick.copy_buckets_new_bucket.prompt'),
+ '',
+ $('catStrings').getString('staff.cat.copy_buckets_quick.copy_buckets_new_bucket.title')
+ );
if (name) {
var bucket = new ccb();
bucket.btype('staff_client');
@@ -98,7 +107,7 @@
g.add_to_bucket(bucket_id);
}
} catch(E) {
- g.error.standard_unexpected_error_alert('Bucket creation failed.',E);
+ g.error.standard_unexpected_error_alert($('catStrings).getString('staff.cat.copy_buckets_quick.copy_buckets_new_bucket.error'), E);
}
}
@@ -123,7 +132,7 @@
if (typeof robj == 'object') throw robj;
} catch(E) {
- g.error.standard_unexpected_error_alert('Addition likely failed for bucket = ' + bucket_id + ' and copy id = ' + g.copy_ids[i],E);
+ g.error.standard_unexpected_error_alert($('catStrings').getFormattedString('staff.cat.copy_buckets_quick.addition.error', [bucket_id, g.copy_ids[i]]), E);
}
}
window.close();
@@ -141,18 +150,18 @@
<vbox flex="1" style="overflow: auto">
<groupbox flex="1">
- <caption label="Item Buckets"/>
+ <caption label="&staff.cat.copy_buckets_quick.item_buckets.label;"/>
<description id="desc"/>
<listbox id="bucket_list" rows="5" flex="1" style="overflow: auto"/>
<hbox>
- <button label="Add to Selected Bucket" accesskey="A" oncommand="g.add_to_bucket()"/>
- <button label="Add to New Bucket" accesskey="N" oncommand="g.new_bucket()"/>
+ <button label="&staff.cat.copy_buckets_quick.item_buckets.add_to_bucket.label;" accesskey="&staff.cat.copy_buckets_quick.item_buckets.add_to_bucket.accesskey;" oncommand="g.add_to_bucket()"/>
+ <button label="&staff.cat.copy_buckets_quick.item_buckets.new_bucket.label;" accesskey="&staff.cat.copy_buckets_quick.item_buckets.new_bucket.accesskey;" oncommand="g.new_bucket()"/>
</hbox>
<hbox>
<!--
<button label="Advanced" accesskey="v" oncommand="g.advanced()"/>
-->
- <button label="Cancel" accesskey="C" oncommand="window.close()"/>
+ <button label="&staff.cat.copy_buckets_quick.item_buckets.cancel.label;" accesskey="&staff.cat.copy_buckets_quick.item_buckets.cancel.accesskey;" oncommand="window.close()"/>
</hbox>
</groupbox>
</vbox>
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-04-08 16:46:43 UTC (rev 9269)
+++ trunk/Open-ILS/xul/staff_client/server/locale/en-US/cat.properties 2008-04-08 16:52:54 UTC (rev 9270)
@@ -69,3 +69,34 @@
staff.cat.copy_browser.list_init.copy_count=Copies
staff.cat.copy_browser.actions.error=Copy Browser Actions
staff.cat.copy_browser.refresh_list.error=Problem refreshing the volume/copy tree.
+staff.cat.copy_buckets.render_pending_copies.complete=Action completed.
+staff.cat.copy_buckets.retrieve_row.error=Error retrieving details for item with copy id = %1$s
+staff.cat.copy_buckets.menulist.render.choose_bucket=Choose a bucket...
+staff.cat.copy_buckets.menulist.render.retrieve_bucket=Retrieve shared bucket...
+staff.cat.copy_buckets.menulist.change_bucket.prompt=Enter bucket number:
+staff.cat.copy_buckets.menulist.change_bucket.undefined=Could not find a bucket with ID = %1$s
+staff.cat.copy_buckets.menulist.change_bucket.error=Error retrieving bucket. Did you use a valid bucket id?
+staff.cat.copy_buckets.copy_buckets_add.error=Addition likely failed.
+staff.cat.copy_buckets.copy_buckets_sel_add.error=Addition likely failed.
+staff.cat.copy_buckets.copy_buckets_delete_item.error=Deletion likely failed.
+staff.cat.copy_buckets.copy_buckets_delete_item.complete=Action completed.
+staff.cat.copy_buckets.copy_buckets_delete_bucket.confirm=Delete the bucket named %1$s?
+staff.cat.copy_buckets.copy_buckets_delete_bucket.complete=Action completed.
+staff.cat.copy_buckets.copy_buckets_delete_bucket.error=Bucket deletion likely failed.
+staff.cat.copy_buckets.copy_buckets_new_bucket.prompt=What would you like to name the bucket?
+staff.cat.copy_buckets.copy_buckets_new_bucket.title=Bucket Creation
+staff.cat.copy_buckets.copy_buckets_new_bucket.container_exists=You already have a bucket with that name.
+staff.cat.copy_buckets.copy_buckets_new_bucket.success=Bucket "%1$s" created.
+staff.cat.copy_buckets.copy_buckets_new_bucket.error=Bucket creation failed.
+staff.cat.copy_buckets.batch.error=Batch Item Deletion
+staff.cat.copy_buckets.copy_buckets_transfer_to_volume.no_volume=Please mark a volume as the destination from within the copy browser and then try this again.
+staff.cat.copy_buckets.copy_buckets_transfer_to_volume.confirm=Transfer the items in bucket "%1$s" from their original volumes to the volume labelled "%2$s" for the library "%3$s" on the following record?
+staff.cat.copy_buckets.copy_buckets_transfer_to_volume.error=Items not likely transferred.
+staff.cat.copy_buckets.cmd_export_to_copy_status.error=Copy Status from Copy Buckets
+staff.cat.copy_buckets.prep_item_for_list.error=List building failed.
+staff.cat.copy_buckets_quick.bucket_prompt=Copy this item into which bucket?
+staff.cat.copy_buckets_quick.bucket_prompt.plural=Copy these %1$s items into which bucket?
+staff.cat.copy_buckets_quick.copy_buckets_new_bucket.prompt=What would you like to name the bucket?
+staff.cat.copy_buckets_quick.copy_buckets_new_bucket.title=Bucket Creation
+staff.cat.copy_buckets_quick.copy_buckets_new_bucket.error=Bucket creation failed.
+staff.cat.copy_buckets_quick.addition.error=Addition likely failed for bucket = %1$s and copy ID = %2$s.
More information about the open-ils-commits
mailing list