LP#1629078: Add missing strings in web client for i18n
authorBen Shum <ben@evergreener.net>
Thu, 14 Sep 2017 14:22:28 +0000 (10:22 -0400)
committerGalen Charlton <gmc@equinoxinitiative.org>
Wed, 20 Sep 2017 04:02:37 +0000 (00:02 -0400)
Linda Jansova found a series of strings that were missing the localization
tagging indicated by the "l" function we use in tt2 code.

This patch adds them in preparation for the next PO template sync to grab
them to make them available for translation via Launchpad, etc.

Signed-off-by: Ben Shum <ben@evergreener.net>
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>

Open-ILS/src/templates/staff/admin/workstation/t_splash.tt2
Open-ILS/src/templates/staff/cat/bucket/copy/t_apply_tags.tt2
Open-ILS/src/templates/staff/cat/volcopy/t_copy_tags.tt2
Open-ILS/src/templates/staff/cat/volcopy/t_defaults.tt2
Open-ILS/src/templates/staff/circ/patron/t_bills_list.tt2
Open-ILS/src/templates/staff/circ/patron/t_search_results.tt2
Open-ILS/src/templates/staff/serials/t_prediction_wizard.tt2
Open-ILS/src/templates/staff/share/t_patron_search_results.tt2

index 578ba73..94c1140 100644 (file)
@@ -78,7 +78,7 @@
 
       <div class="row">
         <div class="col-md-8">
-            <label for="search_lib_selector">[% ('Default Search Library') %]</label>
+            <label for="search_lib_selector">[% l('Default Search Library') %]</label>
             <p>[% l('The default search library setting determines what library is searched from the advanced search screen and portal page by default. Manual selection of a search library will override it. One recommendation is to set the search library to the highest point you would normally want to search.') %]</p>
         </div>
         <div class="col-md-4">
@@ -92,7 +92,7 @@
 
       <div class="row new-entry">
         <div class="col-md-8">
-            <label for="pref_lib_selector">[% ('Preferred Library') %]</label>
+            <label for="pref_lib_selector">[% l('Preferred Library') %]</label>
             <p>[% l('The preferred library is used to show copies and URIs regardless of the library searched. One recommendation is to set this to your workstation library so that local copies show up first in search results.') %]</p>
         </div>
         <div class="col-md-4">
 
       <div class="row new-entry">
         <div class="col-md-8">
-            <label for="adv_pane_selector">[% ('Advanced Search Default Pane') %]</label>
+            <label for="adv_pane_selector">[% l('Advanced Search Default Pane') %]</label>
             <p>[% l('Advanced search has secondary panes for Numeric and MARC Expert searching. You can change which one is loaded by default when opening a new catalog window here.') %]</p>
         </div>
         <div class="col-md-4">
index bc009b6..64a6891 100644 (file)
@@ -8,7 +8,7 @@
       <ul>
         <li ng-repeat="map in tag_map" ng-show="!map.isdeleted()">
             <span class="copy_tag_label">{{map.tag().label()}}</span>
-            <button type="button" ng-click="map.isdeleted(1)" class="btn btn-xs btn-warning">[% ('Remove') %]</button>
+            <button type="button" ng-click="map.isdeleted(1)" class="btn btn-xs btn-warning">[% l('Remove') %]</button>
         </li>
       </ul>
       <div class="row">
index c2878f8..773f5db 100644 (file)
@@ -8,7 +8,7 @@
       <ul>
         <li ng-repeat="map in tag_map" ng-show="!map.isdeleted()">
             <span class="copy_tag_label">{{map.tag().label()}}</span>
-            <button type="button" ng-click="map.isdeleted(1)" class="btn btn-xs btn-warning">[% ('Remove') %]</button>
+            <button type="button" ng-click="map.isdeleted(1)" class="btn btn-xs btn-warning">[% l('Remove') %]</button>
         </li>
       </ul>
       <div class="row">
index 8d20cf2..c3cc46c 100644 (file)
@@ -27,7 +27,7 @@
                 <div class="col-xs-12">
                     <h4 class="pad-vert">[% l('Creation Defaults') %]</h4>
                     <select class="form-control" ng-change="saveDefaults()" ng-model="defaults.classification" ng-options="cl.id() as cl.name() for cl in classification_list">
-                        <option value="">[% ('Use Library Setting') %]</option>
+                        <option value="">[% l('Use Library Setting') %]</option>
                     </select>
                 </div>
             </div>
index 840b83d..a6be0cc 100644 (file)
   <eg-grid-action label="[% l('Full Details') %]" 
     handler="showFullDetails"></eg-grid-action>
 
