Bug 14310 [QA Followup] - Enable translations, set svc script to be executable
authorKyle M Hall <kyle@bywatersolutions.com>
Mon, 26 Oct 2015 10:39:38 +0000 (06:39 -0400)
committerBrendan A Gallagher <brendan@bywatersolutions.com>
Wed, 27 Jan 2016 06:20:18 +0000 (06:20 +0000)
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Brendan A Gallagher <brendan@bywatersolutions.com>
koha-tmpl/intranet-tmpl/prog/en/includes/strings.inc
koha-tmpl/intranet-tmpl/prog/en/js/holds.js
svc/hold/resume [changed mode: 0644->0755]
svc/hold/suspend [changed mode: 0644->0755]

index 3226ad3..3995b6d 100644 (file)
     var NO = _("No");
     var YES = _("Yes");
     var INHOUSE_USE = _("On-site checkout");
+    var CANCEL = _("Cancel");
+    var RESUME = _("Resume");
+    var SUSPEND = _("Suspend");
+    var SUSPEND_HOLD_ON = _("Suspend hold on");
+    var CLEAR_DATE_TO_SUSPEND_INDEFINITELY = _("Clear date to suspend indefinitely");
 //]]>
 </script>
index bf7ea44..a6c8ca6 100644 (file)
@@ -130,10 +130,10 @@ $(document).ready(function() {
                                 return "";
                             } else if ( oObj.suspend == 1 ) {
                                 return "<a class='hold-resume btn btn-link' id='resume" + oObj.reserve_id + "' style='display: inline; white-space: nowrap;'>"
-                                     + "<i class='icon-play'></i> " + _("Resume") + "</a>";
+                                     + "<i class='icon-play'></i> " + RESUME + "</a>";
                             } else {
                                 return "<a class='hold-suspend btn btn-link' id='suspend" + oObj.reserve_id + "' style='display: inline; white-space: nowrap;'>"
-                                     + "<i class='icon-pause'></i> " + _("Suspend") + "</a>";
+                                     + "<i class='icon-pause'></i> " + SUSPEND + "</a>";
                             }
                         }
                     }
@@ -181,7 +181,7 @@ $(document).ready(function() {
             <form id='suspend-modal-form' class='form-inline'>\
                 <div class='modal-header'>\
                     <button type='button' class='closebtn' data-dismiss='modal' aria-hidden='true'>×</button>\
-                    <h3 id='suspend-modal-label'>" + _("Suspend hold on") + " <i><span id='suspend-modal-title'></span></i></h3>\
+                    <h3 id='suspend-modal-label'>" + SUSPEND_HOLD_ON + " <i><span id='suspend-modal-title'></span></i></h3>\
                 </div>\
 \
                 <div class='modal-body'>\
@@ -190,13 +190,13 @@ $(document).ready(function() {
                     <label for='suspend-modal-until'>Suspend until:</label>\
                     <input name='suspend_until' id='suspend-modal-until' class='suspend-until' size='10' />\
 \
-                    <p/><a class='btn btn-link' id='suspend-modal-clear-date' >" + _("Clear date to suspend indefinitely") + "</a></p>\
+                    <p/><a class='btn btn-link' id='suspend-modal-clear-date' >" + CLEAR_DATE_TO_SUSPEND_INDEFINITELY + "</a></p>\
 \
                 </div>\
 \
                 <div class='modal-footer'>\
-                    <button id='suspend-modal-submit' class='btn btn-primary' type='submit' name='submit'>" + _("Suspend") + "</button>\
-                    <a href='#' data-dismiss='modal' aria-hidden='true' class='cancel'>" + _("Cancel") + "</a>\
+                    <button id='suspend-modal-submit' class='btn btn-primary' type='submit' name='submit'>" + SUSPEND + "</button>\
+                    <a href='#' data-dismiss='modal' aria-hidden='true' class='cancel'>" + CANCEL + "</a>\
                 </div>\
             </form>\
         </div>\
old mode 100644 (file)
new mode 100755 (executable)
old mode 100644 (file)
new mode 100755 (executable)