use ng-pluralize instead of quant collab/phasefx/web-client-p3
authorJason Etheridge <jason@esilibrary.com>
Thu, 1 Oct 2015 21:28:24 +0000 (17:28 -0400)
committerJason Etheridge <jason@esilibrary.com>
Thu, 1 Oct 2015 21:33:46 +0000 (17:33 -0400)
for Angular variables inside of TT

Signed-off-by: Jason Etheridge <jason@esilibrary.com>
Open-ILS/src/templates/staff/circ/share/t_abort_transit_dialog.tt2

index 97e182b..7490e53 100644 (file)
@@ -8,9 +8,20 @@
       </h4>
     </div>
     <div class="modal-body">
-      <div class="form-group">
-        [% l('Abort [quant,_1,Transit,Transits], of which [quant,_2,is for a hold,are for holds].', '{{num_transits}}', '{{num_hold_transits}}') %]
-      </div>
+      <span class="form-group">
+        <ng-pluralize count="num_transits"
+            when="{
+                'one': '[% l('Abort 1 transit?') %]',
+                'other' : '[% l('Abort [_1] transits?','{{num_transits}}') %]'
+            }">
+        </ng-pluralize>
+        <ng-pluralize count="num_hold_transits"
+            when="{
+                'one' : '[% l('There is 1 associated hold.') %]',
+                'other' : '[%l ('There are [_1] associated holds.','{{num_hold_transits}}') %]'
+            }">
+        </ng-pluralize>
+      </span>
     </div>
     <div class="modal-footer">
       <input type="submit" class="btn btn-success" value="[% l('Abort Transit') %]"/>