Bug 16178: Fix tests for xt/single_quotes.t
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 31 Mar 2016 08:06:14 +0000 (09:06 +0100)
committerBrendan A Gallagher <brendan@bywatersolutions.com>
Fri, 1 Apr 2016 19:05:58 +0000 (19:05 +0000)
Caused by
  commit 9c5c1bc9f104b125e06b3805ce510024e6ad34ac
    Bug 15206: Make strings translatable

Test plan:
  prove xt/single_quotes.t
should return green

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Brendan A Gallagher <brendan@bywatersolutions.com>
koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt

index e6caf43..aeb7f12 100644 (file)
@@ -142,15 +142,15 @@ function select_user(borrowernumber, borrower) {
 
         var age_string;
         if (age.year || age.month) {
-            age_string = _('Age: ');
+            age_string = _("Age: ");
         }
 
         if (age.year) {
-            age_string += age.year > 1 ? _('%s years ').format(age.year) : _('%s year ').format(age.year);
+            age_string += age.year > 1 ? _("%s years ").format(age.year) : _("%s year ").format(age.year);
         }
 
         if (age.month) {
-            age_string += age.month > 1 ? _('%s months ').format(age.month) : _('%s month ').format(age.month);
+            age_string += age.month > 1 ? _("%s months ").format(age.month) : _("%s month ").format(age.month);
         }
 
         hint.html(age_string);