-  <eg-grid-field label="[% ('Balance Owed') %]" path='summary.balance_owed'></eg-grid-field>
-  <eg-grid-field label="[% ('Bill #') %]" path='id'></eg-grid-field>
-  <eg-grid-field label="[% ('Start') %]" path='xact_start' datatype="timestamp"></eg-grid-field>
-  <eg-grid-field label="[% ('Total Billed') %]" path='summary.total_owed'></eg-grid-field>
-  <eg-grid-field label="[% ('Total Paid') %]" path='summary.total_paid'></eg-grid-field>
-  <eg-grid-field label="[% ('Type') %]" path='xact_type'></eg-grid-field>
+  <eg-grid-field label="[% l('Balance Owed') %]" path='summary.balance_owed'></eg-grid-field>
+  <eg-grid-field label="[% l('Bill #') %]" path='id'></eg-grid-field>
+  <eg-grid-field label="[% l('Start') %]" path='xact_start' datatype="timestamp"></eg-grid-field>
+  <eg-grid-field label="[% l('Total Billed') %]" path='summary.total_owed'></eg-grid-field>
+  <eg-grid-field label="[% l('Total Paid') %]" path='summary.total_paid'></eg-grid-field>
+  <eg-grid-field label="[% l('Type') %]" path='xact_type'></eg-grid-field>
 
   <!-- receipt data -->
   <eg-grid-field path='summary.last_billing_type' required></eg-grid-field>
@@ -91,7 +91,7 @@
   </eg-grid-field>
 
   <!-- virtual field -->
-  <eg-grid-field datatype="money" label="[% ('Payment Pending') %]" 
+  <eg-grid-field datatype="money" label="[% l('Payment Pending') %]" 
     name="payment_pending"></eg-grid-field>
 
   <!-- import all circ fields, hidden by default -->
index ffac971..65ef0a1 100644 (file)
     label="{{bkt.name()}}" handler-data="bkt"
     handler="addToBucket" disabled="need_one_selected"></eg-grid-menu-item>
 
