I ommited commented lines and "if $debug" lines too.
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
}
}
if (items.length < 1) {
- alert("Please select at least one item to delete.");
+ alert(_("Please select at least one item to delete."));
return; // no item selected
}
getstr = items.join("&");
// var msg = "Are you sure you want to remove selected item from this batch?"
// }
else {
- alert("Please select at least label to delete.");
+ alert(_("Please select at least label to delete."));
return; // no item selected
}
var answer = confirm(msg);
}
}
if (labels.length < 1) {
- alert("Please select at least one label to export.");
+ alert(_("Please select at least one label to export."));
return; // no batch selected
}
getstr = labels.join("&");
getstr = document.items.action.value;
}
else {
- alert("Please select at least one label to export.");
+ alert(_("Please select at least one label to export."));
return; // no batch selected
}
return GB_showCenter('Export Labels', "/cgi-bin/koha/labels/label-print.pl?batch_id=<!-- TMPL_VAR NAME="batch_id" -->&" + getstr, 700, 800);
return(document.items.action.value);
}
};
- alert("Please select at least one item.");
+ alert(_("Please select at least one item."));
return (-1);
};
}
}
if (items.length < 1) {
- alert("Please select at least one item to delete.");
+ alert(_("Please select at least one item to delete."));
return; // no item selected
}
getstr = items.join("&");
// var msg = "Are you sure you want to remove selected item from this batch?"
// }
else {
- alert("Please select at least label to delete.");
+ alert(_("Please select at least label to delete."));
return; // no item selected
}
var answer = confirm(msg);
}
}
if (patroncards.length < 1) {
- alert("Please select at least one card to export.");
+ alert(_("Please select at least one card to export."));
return; // no batch selected
}
getstr = patroncards.join("&");
getstr = document.items.action.value;
}
else {
- alert("Please select at least one card to export.");
+ alert(_("Please select at least one card to export."));
return; // no batch selected
}
return GB_showCenter('Export Labels', "/cgi-bin/koha/patroncards/print.pl?batch_id=<!-- TMPL_VAR NAME="batch_id" -->&" + getstr, 700, 800);
return(document.items.action.value);
}
};
- alert("Please select at least one item.");
+ alert(_("Please select at least one item."));
return (-1);
};
}).responseXML;
if (this.xmlDoc) this.renderTemplate();
$("*").ajaxError(function(evt, request, settings){
- alert("AJAX error: receiving data from " + settings.url);
+ alert(_("AJAX error: receiving data from ") + settings.url);
});
},//loadXmlValues
// if user decreases the quantity
if($(this).val() < <!-- TMPL_VAR name="quantityrec" -->)
{
- alert("You have deleted item(s) in the order, don't forget to delete it(them) in the catalog");
+ alert(_("You have deleted item(s) in the order, don't forget to delete it(them) in the catalog"));
return true;
}
else
{
// if user increases the quantity
- alert("You can't add a new item, please create a new order line");
+ alert(_("You can't add a new item, please create a new order line"));
// and we replace the original value
$(this).val(<!-- TMPL_VAR name="quantityrec" -->)
return false;
var matches = new RegExp("\\?error_import_export=(.+)$").exec(window.location.search);
if (matches && matches.length > 1) {
- alert("Error importing the framework " + decodeURIComponent(matches[1]));
+ alert(_("Error importing the framework ") + decodeURIComponent(matches[1]));
}
});
//<![CDATA[
function Check(f) {
if (f.city_zipcode.value.length == 0 && f.city_name.value.length == 0 ) {
- alert("City name & zipcode missing");
+ alert(_("City name & zipcode missing"));
} else{
document.Aform.submit();
}
}
function Check(f) {
if (f.word.value.length==0) {
- alert("Form not submitted: word missing");
+ alert(_("Form not submitted: word missing"));
} else {
document.Aform.submit();
}
});
function set_to_today(id, force) {
- if (! id) { alert("Bad id " + id + " sent to set_to_today()"); return 0; }
+ if (! id) { alert(_("Bad id ") + id + _(" sent to set_to_today()")); return 0; }
if ($("#" + id).val() == '' || $("#" + id).val() == '0000-00-00' || force) {
$("#" + id).val("<!-- TMPL_VAR NAME="today_iso" -->");
}
//for (i=0;i< (mycountMACLESgen - mycountMACLESinit);i++){
// PluginAddField(myvalue);
//}
- alert("veuillez d'abord creer le nombre de champs necessaires ");
+ alert(_("veuillez d'abord creer le nombre de champs necessaires "));
} else {
// Pour chaque valeur cochee, ajouter la valeur dans un noeud MACLES.
for (i=0;i<tab.length;i++){
}
function verifyBarcodes(barcodes) {
if (barcodes.value == '') {
- alert("Please add barcodes using either the direct entry text area or the item search.");
+ alert(_("Please add barcodes using either the direct entry text area or the item search."));
return false; // not ok
}
else {
}
}
if (batches.length < 1) {
- alert("Please select at least one batch to export.");
+ alert(_("Please select at least one batch to export."));
return; // no batch selected
}
getstr = batches.join("&");
getstr = "batch_id="+document.layouts.action.value;
}
else {
- alert("Please select at least one batch to export.");
+ alert(_("Please select at least one batch to export."));
return; // no batch selected
}
return GB_showCenter('Export Labels', "/cgi-bin/koha/labels/label-print.pl?" + getstr, 700, 800);
return(document.layouts.action[selected[0]].value);
}
else {
- alert("Please select only one <!-- TMPL_VAR NAME="label_element" --> to " + op + ".");
+ alert(_('Please select only one ')+'<!-- TMPL_VAR NAME="label_element" -->'+_(' to')+op+'.');
return (-1);
}
}
return(document.layouts.action.value);
}
};
- alert("Please select a <!-- TMPL_VAR NAME="label_element" -->.");
+ alert(_('Please select a ')+'<!-- TMPL_VAR NAME="label_element" -->.');
return (-1);
};
//]]>
});
function CheckUpload(f){
if(f.fileToUpload.value == ""){
- alert("Please choose a file to upload");
+ alert(_("Please choose a file to upload"));
} else {
return ajaxFileUpload()
}
</div>
-<!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->
\ No newline at end of file
+<!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->
else if (document.delete_images.action.checked){
return {images:"batch_id="+document.delete_images.action.value, image_ids:document.delete_images.action.value};
};
- alert("Please select image(s) to " + op + ".");
+ alert(_("Please select image(s) to ") + op + ".");
return (-1);
};
function showHideLayers(element, time, action) {
}
}
if (batches.length < 1) {
- alert("Please select at least one batch to export.");
+ alert(_('Please select at least one batch to export.'));
return; // no batch selected
}
getstr = batches.join("&");
getstr = "batch_id="+document.layouts.action.value;
}
else {
- alert("Please select at least one batch to export.");
+ alert(_('Please select at least one batch to export.'));
return; // no batch selected
}
return GB_showCenter('Export Patron Cards', "/cgi-bin/koha/patroncards/print.pl?" + getstr, 700, 800);
return(document.layouts.action[selected[0]].value);
}
else {
- alert("Please select only one <!-- TMPL_VAR NAME="card_element" --> to " + op + ".");
+ alert(_('Please select only one ')+'<!-- TMPL_VAR NAME="card_element" -->'+_(' to ') + op + '.');
return (-1);
}
}
return(document.layouts.action.value);
}
};
- alert("Please select a <!-- TMPL_VAR NAME="card_element" -->.");
+ alert(_('Please select a ')+'<!-- TMPL_VAR NAME="card_element" -->.');
return (-1);
};
//]]>
return true;
}
else {
- alert("You must enter a date !");
+ alert(_("You must enter a date !"));
document.f.date.focus();
return false;
}
<h3>Note: Subscription is about to expire next issue.</h3>
<script type="text/javascript">
<!--
- alert("Subscription is about to expire next issue");
+ alert(_("Subscription is about to expire next issue"));
//-->
</script>
<!-- /TMPL_IF -->
function checkForm(form) {
if((form.checkbox[0].checked)){
if(!(form.date1.value)){
- alert("please enter a date !");
+ alert(_("please enter a date !"));
document.form.date1.focus();
return false;
}
}
if((form.checkbox[1].checked)){
if(!(form.date2.value)){
- alert("please enter a date !");
+ alert(_("please enter a date !"));
document.form.date2.focus();
return false;
}
$(document).ready(function() {
var inject_old = function(comment) {
<!-- TMPL_IF NAME="reviewid" -->
- <!-- TMPL_IF NAME="cgi_debug" -->alert("injecting OLD comment: " +comment);<!-- /TMPL_IF -->
+ <!-- TMPL_IF NAME="cgi_debug" -->alert(_('injecting OLD comment: ')+comment);<!-- /TMPL_IF -->
parent.opener.$('#c<!-- TMPL_VAR NAME="reviewid" --> p').prev("small").prev("h5").html("Your Edited Comment (preview, pending approval)");
parent.opener.$('#c<!-- TMPL_VAR NAME="reviewid" --> p').html(comment);
parent.opener.$('#c<!-- TMPL_VAR NAME="reviewid" --> p').append(" <a href=\"#comment\" onclick=\"Dopop(\'/cgi-bin/koha/opac-review.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber"-->&reviewid=<!-- TMPL_VAR NAME="reviewid" -->\');\">Edit<\/a>");
return 1;
};
var inject_new = function(comment) {
- <!-- TMPL_IF NAME="cgi_debug" -->alert("injecting NEW comment: " +comment);<!-- /TMPL_IF -->
+ <!-- TMPL_IF NAME="cgi_debug" -->alert(_("injecting NEW comment: ") +comment);<!-- /TMPL_IF -->
parent.opener.$('#newcomment').attr("class","yours");
parent.opener.$('#newcomment').html(
"<h5>Your Comment (preview, pending approval)<\/h5>" +