Internationalize more of the TT OPAC (records and results)
authorDan Scott <gitorious@coffeecode.net>
Sun, 1 May 2011 17:05:06 +0000 (13:05 -0400)
committerberick <berick@esilibrary.com>
Sun, 1 May 2011 17:16:26 +0000 (13:16 -0400)
There are a number of hardcoded strings remaining in the TT OPAC.
This is just some of the lowhanging fruit; more work needs to be
done on the more complex cases involving HTML and placeholders.

Signed-off-by: Dan Scott <dan@coffeecode.net>
Signed-off-by: berick <berick@esilibrary.com>

Open-ILS/web/templates/default/opac/parts/record/extras.tt2
Open-ILS/web/templates/default/opac/parts/record/subjects.tt2
Open-ILS/web/templates/default/opac/parts/record/summary.tt2
Open-ILS/web/templates/default/opac/parts/result/lowhits.tt2
Open-ILS/web/templates/default/opac/parts/result/table.tt2

index a87248b..8bafc7d 100644 (file)
@@ -2,16 +2,16 @@
     <div id='rdetail_extras_div' style='width: 100%;'> 
         <!-- SAMPLE AWARDS LAYOUT / MOVE TO INCLUDE'D TEMPLATE
         <div id='rdetail_awards_div' class='rdetail_extras_div hide_me'> 
-            <strong>Awards:</strong>
+            <strong>[% l('Awards:') %]</strong>
             <div id='rdetail_awards_cont' style="margin-bottom:20px;"></div>
-                <strong>Patron Reviews:</strong>
+                <strong>[% l('Patron Reviews:') %]</strong>
                 <div id='rdetail_chilifresh_reviews' class='hide_me' style="margin-bottom:20px;">
                     <div id='chilifreshReviewLink' name='chilifreshReviewLink' class='chili_review'></div>
                     <div id='chilifreshReviewResult' name='chilifreshReviewResult' class='hidden'></div>
                 </div>
-                <strong>Reviews:</strong>
+                <strong>[% l('Reviews:') %]</strong>
                 <div id='rdetail_review_container' style="margin-bottom:20px;"></div>
-                <strong>Suggested Reads:</strong>
+                <strong>[% l('Suggested Reads:') %]</strong>
                 <div id='rdetail_novelist_div' class='rdetail_extras_div'>
                 <div id="NoveListSelect" class="NoveListSelect">
                     <div id="NoveListAnchor" class="NoveListSelect"></div>
index 98c8b1a..d608019 100644 (file)
@@ -61,7 +61,7 @@
             [% END; %]
         [% END; %]
     [% IF any_subjects == 0 %]
-        <tr><td><i>No Subjects</i></td></tr>
+        <tr><td><i>[% l('No Subjects') %]</i></td></tr>
     [% END; %]
     </table>
 </div>
index 21a083a..26e1056 100644 (file)
 <div id="rdetail_locs_expand" class="hide_me">
     <a href="#"><img
         src="[% ctx.media_prefix %]/images/plus_sign.png" /></a>
-    <a style="position:relative;top:-3px;" href="#">Show more locations</a>
+    <a style="position:relative;top:-3px;" href="#">[% l('Show more locations') %]</a>
 </div>
 
 <div id="rdetail_locs_collapse" class="hide_me">
     <a href="#"><img
         src="[% ctx.media_prefix %]/images/plus_sign.png" /></a>
-    <a style="position:relative;top:-3px;" href="#">Collapse locations</a>
+    <a style="position:relative;top:-3px;" href="#">[% l('Collapse locations') %]</a>
 </div>
 
 <div id="rdetail_extras_expand" class="hide_me">
     <a href="#"><img
         src="[% ctx.media_prefix %]/images/plus_sign.png" /></a>
-    <a style="position:relative;top:-3px;" href="#">Expand all tabs</a>
+    <a style="position:relative;top:-3px;" href="#">[% l('Expand all tabs') %]</a>
 </div>
 
 <div id="rdetail_extras_collapse" class="hide_me">
     <a href="#"><img src="[% ctx.media_prefix %]/images/plus_sign.png" /></a>
-    <a style="position:relative;top:-3px;" href="#">Collapse all tabs</a>
+    <a style="position:relative;top:-3px;" href="#">[% l('Collapse all tabs') %]</a>
 </div>
 
 <div class="hide_me">
index 9393c49..37e3af6 100644 (file)
@@ -12,7 +12,7 @@
             <table cellpadding="0" cellspacing="0" border="0">
                 <tr>
                     <td valign="top" style="padding-right:10px;">
-                        <span id="zero_hits_label2" class="hide_me">Other Possibilities:</span>
+                        <span id="zero_hits_label2" class="hide_me">[% l('Other Possibilities:') %]</span>
                     </td>
                     <td id="zero_hits_suggestions"></td>
                 </tr>
