LP1772614 Untranslatable Strings in Billing Print Templates user/mccanna/lp1772614_billing_print_template_translate
authorTerran McCanna <tmccanna@georgialibraries.org>
Wed, 22 Sep 2021 21:58:31 +0000 (17:58 -0400)
committerTerran McCanna <tmccanna@georgialibraries.org>
Wed, 22 Sep 2021 21:58:31 +0000 (17:58 -0400)
Added missing string translation capability to print templates for
- Bills, Current
- Bills, Historical
- Bills, Payment

Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
Open-ILS/src/templates/staff/share/print_templates/t_bill_payment.tt2
Open-ILS/src/templates/staff/share/print_templates/t_bills_current.tt2
Open-ILS/src/templates/staff/share/print_templates/t_bills_historical.tt2

index de88c70..22a8ff6 100644 (file)
@@ -25,8 +25,8 @@ Individual payments within payments contain:
 * payment.xact.copy_barcode - Item barcode
 * payment.xact.title - Item title
 -->
-Welcome to {{current_location.name}}!<br/>
-A receipt of your  transaction:<hr/>
+[% l('Welcome to [_1]', '{{current_location.name}}') %]<br/>
+[% l('A receipt of your  transaction:') %]<hr/>
 
 <table style="width:100%"> 
   <tr> 
index f3bf386..8c71b25 100644 (file)
@@ -42,8 +42,8 @@ to this template includes:
     xact.call_number.owning_lib.name - The owning library's name
     xact.call_number.owning_lib.shortname - The owning library's shortname
 -->
-Welcome to {{current_location.name}}!<br/>
-You have the following bills:
+[% l('Welcome to [_1]', '{{current_location.name}}') %]<br/>
+[% l('You have the following bills:') %]
 <hr/>
 <dl>
   <div ng-repeat="xact in transactions">
index ab0da69..c87b4bf 100644 (file)
@@ -42,12 +42,12 @@ to this template includes:
       xact.call_number.owning_lib.shortname - The owning library's shortname
 
 -->
-Welcome to {{current_location.name}}!<br/>
-You had the following bills:
+[% l('Welcome to [_1]', '{{current_location.name}}') %]<br/>
+[% l('You had the following bills:') %]
 <hr/>
 <dl>
   <div ng-repeat="xact in transactions">
-    <dt><b>Bill #{{xact.id}}</b></dt>
+    <dt><b>[% l('Bill') %] #{{xact.id}}</b></dt>
     <dd>
     <table> 
       <tr valign="top">