Bug 7598: [Follow-up] make strings in acquisitions JavaScript translatable
authorOwen Leonard <oleonard@myacpl.org>
Thu, 18 Jul 2013 15:30:35 +0000 (11:30 -0400)
committerChris Hall <followingthepath@gmail.com>
Mon, 16 Sep 2013 08:07:14 +0000 (20:07 +1200)
This follow-up addresses QA comments and moves punctuation and line
breaks out of the string to be translated.

Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
(cherry picked from commit b38187d8b004316b17d1e67753d638e96bb62bb8)
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
(cherry picked from commit c4bf7d825141261a8a1563790f4e4a767647a779)
Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>
(cherry picked from commit c4bf7d825141261a8a1563790f4e4a767647a779)
Signed-off-by: Chris Hall <followingthepath@gmail.com>
(cherry picked from commit bcd6b896ea3e10c73cca4b34d9030024205b784b)

koha-tmpl/intranet-tmpl/prog/en/js/acq.js
koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgets.tt

index 21ae278..f1210d1 100644 (file)
@@ -35,12 +35,6 @@ function isNull(f,noalert) {
     return true;
 }
 
-
-
-
-
-
-
 //Function returns false if v is not a number (if maybenull is 0, it also returns an error if the number is 0)
 function isNum(v,maybenull) {
     var n = new Number(v.value);
@@ -852,7 +846,7 @@ if ( newBudgetParent  ) { url +=  '&parent_id=' + newBudgetParent};
     if (result == '1') {
             return MSG_BUDGET_PARENT_ALLOCATION;
     } else if (result == '2') {
-            return MSG_BUDGET_PARENT_ALLOCATION;
+            return MSG_BUDGET_PERIOD_ALLOCATION;
     } else  {
             return false;
     }
index 0ccdc48..d042a86 100644 (file)
@@ -3,8 +3,9 @@
 [% INCLUDE 'doc-head-close.inc' %]
 <script type="text/javascript">
 //<![CDATA[
-var MSG_BUDGET_PARENT_ALLOCATION = _("- Fund amount exceeds parent allocation\n");
-var MSG_PARENT_BENEATH_BUDGET = _("- New budget-parent is beneath budget\n");
+var MSG_BUDGET_PARENT_ALLOCATION = "- " + _("Fund amount exceeds parent allocation") + "\n";
+var MSG_BUDGET_PERIOD_ALLOCATION = "- " + _("Fund amount exceeds period allocation") + "\n";
+var MSG_PARENT_BENEATH_BUDGET = "- " + _("New budget-parent is beneath budget") + "\n";
 //]]>
 </script>