Since we only have bits and pieces of Spanish translations for our
authorTerran McCanna <tmccanna@georgialibraries.org>
Mon, 12 Dec 2016 19:05:01 +0000 (14:05 -0500)
committerChris Sharp <csharp@georgialibraries.org>
Fri, 16 Nov 2018 01:03:35 +0000 (20:03 -0500)
customized KPAC right now, removing the parts that would display in
Spanish if Spanish has been selected in the OPAC. In the future when
all parts of the KPAC have been translated and graphic buttons have
been switched to text buttons that can be translated, we will then
need to go back in and re-add the language markup to allow the
translations to occur.

Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
Open-ILS/src/templates/kpac/getit.tt2
Open-ILS/src/templates/kpac/getit_results.tt2
Open-ILS/src/templates/kpac/home.tt2
Open-ILS/src/templates/kpac/parts/breadcrumb.tt2
Open-ILS/src/templates/kpac/parts/copy_table.tt2
Open-ILS/src/templates/kpac/parts/header.tt2
Open-ILS/src/templates/kpac/parts/searchbox.tt2
Open-ILS/src/templates/kpac/parts/subpage.tt2
Open-ILS/src/templates/kpac/record.tt2
Open-ILS/src/templates/kpac/results.tt2

index 28f491d..0da6004 100644 (file)
                         <img src="[% ctx.media_prefix %]/images/kpac/library_card.png[% ctx.cache_key %]" alt="[% l('library card') %]" /></div></td>
                     [% END %]
                     [% WRAPPER 'kpac/parts/help_popups.tt2' popup_id='password_help' %]
-                        <p>[% l('Enter your password') %]</p>
+                        <p>Enter your password</p>
                     [% END %]
 
                     <div class="top_side">
-                        <h2>[% l('get it!') %]</h2>
-                        <p>[% l('If you would like to place a hold on this item, please enter the ' _
-                            'following information and click Submit below:') %]</p>
+                        <h2>get it!</h2>
+                        <p>If you would like to place a hold on this item, please enter the 
+                        following information and click Submit below:</p>
                     </div>
 
                     <form method='POST'><!-- login + place hold form -->
@@ -38,7 +38,7 @@
 
                                 [% IF !ctx.user %]
                                     [% seed = l(' Enter Numbers... ') %]
-                                    <p>[% l('Library Card Number without spaces:') %]</p>
+                                    <p>Library Card Number:</p>
                                     <div class="input_box">
                                         <input name="username" type="text" class="text_box" style="color:#aaa;" value="[% seed %]" 
                                             onfocus="if(this.value=='[% seed %]'){this.value='';this.style.color='#424242';}" 
@@ -51,7 +51,7 @@
                                     <div class="clear">&nbsp;</div>
                                     <div class="hr">&nbsp;</div>
 
-                                    <p>[% l('Password') %]</p>
+                                    <p>Password</p>
                                     <div class="input_box">
                                         <input name="password" type="password" class="text_box" style="color:#aaa;" value="[% seed %]" 
                                             onfocus="if(this.value=='[% seed %]'){this.value='';this.style.color='#424242';}" 
@@ -69,7 +69,7 @@
 
                                 [% ELSE %]
 
