From 69d4d8f1cca9c536a0e182a847726f363768f578 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Thu, 7 Apr 2011 10:46:16 +0200 Subject: [PATCH] Bug 6084: Follow up - fix more translation markers grep -R 'alert("' * was not enough. I needed grep -R "alert('" too!. Signed-off-by: Katrin Fischer Signed-off-by: Chris Cormack --- koha-tmpl/intranet-tmpl/prog/en/includes/background-job.inc | 2 +- koha-tmpl/intranet-tmpl/prog/en/js/acq.js | 2 +- .../intranet-tmpl/prog/en/modules/admin/biblio_framework.tmpl | 4 ++-- .../prog/en/modules/offline_circ/process_koc.tmpl | 2 +- .../prog/en/modules/tools/stage-marc-import.tmpl | 2 +- koha-tmpl/opac-tmpl/prog/en/modules/opac-results-grouped.tmpl | 4 ++-- koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tmpl | 4 ++-- 7 files changed, 10 insertions(+), 10 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/background-job.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/background-job.inc index 7d65d4d538..b18d5ce39a 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/background-job.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/background-job.inc @@ -73,7 +73,7 @@ backgroundJobProgressTimer = setInterval("updateJobProgress()", 500); }, error: function(xml, textStatus) { - alert('Failed to submit form: ' + textStatus); + alert(_('Failed to submit form: ') + textStatus); } }); diff --git a/koha-tmpl/intranet-tmpl/prog/en/js/acq.js b/koha-tmpl/intranet-tmpl/prog/en/js/acq.js index 59363592de..bcfb7b81c8 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/js/acq.js +++ b/koha-tmpl/intranet-tmpl/prog/en/js/acq.js @@ -384,7 +384,7 @@ function closeandprint(bg){ if(document.location = '/cgi-bin/koha/acqui/basketgroup.pl?op=closeandprint&basketgroupid=' + bg ){ setTimeout("window.location.reload();",3000); }else{ - alert('Error downloading the file'); + alert(_('Error downloading the file')); } } diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/biblio_framework.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/biblio_framework.tmpl index 8d979e8220..c54eef27c8 100755 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/biblio_framework.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/biblio_framework.tmpl @@ -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; diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/offline_circ/process_koc.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/offline_circ/process_koc.tmpl index 260754c5f2..250f1b9d2f 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/offline_circ/process_koc.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/offline_circ/process_koc.tmpl @@ -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(); diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/stage-marc-import.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/stage-marc-import.tmpl index 8660db0e2c..4553f1a4be 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/stage-marc-import.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/stage-marc-import.tmpl @@ -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); } diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-results-grouped.tmpl b/koha-tmpl/opac-tmpl/prog/en/modules/opac-results-grouped.tmpl index 8f87b1bd72..69a8c48d66 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-results-grouped.tmpl +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-results-grouped.tmpl @@ -34,12 +34,12 @@ $(document).ready(function(){ var shelfnumber = $("#addto").find("option:selected").attr("id").replace("s",""); if (vShelfAdd()) { Dopop('/cgi-bin/koha/opac-addbybiblionumber.pl?selectedshelf='+shelfnumber+'&' + vShelfAdd()); - } alert('You must be logged in to create or add to Lists'); + } alert(_('You must be logged in to create or add to Lists')); return false; } else if($("#addto").find("option:selected").attr("value") == "newlist"){ if (vShelfAdd()) { Dopop('/cgi-bin/koha/opac-addbybiblionumber.pl?newshelf=1&' + vShelfAdd()); - } alert('You must be logged in to create or add to Lists'); + } alert(_('You must be logged in to create or add to Lists')); return false; } if($("#addto").find("option:selected").attr("value") == "addtocart"){ diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tmpl b/koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tmpl index 05df994d66..090490113c 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tmpl +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tmpl @@ -164,12 +164,12 @@ $(document).ready(function(){ } else if($("#addto").find("option:selected").attr("value") == "newlist"){ if (vShelfAdd()) { Dopop('/cgi-bin/koha/opac-addbybiblionumber.pl?newshelf=1&' + vShelfAdd()); - } alert('You must be logged in to create or add to Lists'); + } alert(_('You must be logged in to create or add to Lists')); return false; } else if($("#addto").find("option:selected").attr("value") == "morelists"){ if (vShelfAdd()) { Dopop('/cgi-bin/koha/opac-addbybiblionumber.pl?' + vShelfAdd()); - } alert('You must be logged in to create or add to Lists'); + } alert(_('You must be logged in to create or add to Lists')); return false; } if($("#addto").find("option:selected").attr("value") == "addtocart" || $("#addto").attr("class") == "addtocart"){ -- 2.39.5