From 32c89dfa1af8e2157e0c6f9f51fafc093a442174 Mon Sep 17 00:00:00 2001 From: Katrin Fischer Date: Mon, 11 Jun 2012 15:09:00 +0100 Subject: [PATCH] Bug 8232: Comments in OPAC contain untranslatable javascript messages To test: - add a new comment to a record in the OPAC - Your comment (preview, pending approval) is not translatable - update po files by running 'perl translate update ' - Open po file and check if strings are there, translate - install language again by running 'perl translate install ' Signed-off-by: Owen Leonard Signed-off-by: Paul Poulain --- koha-tmpl/opac-tmpl/prog/en/modules/opac-review.tt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-review.tt b/koha-tmpl/opac-tmpl/prog/en/modules/opac-review.tt index d14028521d..92bdc87f61 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-review.tt +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-review.tt @@ -9,7 +9,7 @@ var inject_old = function(comment) { [% IF ( reviewid ) %] [% IF ( cgi_debug ) %]alert(_('injecting OLD comment: ')+comment);[% END %] - parent.opener.$('#c[% reviewid %] p').prev("small").prev("h5").html("Your edited comment (preview, pending approval)"); + parent.opener.$('#c[% reviewid %] p').prev("small").prev("h5").html(_("Your edited comment (preview, pending approval)")); parent.opener.$('#c[% reviewid %] p').html(comment); parent.opener.$('#c[% reviewid %] p').append("Edit<\/a>"); [% END %] @@ -19,7 +19,7 @@ [% IF ( cgi_debug ) %]alert(_("injecting NEW comment: ") +comment);[% END %] parent.opener.$('#newcomment').attr("class","yours"); parent.opener.$('#newcomment').html( - "
Your comment (preview, pending approval)<\/h5>" + + "
" + _("Your comment (preview, pending approval)") + "<\/h5>" + "

"+comment+"<\/p>" + "Edit<\/a><\/p>" ); -- 2.39.5