[Koha-patches] [PATCH] [SIGNED-OFF] Further fixes for Bug 5142 - Untranslatable strings in tag review template

Galen Charlton gmcharlt at gmail.com
Fri Nov 19 01:37:16 CET 2010


From: Owen Leonard <oleonard at myacpl.org>

Signed-off-by: Galen Charlton <gmcharlt at gmail.com>
---
 .../intranet-tmpl/prog/en/modules/tags/review.tmpl |   16 ++++++++--------
 1 files changed, 8 insertions(+), 8 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 a1d6dc2..ad2f360 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tags/review.tmpl
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tags/review.tmpl
@@ -48,25 +48,25 @@ td input,td input[type="submit"] { font-size: 85%; padding: 1px; }
 		}
 	}
 	var success_approve = function(tag){
-		// window.alert('AJAX approved tag: ' + tag);
+		// window.alert(_('AJAX approved tag: ') + tag);
 	};
 	var failure_approve = function(tag){
-		window.alert('AJAX failed to approve tag: ' + tag);
+		window.alert(_('AJAX failed to approve tag: ') + tag);
 	};
 	var success_reject  = function(tag){
-		// window.alert('AJAX rejected tag: ' + tag);
+		// window.alert(_('AJAX rejected tag: ') + tag);
 	};
 	var failure_reject  = function(tag){
-		window.alert('AJAX failed to reject tag: ' + tag);
+		window.alert(_('AJAX failed to reject tag: ') + tag);
 	};
 	var success_test    = function(tag){
-		$('#verdict').html(tag + ' is permitted!');
+		$('#verdict').html(tag + _(' is permitted!'));
 	};
 	var failure_test    = function(tag){
-		$('#verdict').html(tag + ' is prohibited!');
+		$('#verdict').html(tag + _(' is prohibited!'));
 	};
 	var indeterminate_test = function(tag){
-		$('#verdict').html(tag + ' is neither permitted nor prohibited!');
+		$('#verdict').html(tag + _(' is neither permitted nor prohibited!'));
 	};
 
 	var success_test_call = function() {
@@ -100,7 +100,7 @@ td input,td input[type="submit"] { font-size: 85%; padding: 1px; }
 	    });
 		$('body').click(function(event) {
 			pull_counts();
-			// window.alert("Click detected on " + event.target + ": " + $(event.target).html);
+			// window.alert(_("Click detected on ") + event.target + ": " + $(event.target).html);
 			if ($(event.target).is('.ok')) {
 				$.ajax({
 					"data": {ok: $(event.target).attr("title"), CGISESSID: readCookie('CGISESSID')},
-- 
1.7.0



More information about the Koha-patches mailing list