[open-ils-commits] r9293 - 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
Thu Apr 10 10:36:34 EDT 2008


Author: dbs
Date: 2008-04-10 09:59:09 -0400 (Thu, 10 Apr 2008)
New Revision: 9293

Modified:
   trunk/Open-ILS/web/opac/locale/en-US/lang.dtd
   trunk/Open-ILS/xul/staff_client/server/cat/marcedit.xul
   trunk/Open-ILS/xul/staff_client/server/locale/en-US/cat.properties
Log:
Initial stab at marcedit i18n


Modified: trunk/Open-ILS/web/opac/locale/en-US/lang.dtd
===================================================================
--- trunk/Open-ILS/web/opac/locale/en-US/lang.dtd	2008-04-10 13:12:49 UTC (rev 9292)
+++ trunk/Open-ILS/web/opac/locale/en-US/lang.dtd	2008-04-10 13:59:09 UTC (rev 9293)
@@ -1883,3 +1883,12 @@
 <!ENTITY staff.cat.copy_summary.save_columns.label "Save Columns">
 <!ENTITY staff.cat.copy_summary.sel_clip.label "Copy to Clipboard">
 <!ENTITY staff.cat.copy_summary.print_export.label "Print Export">
+<!ENTITY staff.cat.marcedit.stackSubfields.label "Stack subfields">
+<!ENTITY staff.cat.marcedit.stackSubfields.accesskey "s">
+<!ENTITY staff.cat.marcedit.validate.label "Validate">
+<!ENTITY staff.cat.marcedit.validate.accesskey "V">
+<!ENTITY staff.cat.marcedit.save-button.accesskey "d">
+<!ENTITY staff.cat.marcedit.help.label "Help">
+<!ENTITY staff.cat.marcedit.help.accesskey "H">
+<!ENTITY staff.cat.marcedit.caption.label "MARC Record">
+<!ENTITY staff.cat.marcedit.toggleFFE.label "Fixed Fields -- Record type: ">

Modified: trunk/Open-ILS/xul/staff_client/server/cat/marcedit.xul
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/cat/marcedit.xul	2008-04-10 13:12:49 UTC (rev 9292)
+++ trunk/Open-ILS/xul/staff_client/server/cat/marcedit.xul	2008-04-10 13:59:09 UTC (rev 9293)
@@ -2,28 +2,48 @@
 <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
 <?xml-stylesheet href="marcedit.css" type="text/css"?>
 
+<!-- LOCALIZATION -->
+<!DOCTYPE window PUBLIC "" ""[
+<!--#include virtual="/opac/locale/${locale}/lang.dtd"-->
+]>
+
 <window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" xmlns:xhtml="http://www.w3.org/1999/xhtml" onload="my_init()">
 
 <script src="marcedit.js" type="application/x-javascript; e4x=1"/>
 <script src="/opac/common/js/CGI.js" type="application/x-javascript; e4x=1"/>
 
+<messagecatalog id="catStrings" src="/xul/server/locale/<!--#echo var='locale'-->/cat.properties" />
+<messagecatalog id="circStrings" src="/xul/server/locale/<!--#echo var='locale'-->/circ.properties" />
+<messagecatalog id="commonStrings" src="/xul/server/locale/<!--#echo var='locale'-->/common.properties" />
+
 <groupbox flex="0">
 	<caption label="Options"/>
 	<hbox flex="1">
-		<checkbox persist="checked" accesskey='s' label="Stack subfields" onclick="stackSubfields(this);" checked="false" id="stackSubfields"/>
-		<button label="Validate"  accesskey="V" oncommand="validateAuthority(this);"/>
-		<button id="save-button" accesskey="d"/>
-		<button label="Help" accesskey="H" oncommand="alert('Add Row: CTRL+Enter\nInsert Row: CTRL+Shift+Enter\nAdd Subfield: CTRL+D\nRemove Row: CTRL+Del\nRemove Subfield: SHIFT+Del\nCreate/Replace 006: CTRL+F6\nCreate/Replace 007: CTRL+F7\nCreate/Replace 008: CTRL+F8\n');"/>
+		<checkbox persist="checked" accesskey='&staff.cat.marcedit.stackSubfields.accesskey;' label="&staff.cat.marcedit.stackSubfields.label;" onclick="stackSubfields(this);" checked="false" id="stackSubfields"/>
+		<button label="&staff.cat.marcedit.validate.label;" accesskey="&staff.cat.marcedit.validate.accesskey;" oncommand="validateAuthority(this);"/>
+		<button id="save-button" accesskey="&staff.cat.marcedit.save-button.accesskey;"/>
+		<button label="&staff.cat.marcedit.help.label;" accesskey="&staff.cat.marcedit.help.accesskey;"
+			oncommand="alert(
+				$('catStrings').getString('staff.cat.marcedit.help.add_row') + '\n' +
+				$('catStrings').getString('staff.cat.marcedit.help.insert_row') + '\n' +
+				$('catStrings').getString('staff.cat.marcedit.help.add_subfield') + '\n' +
+				$('catStrings').getString('staff.cat.marcedit.help.remove_row') + '\n' +
+				$('catStrings').getString('staff.cat.marcedit.help.remove_subfield') + '\n' +
+				$('catStrings').getString('staff.cat.marcedit.help.replace_006') + '\n' +
+				$('catStrings').getString('staff.cat.marcedit.help.replace_007') + '\n' +
+				$('catStrings').getString('staff.cat.marcedit.help.replace_008')
+			);"
+		/>
 	</hbox>
 </groupbox>
 
 <groupbox flex="1">
-	<caption label="MARC Record"/>
+	<caption label="&staff.cat.marcedit.caption.label;"/>
 	<vbox flex="1" style="overflow: auto;">
 		<hbox>
 		<groupbox flex="0">
 			<caption>
-				<label value="Fixed Fields -- Record type: " ondblclick="toggleFFE();"/>
+				<label value="&staff.cat.marcedit.toggleFFE.label;" ondblclick="toggleFFE();"/>
 				<label id="recordTypeLabel" context="recordTypeMenu"/>
 			</caption>
 			<vbox flex="0">

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-10 13:12:49 UTC (rev 9292)
+++ trunk/Open-ILS/xul/staff_client/server/locale/en-US/cat.properties	2008-04-10 13:59:09 UTC (rev 9293)
@@ -169,3 +169,11 @@
 staff.cat.copy_summary.no=No
 staff.cat.copy_summary.unset=<Unset>
 staff.cat.copy_summary.not_cataloged=Not Cataloged
+staff.cat.marcedit.help.add_row=Add Row: CTRL+Enter
+staff.cat.marcedit.help.insert_row=Insert Row: CTRL+Shift+Enter
+staff.cat.marcedit.help.add_subfield=Add Subfield: CTRL+D
+staff.cat.marcedit.help.remove_row=Remove Row: CTRL+Del
+staff.cat.marcedit.help.remove_subfield=Remove Subfield: SHIFT+Del
+staff.cat.marcedit.help.replace_006=Create/Replace 006: CTRL+F6
+staff.cat.marcedit.help.replace_007=Create/Replace 007: CTRL+F7
+staff.cat.marcedit.help.replace_008=Create/Replace 008: CTRL+F8



More information about the open-ils-commits mailing list