Bug 6084: Follow up - fix more translation markers
authorTomas Cohen Arazi <tomascohen@gmail.com>
Thu, 7 Apr 2011 08:46:16 +0000 (10:46 +0200)
committerChris Cormack <chrisc@catalyst.net.nz>
Thu, 7 Apr 2011 09:46:47 +0000 (21:46 +1200)
grep -R 'alert("' *

was not enough. I needed

grep -R "alert('"

too!.

Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
koha-tmpl/intranet-tmpl/prog/en/includes/background-job.inc
koha-tmpl/intranet-tmpl/prog/en/js/acq.js
koha-tmpl/intranet-tmpl/prog/en/modules/admin/biblio_framework.tmpl
koha-tmpl/intranet-tmpl/prog/en/modules/offline_circ/process_koc.tmpl
koha-tmpl/intranet-tmpl/prog/en/modules/tools/stage-marc-import.tmpl
koha-tmpl/opac-tmpl/prog/en/modules/opac-results-grouped.tmpl
koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tmpl

index 7d65d4d..b18d5ce 100644 (file)
@@ -73,7 +73,7 @@
                     backgroundJobProgressTimer = setInterval("updateJobProgress()", 500);
                 },
                 error: function(xml, textStatus) {
-                    alert('Failed to submit form: ' + textStatus);
+                    alert(_('Failed to submit form: ') + textStatus);
                 }
 
             });
index 5936359..bcfb7b8 100644 (file)
@@ -384,7 +384,7 @@ function closeandprint(bg){
        if(document.location = '/cgi-bin/koha/acqui/basketgroup.pl?op=closeandprint&amp;basketgroupid=' + bg ){
                setTimeout("window.location.reload();",3000);
        }else{
-               alert('Error downloading the file');
+               alert(_('Error downloading the file'));
        }
 }
 
index 8d979e8..c54eef2 100755 (executable)
@@ -82,7 +82,7 @@ $(document).ready(function() {
             var filename = $(this).val();
             if ( ! /(?:\.csv|\.sql|\.ods|\.xml)$/.test(filename)) {
                 $(this).css("background-color","yellow");
-                alert('Please select an ods or xml file');
+                alert(_('Please select an ods or xml file'));
                 $(this).val("");
                 $(this).css("background-color","white");
             }
@@ -110,7 +110,7 @@ $(document).ready(function() {
                     return false;
             }
             obj.css("background-color","yellow");
-            alert('Please select an spreadsheet (csv, ods, xml) or sql file');
+            alert(_('Please select an spreadsheet (csv, ods, xml) or sql file'));
             obj.val("");
             obj.css("background-color","white");
             return false;
index 260754c..250f1b9 100644 (file)
@@ -18,7 +18,7 @@ function CheckUpload(f){
 }
 function CheckForm(f) {
     if (f.uploadedfileid.value == '') {
-        alert('Please upload a file first.');
+        alert(_('Please upload a file first.'));
     } else {
                $("#fileuploadstatus").hide();
                $("#fileuploadform").slideUp();
index 8660db0..4553f1a 100644 (file)
@@ -17,7 +17,7 @@ $(document).ready(function(){
 });
 function CheckForm(f) {
     if ($("#fileToUpload").value == '') {
-        alert('Please upload a file first.');
+        alert(_('Please upload a file first.'));
     } else {
         return submitBackgroundJob(f);
     }
index 8f87b1b..69a8c48 100644 (file)
@@ -34,12 +34,12 @@ $(document).ready(function(){
                        var shelfnumber = $("#addto").find("option:selected").attr("id").replace("s","");
                        <!-- TMPL_IF NAME="loggedinusername" -->if (vShelfAdd()) {
                        Dopop('/cgi-bin/koha/opac-addbybiblionumber.pl?selectedshelf='+shelfnumber+'&' + vShelfAdd());
-                       }<!-- TMPL_ELSE --> alert('You must be logged in to create or add to Lists'); <!-- /TMPL_IF -->
+                       }<!-- TMPL_ELSE --> alert(_('You must be logged in to create or add to Lists')); <!-- /TMPL_IF -->
                        return false;
                } else if($("#addto").find("option:selected").attr("value") == "newlist"){
                        <!-- TMPL_IF NAME="loggedinusername" -->if (vShelfAdd()) {
                        Dopop('/cgi-bin/koha/opac-addbybiblionumber.pl?newshelf=1&' + vShelfAdd());
-                       }<!-- TMPL_ELSE --> alert('You must be logged in to create or add to Lists'); <!-- /TMPL_IF -->
+                       }<!-- TMPL_ELSE --> alert(_('You must be logged in to create or add to Lists')); <!-- /TMPL_IF -->
                        return false;
                }
                if($("#addto").find("option:selected").attr("value") == "addtocart"){
index 05df994..0904901 100644 (file)
@@ -164,12 +164,12 @@ $(document).ready(function(){
                } else if($("#addto").find("option:selected").attr("value") == "newlist"){
                        <!-- TMPL_IF NAME="loggedinusername" -->if (vShelfAdd()) {
                        Dopop('/cgi-bin/koha/opac-addbybiblionumber.pl?newshelf=1&' + vShelfAdd());
-                       }<!-- TMPL_ELSE --> alert('You must be logged in to create or add to Lists'); <!-- /TMPL_IF -->
+                       }<!-- TMPL_ELSE --> alert(_('You must be logged in to create or add to Lists')); <!-- /TMPL_IF -->
                        return false;
         } else if($("#addto").find("option:selected").attr("value") == "morelists"){
             <!-- TMPL_IF NAME="loggedinusername" -->if (vShelfAdd()) {
             Dopop('/cgi-bin/koha/opac-addbybiblionumber.pl?' + vShelfAdd());
-            }<!-- TMPL_ELSE --> alert('You must be logged in to create or add to Lists'); <!-- /TMPL_IF -->
+            }<!-- TMPL_ELSE --> alert(_('You must be logged in to create or add to Lists')); <!-- /TMPL_IF -->
             return false;
                }
                if($("#addto").find("option:selected").attr("value") == "addtocart" || $("#addto").attr("class") == "addtocart"){