-                                <p>[% l('Choose a Pickup Library:') %]</p>
+                                <p>Choose a Pickup Library:</p>
                                 <div class="pickup_lib">
                                     [%  def_lib = ctx.default_pickup_lib || ctx.physical_loc;
                                         PROCESS "opac/parts/org_selector.tt2";
             <td valign="top">
                 <div class="right_brain">
                     <div class="top_side">
-                        <h2>[% l('save it!') %]</h2>
-                        <p>[% l('If you would like to save this item to a list to be requested later, click Submit below.') %]</p>
+                        <h2>save it!</h2>
+                        <p>If you would like to save this item to a list to be requested later, click Submit below.</p>
                         [% IF ctx.user AND ctx.bookbags AND ctx.bookbags.size > 0 %]
                         <br/>
-                        <p>
-                            [% l('You may also save this item to a list you have already created by selecting one of your lists below.') %]
-                        </p>
+                        <p>You may also save this item to a list you have already created by selecting one of your lists below.</p>
                         [% END %]
                     </div>
                     <form method='POST'>
index 391ed2c..184a8fe 100644 (file)
 
 <div class="checkout_res_body">
     [% IF ctx.added_to_anon %]
-        <h2 class="sub_header2">[% l('You Saved It!') %]</h2>
+        <h2 class="sub_header2">You Saved It!</h2>
         <p>
         [% l('You successfully saved [_1].', title_html) %]<br/>
         [% l('To manage your lists, go to [_1]My Lists[_2]', '<a href="' _ mkurl(ctx.opac_root _ '/myopac/lists', {}, 1) _ '">', '</a>') %]
-        <p>
+        </p>
     [% ELSIF ctx.added_to_list %]
         [% list_html = ctx.added_to_list.name | html %]
-        <h2 class="sub_header2">[% l('You Saved It!') %]</h2>
+        <h2 class="sub_header2">You Saved It!</h2>
         <p>
         [% l('You successfully saved [_1] to [_2].', title_html, list_html) %]<br/>
         [% l('To manage your lists, go to [_1]My Lists[_2]', '<a href="' _ mkurl(ctx.opac_root _ '/myopac/lists', {}, 1) _ '">', '</a>') %]
-        <p>
+        </p>
     [% ELSIF CGI.param('hold') %]
         [% lib_html = ctx.get_aou(ctx.hold.pickup_lib).name | html %]
-        <h2 class="sub_header2">[% l('Hold Successful!') %]</h2>
-        <p>
+        <h2 class="sub_header2">Hold Successful!</h2>
+        </p>
         [% l('Your request for [_1] was successful.', '<a href="' _ mkurl(ctx.kpac_root _ '/record/' _ ctx.bre_id, {}, kill_params) _ '">' _ title_html _ '</a>') %]<br/>
-        [% l('You will be notified when your item is ready for pickup.') %]
+        You will be notified when your item is ready for pickup.
         <p>
     [% ELSE %]
         <p>
         [% l('Unable to request [_1].', '<a href="' _ mkurl(ctx.kpac_root _ '/record/' _ ctx.bre_id, {}, kill_params) _ '">' _ title_html _ '</a>') %]<br/>
-        [% l('Please see a librarian.') %]
+        Please see a librarian.')
+        </p>
     [% END %]
 </div>
 
index 6af8def..34b50b5 100644 (file)
@@ -7,22 +7,22 @@
 %]
 
             <div class="search_wrapper">
-                <h1>[% l('Search the Libraries') %]</h1>
+                <h1>Search the Libraries</h1>
                 <form action="[% ctx.kpac_root _ '/results' %]">
                     [% qtype = CGI.param('qtype') %]
                     <table cellpadding="0" cellspacing="0" border="0" align="center" class="search_box_wrapper" style="margin-top:0px;">
                         <tr>
                             <td class="st_radio_btn"><input type="radio" name="qtype" value="keyword" id="st_word" class="st_word" 
                                 [% IF !qtype OR qtype == 'keyword' %]checked="checked"[% END %]/></td>
-                            <td class="st_label"><label for="st_word">[% l('Word') %]</label></td>
+                            <td class="st_label"><label for="st_word">Word</label></td>
 
                             <td class="st_radio_btn"><input type="radio" name="qtype" value="title" id="st_title" class="st_title" 
                                 [% IF qtype == 'title' %]checked="checked"[% END %]/></td>
-                            <td class="st_label"><label for="st_title">[% l('Title') %]</label></td>
+                            <td class="st_label"><label for="st_title">Title</label></td>
 
                             <td class="st_radio_btn"><input type="radio" name="qtype" value="author" id="st_author" class="st_author"
                                 [% IF qtype == 'author' %]checked="checked"[% END %]/></td>
-                            <td class="st_label st_author_box"><label for="st_author">[% l('Author') %]</label></td>
+                            <td class="st_label st_author_box"><label for="st_author">Author</label></td>
 
                             <td><input type="text" class="search_box" name="query" 
                                 value=""/></td>
@@ -31,7 +31,7 @@
                                                <tr>
                                                    <td colspan="6" align="right" class="st_label st_author_box"><label>Search Location:</label></td>
                                                        <td align="left">[% INCLUDE build_org_selector show_loc_groups=1 %]</td>                                                