-  <eg-grid-field label="[% ('ID') %]" path='id' visible></eg-grid-field>
-  <eg-grid-field label="[% ('Card') %]" path='card.barcode' visible></eg-grid-field>
-  <eg-grid-field label="[% ('Profile') %]" path='profile.name' visible></eg-grid-field>
-  <eg-grid-field label="[% ('Last Name') %]" path='family_name' visible sortable multisortable></eg-grid-field>
-  <eg-grid-field label="[% ('First Name') %]" path='first_given_name' visible sortable multisortable></eg-grid-field>
-  <eg-grid-field label="[% ('Middle Name') %]" path='second_given_name' visible sortable multisortable></eg-grid-field>
-  <eg-grid-field label="[% ('DoB') %]" path='dob' dateformat="{{$root.egDateFormat}}" datatype="timestamp" visible sortable multisortable></eg-grid-field>
-  <eg-grid-field label="[% ('Home Library') %]" path='home_ou.shortname' visible></eg-grid-field>
-  <eg-grid-field label="[% ('Created On') %]" path='create_date' datatype="timestamp" visible sortable multisortable></eg-grid-field>
-
-  <eg-grid-field label="[% ('Mailing:Street 1') %]" path='mailing_address.street1' visible></eg-grid-field>
-  <eg-grid-field label="[% ('Mailing:Street 2') %]" path='mailing_address.street2'></eg-grid-field>
-  <eg-grid-field label="[% ('Mailing:City') %]" path='mailing_address.city'></eg-grid-field>
-  <eg-grid-field label="[% ('Mailing:County') %]" path='mailing_address.county'></eg-grid-field>
-  <eg-grid-field label="[% ('Mailing:State') %]" path='mailing_address.state'></eg-grid-field>
-  <eg-grid-field label="[% ('Mailing:Zip') %]" path='mailing_address.post_code'></eg-grid-field>
-
-  <eg-grid-field label="[% ('Billing:Street 1') %]" path='billing_address.street1'></eg-grid-field>
-  <eg-grid-field label="[% ('Billing:Street 2') %]" path='billing_address.street2'></eg-grid-field>
-  <eg-grid-field label="[% ('Billing:City') %]" path='billing_address.city'></eg-grid-field>
-  <eg-grid-field label="[% ('Billing:County') %]" path='billing_address.county'></eg-grid-field>
-  <eg-grid-field label="[% ('Billing:State') %]" path='billing_address.state'></eg-grid-field>
-  <eg-grid-field label="[% ('Billing:Zip') %]" path='billing_address.post_code'></eg-grid-field>
+  <eg-grid-field label="[% l('ID') %]" path='id' visible></eg-grid-field>
+  <eg-grid-field label="[% l('Card') %]" path='card.barcode' visible></eg-grid-field>
+  <eg-grid-field label="[% l('Profile') %]" path='profile.name' visible></eg-grid-field>
+  <eg-grid-field label="[% l('Last Name') %]" path='family_name' visible sortable multisortable></eg-grid-field>
+  <eg-grid-field label="[% l('First Name') %]" path='first_given_name' visible sortable multisortable></eg-grid-field>
+  <eg-grid-field label="[% l('Middle Name') %]" path='second_given_name' visible sortable multisortable></eg-grid-field>
+  <eg-grid-field label="[% l('DoB') %]" path='dob' dateformat="{{$root.egDateFormat}}" datatype="timestamp" visible sortable multisortable></eg-grid-field>
+  <eg-grid-field label="[% l('Home Library') %]" path='home_ou.shortname' visible></eg-grid-field>
+  <eg-grid-field label="[% l('Created On') %]" path='create_date' datatype="timestamp" visible sortable multisortable></eg-grid-field>
+
+  <eg-grid-field label="[% l('Mailing:Street 1') %]" path='mailing_address.street1' visible></eg-grid-field>
+  <eg-grid-field label="[% l('Mailing:Street 2') %]" path='mailing_address.street2'></eg-grid-field>
+  <eg-grid-field label="[% l('Mailing:City') %]" path='mailing_address.city'></eg-grid-field>
+  <eg-grid-field label="[% l('Mailing:County') %]" path='mailing_address.county'></eg-grid-field>
+  <eg-grid-field label="[% l('Mailing:State') %]" path='mailing_address.state'></eg-grid-field>
+  <eg-grid-field label="[% l('Mailing:Zip') %]" path='mailing_address.post_code'></eg-grid-field>
+
+  <eg-grid-field label="[% l('Billing:Street 1') %]" path='billing_address.street1'></eg-grid-field>
+  <eg-grid-field label="[% l('Billing:Street 2') %]" path='billing_address.street2'></eg-grid-field>
+  <eg-grid-field label="[% l('Billing:City') %]" path='billing_address.city'></eg-grid-field>
+  <eg-grid-field label="[% l('Billing:County') %]" path='billing_address.county'></eg-grid-field>
+  <eg-grid-field label="[% l('Billing:State') %]" path='billing_address.state'></eg-grid-field>
+  <eg-grid-field label="[% l('Billing:Zip') %]" path='billing_address.post_code'></eg-grid-field>
   <eg-grid-field path='*' ignore="id family_name first_given_name second_given_name dob create_date"></eg-grid-field>
 </eg-grid>
index cd97232..aeb8222 100644 (file)
                   <button class="btn btn-warning btn-sm"
                       ng-if="pattern.enum_levels.length > 1"
                       ng-click="pattern.drop_enum_level()">
-                      [% ('Remove Level') %]
+                      [% l('Remove Level') %]
                   </button>
                   <button class="btn btn-warning btn-sm"
                       ng-disabled="pattern.enum_levels.length >= 6"
                       ng-click="pattern.add_enum_level()">
-                      [% ('Add Level') %]
+                      [% l('Add Level') %]
                   </button>
                 </div>
             </div>
                   <button class="btn btn-warning btn-sm"
                       ng-if="pattern.alt_enum_levels.length > 1"
                       ng-click="pattern.drop_alt_enum_level()">
-                      [% ('Remove Level') %]
+                      [% l('Remove Level') %]
                   </button>
                   <button class="btn btn-warning btn-sm" 
                       ng-disabled="pattern.alt_enum_levels.length >= 2"
                       ng-click="pattern.add_alt_enum_level()">
-                      [% ('Add Level') %]
+                      [% l('Add Level') %]
                   </button>
                 </div>
             </div>
index 885aded..7b3cf9c 100644 (file)
@@ -8,28 +8,28 @@
   items-provider="patronSearchGridProvider"
   persist-key="circ.patron.search">
 