index 6477ef6..5445489 100644 (file)
@@ -29,7 +29,7 @@
                         ELSE; class = class _ ' invisible'; END;
                     %]
                     <a class='[% class %]' href='[% href %]' 
-                        title='[% l("Previous page") %]'><span class="nav_arrow_fix">&#9668;</span> Previous </a>
+                        title='[% l("Previous page") %]'><span class="nav_arrow_fix">&#9668;</span> [% l('Previous') %] </a>
                     <span class='hide_me'
                         style='padding-left: 11px; padding-right:11px;'>
                         <span></span>
@@ -41,7 +41,7 @@
                         ELSE; class = class _ ' invisible'; END;
                     %]
                     <a class='[% class %]' href='[% href %]' 
-                        title='[% l("Next page") %]'> Next <span class="nav_arrow_fix">&#9658;</span></a>
+                        title='[% l("Next page") %]'> [% l('Next') %] <span class="nav_arrow_fix">&#9658;</span></a>
                 </span>
             </td>
         </tr>
@@ -78,7 +78,7 @@
                                             <td class='result_table_pic_header'
                                                 width="78" nowrap="nowrap" valign="top">
                                                 [% ident = attrs.isbn_clean || attrs.upc; IF ident; %]
-                                                <a href="[% ctx.opac_root %]/record/[% rec.id _ propagator %]"><img alt="Image of item"
+                                                <a href="[% ctx.opac_root %]/record/[% rec.id _ propagator %]"><img alt="[% l('Image of item') %]"
                                                         name='item_jacket' class='result_table_pic' width="55"
                                                         src='[% ctx.media_prefix %]/opac/extras/ac/jacket/small/[% ident %]' /></a><br />
                                                 [% END %]
                                                         class="results_info_table">
                                                         <tr name='bib_cn_list' class='result_table_title_cell'>
                                                             <td colspan='2'>
-                                                                <strong>Call number:</strong>[% args.marc_cn %][%# XXX KCLS %]
+                                                                <strong>[% l('Call number:') %]</strong>[% args.marc_cn %][%# XXX KCLS %]
                                                             </td>
                                                         </tr>
                                                         <tr name="results_pub_tr" class="[% attrs.publisher ? '' : 'hide_me' %]">
                                                             <td valign="top">
-                                                                <strong>Publisher:</strong>
+                                                                <strong>[% l('Publisher:') %]</strong>
                                                             </td>
                                                             <td>[% attrs.publisher; %]</td>
                                                         </tr>
                                                         <tr name="results_isbn_tr" class="[% attrs.isbn ? '' : 'hide_me' %]">
                                                             <td valign="top">
-                                                                <strong>ISBN:</strong>
+                                                                <strong>[% l('ISBN:') %]</strong>
                                                             </td>
                                                             <td>[% attrs.isbn %]</td>
                                                         </tr>
                                                         <tr name="results_edition_tr" class="[% attrs.edition ? '' : 'hide_me' %]">
                                                             <td valign="top">
-                                                                <strong>Edition:</strong>
+                                                                <strong>[% l('Edition:') %]</strong>
                                                             </td>
                                                             <td>[% attrs.edition %]</td>
                                                         </tr>
                                                         <tr name="results_phys_desc_tr" class="[% attrs.phys_desc ? '' : 'hide_me' %]">
                                                             <td nowrap="nowrap" valign="top">
-                                                                <strong>Phys. Desc.:</strong>
+                                                                <strong>[% l('Phys. Desc.:') %]</strong>
                                                             </td>
                                                             <td>
                                                                 [% args.phys_desc %]
                                                         </div>
                                                         <div class="results_aux_utils opac-auto-011">
                                                             [%  operation = ctx.mylist.grep(rec.id).size ? "delete" : "add";
-                                                                label = (operation == "add") ? "Add to" : "Remove from"; %]
+                                                                label = (operation == "add") ? l("Add to") : l("Remove from"); %]
                                                             <form action="[% ctx.opac_root %]/mylist/[% operation %]" method="POST">
                                                                 <input type="hidden" name="record" value="[% rec.id %]" />
                                                             <div style="position:absolute;">
                                                         <!-- <div style="padding-top:7px;" class="results_aux_utils">
                                                             <a title="Reviews and More" target="_blank" class="no-dec"
                                                                 name="reviews_and_more" href="javascript:;"><img
-                                                                alt="reviews &amp; more"
+                                                                alt="[% l('Reviews and more') %]"
                                                                 src="[% ctx.media_prefix %]/images/starz.png" /> <span
-                                                                    style="position:relative;top:-5px;">Reviews &amp; More</span></a>
+                                                                    style="position:relative;top:-5px;">[% l('Reviews and More') %]</span></a>
                                                         </div> -->
                                                     </div>
                                                 </div>