-                            <td><input type="image" src="[% ctx.media_prefix %]/images/kpac/search_btn.png" alt="[% l('search') %]" style="margin-top:4px;" /></td>
+                            <td><input type="image" src="[% ctx.media_prefix %]/images/kpac/search_btn.png" alt="search" style="margin-top:4px;" /></td>
                                                </tr>
                     </table>
                 </form>
index 9ba6ff7..b597367 100644 (file)
@@ -38,7 +38,7 @@
 
             <!-- Get it -->
             <div class="bread_green_last">&nbsp;</div>
-            <span class="bread_last">[% l('Get it') %]</span>
+            <span class="bread_last">Get it</span>
             <div class="clear">&nbsp;</div>
 
         [% END %]
index d8c83d3..06b1573 100644 (file)
@@ -15,10 +15,10 @@ END;
 <table cellpadding="0" cellspacing="0" border="0" class="item_location_table">
     <tbody>
         <tr class="header">
-            <td class="location">[% l('Library System: Library Name') %]</td>
-            <td class="shelving_location">[% l('Shelving Location') %]</td>
-            <td class="callnumber">[% l('Call Number') %]</td>
-            <td class="status">[% l('Status') %]</td>
+            <td class="location">Library System: Library Name</td>
+            <td class="shelving_location">Shelving Location</td>
+            <td class="callnumber">Call Number</td>
+            <td class="status">Status</td>
         </tr>
         [%- 
         FOR copy_info IN ctx.copies;
@@ -58,24 +58,24 @@ END;
             [%- IF ctx.copy_offset > 0;
                 new_offset = ctx.copy_offset - ctx.copy_limit;
                 IF new_offset < 0; new_offset = 0; END %]
-                    <a href="[% mkurl('', {copy_offset => new_offset, copy_limit => ctx.copy_limit}) %]">&laquo; [%
-                        l('Previous [_1]', ctx.copy_offset - new_offset) %]</a>
+                    <a href="[% mkurl('', {copy_offset => new_offset, copy_limit => ctx.copy_limit}) %]">&laquo; Previous [%
+                        l('[_1]', ctx.copy_offset - new_offset) %]</a>
             [%- END %]
             </td>
 
             <td>
             [%- IF ctx.copies.size >= ctx.copy_limit %]
-                    <a href="[% mkurl('', {copy_offset => ctx.copy_offset + ctx.copy_limit, copy_limit => ctx.copy_limit}) %]">[%
-                        l('Next [_1]', ctx.copy_limit) %] &raquo;</a>
+                    <a href="[% mkurl('', {copy_offset => ctx.copy_offset + ctx.copy_limit, copy_limit => ctx.copy_limit}) %]">Next [%
+                        l('[_1]', ctx.copy_limit) %] &raquo;</a>
             [%- END %]
             </td>
 
             [%- more_copies_limit = 50 %] [%# TODO: config %]
             <td>
             [%- IF  ctx.copy_limit != more_copies_limit AND ctx.copies.size >= ctx.copy_limit %]
-                <a href="[% mkurl('', {copy_limit => more_copies_limit, copy_offset => 0}) %]">[% l('Show more copies') %]</a>
+                <a href="[% mkurl('', {copy_limit => more_copies_limit, copy_offset => 0}) %]">Show more copies</a>
             [%- ELSIF ctx.copy_limit == more_copies_limit %]
-                <a href="[% mkurl('', {copy_limit => 0, copy_offset => 0}) %]">[% l('Show fewer copies') %]</a>
+                <a href="[% mkurl('', {copy_limit => 0, copy_offset => 0}) %]">Show fewer copies</a>
             [%- END %]
             </td>
         </tr>
index fdcb8cf..c5e9ae8 100644 (file)
@@ -9,8 +9,8 @@
     </div>
     <div class="header_utils">
         <!--
-        <a href="javascript:;" class="text_size_btn"><span>[% l('Text size') %]</span> &nbsp; <img 
-            alt="[% l('text size') %]" src="[% ctx.media_prefix %]/images/kpac/text_size_btn.png[% ctx.cache_key %]" /></a>
+        <a href="javascript:;" class="text_size_btn"><span>Text size</span> &nbsp; <img 
+            alt="[% l('text size') %]" src="[% ctx.media_prefix %]/images/kpac/text_size_btn.png" /></a>
         -->
         <!-- 
        <a href="javascript:window.print()" class="print_btn"><span>[% l('Print') %]</span> &nbsp; <img 
@@ -30,7 +30,7 @@
                     l('Logout ([_1] [_2])', ctx.user.first_given_name, ctx.user.family_name) %]</a>
         [% ELSE %]
                    [% redir = CGI.url('-base' => 1) _ ctx.kpac_root _ '/home' %]
-            <a href="[% mkurl(ctx.opac_root _ '/login?redirect_to=' _ redir).replace('^http:', 'https:') %]">[% l('Login') %]</a>
+            <a href="[% mkurl(ctx.opac_root _ '/login?redirect_to=' _ redir).replace('^http:', 'https:') %]">Login</a>
         [% END %]
     </div>
     
index a21dcba..29dae46 100644 (file)
@@ -1,4 +1,4 @@
-<div class="sub_sidebar_header">[% l('New Search') %]</div>
+<div class="sub_sidebar_header">New Search</div>
 <form action="[% ctx.kpac_root _ '/results' %]">
     <div class="sub_sidebar_search_wrapper">
         <input type="text" name='query' 
index 4131822..e68dd67 100644 (file)
                         <tr>
                             <td class="st_radio_btn"><input type="radio" name="qtype" value="keyword" id="st_word" class="st_word" 
                                 [% IF !qtype OR qtype == 'keyword' %]checked="checked"[% END %]/></td>
-                            <td class="st_label"><label for="st_word">[% l('Word') %]</label></td>
+                            <td class="st_label"><label for="st_word">Word</label></td>
 
                             <td class="st_radio_btn"><input type="radio" name="qtype" value="title" id="st_title" class="st_title" 
                                 [% IF qtype == 'title' %]checked="checked"[% END %]/></td>
-                            <td class="st_label"><label for="st_title">[% l('Title') %]</label></td>
+                            <td class="st_label"><label for="st_title">Title</label></td>
 
                             <td class="st_radio_btn"><input type="radio" name="qtype" value="author" id="st_author" class="st_author"
                                 [% IF qtype == 'author' %]checked="checked"[% END %]/></td>
-                            <td class="st_label st_author_box"><label for="st_author">[% l('Author') %]</label></td>
+                            <td class="st_label st_author_box"><label for="st_author">Author</label></td>
 
                             <td><input type="text" class="search_box" name="query" 
                                 value="[% CGI.param('nosprop') ? '' : CGI.param('query') | html  %]"/></td>
index 1499e86..bf265eb 100644 (file)
 
 <div id="chili_review_[% attrs.isbn_clean | html %]" style="display: none;" align="center" width="100%"></div>
 
-<div class="sub_header">[% l('You can find this item at these locations:') %]</div>
+<div class="sub_header">You can find this item at these locations:</div>
     <div class="item_detail_location_wrapper">
         [% INCLUDE 'kpac/parts/copy_table.tt2' %]
     </div>
 
     [% IF attrs.summary %]
-        <div class="sub_header">[% l('About this item:') %]</div>
+        <div class="sub_header">About this item:</div>
         <div class="item_detail_desc">
             [% FOR sum IN attrs.summary %]
                 [% IF !loop.first; '<br/>'; END %]
index 2ecb7cd..a4ec528 100644 (file)
@@ -8,7 +8,7 @@
     <h2 class="sub_header2">[% ctx.bookbag.name | html %]</h2>
     <div style="font-weight:normal;font-size:1.5em;text-align:left;padding:10px;">[% ctx.bookbag.description | html %]</div>
 [% ELSE %]
-       <h2 class="sub_header2">[% l('Search Results') %]</h2>
+       <h2 class="sub_header2">Search Results</h2>
 [% END %]
 
 
@@ -16,7 +16,7 @@
 
     <br/>
     <div style='width:100%; text-align:center'>
-        <h3>[% l('No records were found that matched your search.') %]</h3>
+        <h3>No records were found that matched your search.</h3>
     </div>
 
 [% ELSE %]