-  <eg-grid-field label="[% ('ID') %]" path='id' visible></eg-grid-field>
-  <eg-grid-field label="[% ('Card') %]" path='card.barcode' visible></eg-grid-field>
-  <eg-grid-field label="[% ('Profile') %]" path='profile.name' visible></eg-grid-field>
-  <eg-grid-field label="[% ('Last Name') %]" path='family_name' visible sortable multisortable></eg-grid-field>
-  <eg-grid-field label="[% ('First Name') %]" path='first_given_name' visible sortable multisortable></eg-grid-field>
-  <eg-grid-field label="[% ('Middle Name') %]" path='second_given_name' visible sortable multisortable></eg-grid-field>
-  <eg-grid-field label="[% ('DoB') %]" path='dob' visible sortable multisortable></eg-grid-field>
-  <eg-grid-field label="[% ('Home Library') %]" path='home_ou.shortname' visible></eg-grid-field>
-  <eg-grid-field label="[% ('Created On') %]" path='create_date' visible sortable multisortable></eg-grid-field>
+  <eg-grid-field label="[% l('ID') %]" path='id' visible></eg-grid-field>
+  <eg-grid-field label="[% l('Card') %]" path='card.barcode' visible></eg-grid-field>
+  <eg-grid-field label="[% l('Profile') %]" path='profile.name' visible></eg-grid-field>
+  <eg-grid-field label="[% l('Last Name') %]" path='family_name' visible sortable multisortable></eg-grid-field>
+  <eg-grid-field label="[% l('First Name') %]" path='first_given_name' visible sortable multisortable></eg-grid-field>
+  <eg-grid-field label="[% l('Middle Name') %]" path='second_given_name' visible sortable multisortable></eg-grid-field>
+  <eg-grid-field label="[% l('DoB') %]" path='dob' visible sortable multisortable></eg-grid-field>
+  <eg-grid-field label="[% l('Home Library') %]" path='home_ou.shortname' visible></eg-grid-field>
+  <eg-grid-field label="[% l('Created On') %]" path='create_date' visible sortable multisortable></eg-grid-field>
 
-  <eg-grid-field label="[% ('Mailing:Street 1') %]" path='mailing_address.street1' visible></eg-grid-field>
-  <eg-grid-field label="[% ('Mailing:Street 2') %]" path='mailing_address.street2'></eg-grid-field>
-  <eg-grid-field label="[% ('Mailing:City') %]" path='mailing_address.city'></eg-grid-field>
-  <eg-grid-field label="[% ('Mailing:County') %]" path='mailing_address.county'></eg-grid-field>
-  <eg-grid-field label="[% ('Mailing:State') %]" path='mailing_address.state'></eg-grid-field>
-  <eg-grid-field label="[% ('Mailing:Zip') %]" path='mailing_address.post_code'></eg-grid-field>
+  <eg-grid-field label="[% l('Mailing:Street 1') %]" path='mailing_address.street1' visible></eg-grid-field>
+  <eg-grid-field label="[% l('Mailing:Street 2') %]" path='mailing_address.street2'></eg-grid-field>
+  <eg-grid-field label="[% l('Mailing:City') %]" path='mailing_address.city'></eg-grid-field>
+  <eg-grid-field label="[% l('Mailing:County') %]" path='mailing_address.county'></eg-grid-field>
+  <eg-grid-field label="[% l('Mailing:State') %]" path='mailing_address.state'></eg-grid-field>
+  <eg-grid-field label="[% l('Mailing:Zip') %]" path='mailing_address.post_code'></eg-grid-field>
 
-  <eg-grid-field label="[% ('Billing:Street 1') %]" path='billing_address.street1'></eg-grid-field>
-  <eg-grid-field label="[% ('Billing:Street 2') %]" path='billing_address.street2'></eg-grid-field>
-  <eg-grid-field label="[% ('Billing:City') %]" path='billing_address.city'></eg-grid-field>
-  <eg-grid-field label="[% ('Billing:County') %]" path='billing_address.county'></eg-grid-field>
-  <eg-grid-field label="[% ('Billing:State') %]" path='billing_address.state'></eg-grid-field>
-  <eg-grid-field label="[% ('Billing:Zip') %]" path='billing_address.post_code'></eg-grid-field>
+  <eg-grid-field label="[% l('Billing:Street 1') %]" path='billing_address.street1'></eg-grid-field>
+  <eg-grid-field label="[% l('Billing:Street 2') %]" path='billing_address.street2'></eg-grid-field>
+  <eg-grid-field label="[% l('Billing:City') %]" path='billing_address.city'></eg-grid-field>
+  <eg-grid-field label="[% l('Billing:County') %]" path='billing_address.county'></eg-grid-field>
+  <eg-grid-field label="[% l('Billing:State') %]" path='billing_address.state'></eg-grid-field>
+  <eg-grid-field label="[% l('Billing:Zip') %]" path='billing_address.post_code'></eg-grid-field>
   <eg-grid-field path='*' ignore="id family_name first_given_name second_given_name dob create_date"></eg-grid-field>
 </eg-grid>