[OPEN-ILS-DEV] PATCH: Continued entity-izing OPAC
Dan Scott
denials at gmail.com
Thu Jul 19 12:27:19 EDT 2007
Jason pointed out there were still some hard-coded strings in the
OPAC; this patch replaces those strings with entities defined in the
DTDs.
<po_advocacy>
Note that the French (Canadian) DTD will now contain English strings
until I can have them translated; this would be one of the advantages
of using the PO format as an intermediary format (where missing
strings in a given language would automatically be replaced by their
English equivalent in a generated DTD until such time that the PO file
could be updated with proper translations).
</po_advocacy>
--
Dan Scott
Laurentian University
-------------- next part --------------
Index: Open-ILS/web/opac/locale/en-US/opac.dtd
===================================================================
--- Open-ILS/web/opac/locale/en-US/opac.dtd (revision 7561)
+++ Open-ILS/web/opac/locale/en-US/opac.dtd (working copy)
@@ -4,8 +4,10 @@
<!ENTITY lang.version "remote v1">
<!ENTITY lang.description "English">
<!ENTITY lang.author "PINES">
+<!ENTITY common.all "All">
<!ENTITY common.currency "$">
<!ENTITY common.name "Name">
+<!ENTITY common.none "None">
<!ENTITY common.title "Title">
<!ENTITY common.author "Author">
<!ENTITY common.authors "Authors">
@@ -24,6 +26,7 @@
<!ENTITY common.pubdate "Publication Date">
<!ENTITY common.publisher "Publisher">
<!ENTITY common.results "Results">
+<!ENTITY common.select "Select">
<!ENTITY common.status "Status">
<!ENTITY common.at "at">
<!ENTITY common.of "of">
@@ -150,6 +153,24 @@
<!ENTITY myopac.describe.bookbags "Bookbags are...">
<!-- =================================================================
+ MyOPAC Checked Page
+ ================================================================= -->
+<!ENTITY myopac.checked.out "Total items out:">
+<!ENTITY myopac.checked.overdue "Total items overdue:">
+<!ENTITY myopac.checked.renew "Renew Selected Items">
+<!ENTITY myopac.checked.renewing "Renewing...">
+<!ENTITY myopac.checked.renew.remaining "Renewals Remaining">
+<!ENTITY myopac.checked.noitems "You have no items checked out at this time">
+<!ENTITY myopac.checked.other.circ "Other Circulations">
+<!ENTITY myopac.checked.circ.lib "Circulating Library">
+<!ENTITY myopac.checked.item.type "Circulation Type">
+<!ENTITY myopac.checked.circ.time "Please return by ...">
+<!ENTITY myopac.checked.renew.success "item(s) successfully renewed">
+<!ENTITY myopac.checked.renew.confirm "Are you sure you wish to renew the selected item(s)?">
+<!ENTITY myopac.checked.renew.fail "The system is unable to renew the selected item at this time. This usually means the item is needed to fulfill a hold. Please see a librarian for further help.">
+<!ENTITY myopac.checked.renew.fail2 "PINES policy prevents the renewal of this item at this time. Please see a librarian for further details.">
+
+<!-- =================================================================
MyOPAC Fines Page
================================================================= -->
<!ENTITY myopac.fines.title "Summary">
Index: Open-ILS/web/opac/locale/fr-CA/opac.dtd
===================================================================
--- Open-ILS/web/opac/locale/fr-CA/opac.dtd (revision 7561)
+++ Open-ILS/web/opac/locale/fr-CA/opac.dtd (working copy)
@@ -127,6 +127,26 @@
<!ENTITY myopac.describe.bookbags "Les sacs de livres sont...">
<!-- =================================================================
+ MyOPAC Checked Page
+ ================================================================= -->
+<!-- START: TO BE TRANSLATED -->
+<!ENTITY myopac.checked.out "Total items out:">
+<!ENTITY myopac.checked.overdue "Total items overdue:">
+<!ENTITY myopac.checked.renew "Renew Selected Items">
+<!ENTITY myopac.checked.renewing "Renewing...">
+<!ENTITY myopac.checked.renew.remaining "Renewals Remaining">
+<!ENTITY myopac.checked.noitems "You have no items checked out at this time">
+<!ENTITY myopac.checked.other.circ "Other Circulations">
+<!ENTITY myopac.checked.circ.lib "Circulating Library">
+<!ENTITY myopac.checked.item.type "Circulation Type">
+<!ENTITY myopac.checked.circ.time "Please return by ...">
+<!ENTITY myopac.checked.renew.success "item(s) successfully renewed">
+<!ENTITY myopac.checked.renew.confirm "Are you sure you wish to renew the selected item(s)?">
+<!ENTITY myopac.checked.renew.fail "The system is unable to renew the selected item at this time. This usually means the item is needed to fulfill a hold. Please see a librarian for further help.">
+<!ENTITY myopac.checked.renew.fail2 "PINES policy prevents the renewal of this item at this time. Please see a librarian for further details.">
+<!-- END: TO BE TRANSLATED -->
+
+<!-- =================================================================
MyOPAC Fines Page
================================================================= -->
<!ENTITY myopac.fines.title "Sommaire">
Index: Open-ILS/web/opac/skin/default/xml/myopac/myopac_checked.xml
===================================================================
--- Open-ILS/web/opac/skin/default/xml/myopac/myopac_checked.xml (revision 7561)
+++ Open-ILS/web/opac/skin/default/xml/myopac/myopac_checked.xml (working copy)
@@ -11,28 +11,28 @@
<!--
Total items out: <b id='mo_items_out_count' style='padding-right: 20px;'>0</b>
-->
- Total items out: <b id='mo_items_out_count' style='padding: 5px;'>0</b> /
- Total items overdue: <b id='mo_items_overdue_count' style='padding: 5px;'>0</b>
+ &myopac.checked.out; <b id='mo_items_out_count' style='padding: 5px;'>0</b> /
+ &myopac.checked.overdue; <b id='mo_items_overdue_count' style='padding: 5px;'>0</b>
</td>
<td align='right'>
- <button onclick='myOPACRenewSelected();' id='mo_renew_button' disabled='disabled'>Renew Selected Items</button>
+ <button onclick='myOPACRenewSelected();' id='mo_renew_button' disabled='disabled'>&myopac.checked.renew;</button>
</td>
</tr>
- <tr id='my_renewing' class='hide_me'><td align='center'><b>Renewing...</b></td></tr>
+ <tr id='my_renewing' class='hide_me'><td align='center'><b>&myopac.checked.renewing;</b></td></tr>
</tbody></table>
<table width='100%' class='light_border data_grid'>
<thead class='color_3'>
<tr>
- <td width='45%'>Title</td>
- <td width='20%'>Author</td>
- <td width='10%' nowrap='nowrap' align='center'>Due Date</td>
- <td width='10%' nowrap='nowrap' align='center'>Renewals Remaining</td>
- <td width='15%'>Select
+ <td width='45%'>&common.title;</td>
+ <td width='20%'>&common.author;</td>
+ <td width='10%' nowrap='nowrap' align='center'>&myopac.fines.due;</td>
+ <td width='10%' nowrap='nowrap' align='center'>&myopac.checked.renew.remaining;</td>
+ <td width='15%'>&common.select;
(<a id='myopac_select_all_checked' onclick='myopacSelectAllChecked();'
- class='classic_link' href='javascript:void(0);'>All</a>/<a id='myopac_select_none_checked'
- onclick='myopacSelectNoneChecked();' class='classic_link' href='javascript:void(0);'>None</a>)
+ class='classic_link' href='javascript:void(0);'>&common.all;</a>/<a id='myopac_select_none_checked'
+ onclick='myopacSelectNoneChecked();' class='classic_link' href='javascript:void(0);'>&common.none;</a>)
</td>
</tr>
</thead>
@@ -41,11 +41,11 @@
<tbody id='myopac_checked_tbody'>
<tr id='myopac_checked_none' class='hide_me'>
- <td colspan='10' align='center'><b>You have no items checked out at this time</b></td>
+ <td colspan='10' align='center'><b>&myopac.checked.noitems;</b></td>
</tr>
- <tr id='myopac_checked_loading'><td>Loading...</td></tr>
+ <tr id='myopac_checked_loading'><td>&common.loading;</td></tr>
<tr id='myopac_checked_row' class='light_border hide_me'>
@@ -75,13 +75,13 @@
<div id='non_cat_circs_div' class='hide_me'>
<br/>
- <div style='text-align: center'><b>Other Circulations</b></div>
+ <div style='text-align: center'><b>&myopac.common.other.circ;</b></div>
<table class='data_grid' width='100%'>
<thead>
<tr>
- <td>Circulating Library</td>
- <td>Circulation Type</td>
- <td>Please return by ...</td>
+ <td>&myopac.checked.circ.lib;</td>
+ <td>&myopac.checked.item.type;</td>
+ <td>&myopac.checked.circ.time;</td>
</tr>
</thead>
<tbody id='non_cat_circs_tbody'>
@@ -94,17 +94,13 @@
</table>
</div>
- <div id='myopac_renew_success' class='hide_me'>item(s) successfully renewed</div>
+ <div id='myopac_renew_success' class='hide_me'>&myopac.checked.renew.success;</div>
- <span class='hide_me' id='myopac_renew_confirm'>Are you sure you wish to renew the selected item(s)?</span>
+ <span class='hide_me' id='myopac_renew_confirm'>&myopac.checked.renew.confirm;</span>
- <span class='hide_me' id='myopac_renew_fail'>
- The system is unable to renew the selected item at this time. This usually means the item is needed to fulfill a hold. Please see a librarian for further help.
- </span>
+ <span class='hide_me' id='myopac_renew_fail'>&myopac.checked.renew.fail;</span>
- <span class='hide_me' id='myopac_renew_fail2'>
- PINES policy prevents the renewal of this item at this time. Please see a librarian for further details.
- </span>
+ <span class='hide_me' id='myopac_renew_fail2'>&myopac.checked.renew.fail2;</span>
</div>
More information about the Open-ils-dev
mailing list