From c4de64629d7f0853f3919cb5d09f98b2c0c60c03 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Sat, 30 Oct 2010 01:52:48 -0400 Subject: [PATCH] Fix for Bug 5142, Untranslatable strings in tag review template Signed-off-by: Galen Charlton Signed-off-by: Chris Cormack --- .../intranet-tmpl/prog/en/modules/tags/review.tmpl | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tags/review.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/tags/review.tmpl index d633abf24f..a1d6dc2791 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tags/review.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tags/review.tmpl @@ -85,7 +85,7 @@ td input,td input[type="submit"] { font-size: 85%; padding: 1px; } } $(document).ready(function() { $('.ajax_buttons' ).css({visibility:"visible"}); - $("p.check").html("Select: <\/strong>All<\/a> Pending<\/a> None<\/a>"); + $("p.check").html(""+_("Select:")+" <\/strong>"+_("All")+"<\/a> "+_("Pending")+"<\/a> "+_("None")+"<\/a>"); $("#CheckAll").click(function(){ $(".checkboxed").checkCheckboxes(); return false; @@ -107,7 +107,7 @@ td input,td input[type="submit"] { font-size: 85%; padding: 1px; } "success": count_approve // success_approve }); $(event.target).next(".rej").removeAttr("disabled").attr("value","Reject").css("color","#000"); - $(event.target).attr( "value","Approved").attr("disabled","disabled").css("color","#666"); + $(event.target).attr( "value",_("Approved")).attr("disabled","disabled").css("color","#666"); return false; // cancel submit } if ($(event.target).is('.rej')) { @@ -116,11 +116,11 @@ td input,td input[type="submit"] { font-size: 85%; padding: 1px; } "success": count_reject // success_reject }); $(event.target).prev(".ok").removeAttr("disabled").attr("value","Approve").css("color","#000"); - $(event.target).attr( "value","Rejected").attr("disabled","disabled").css("color","#666"); + $(event.target).attr( "value",_("Rejected")).attr("disabled","disabled").css("color","#666"); return false; // cancel submit } if ($(event.target).is('#test_button')) { - $(event.target).attr( "value","Testing...").attr("disabled","disabled"); + $(event.target).attr( "value",_("Testing...")).attr("disabled","disabled"); $.ajax({ "data": {test: $('#test').attr("value")}, "success": success_test_call // success_reject @@ -129,7 +129,7 @@ td input,td input[type="submit"] { font-size: 85%; padding: 1px; } } }); $("*").ajaxError(function(evt, request, settings){ - if ((alerted +=1) <= 1){ window.alert("AJAX error (" + alerted + " alert)"); } + if ((alerted +=1) <= 1){ window.alert(_("AJAX error")+" (" + alerted + " alert)"); } }); }); //]]> -- 2.39.5