From f2d338ac87c975155969bd9a68090adf4fe38b47 Mon Sep 17 00:00:00 2001 From: Katrin Fischer Date: Mon, 11 Jun 2012 15:09:00 +0100 Subject: [PATCH] [SIGNED-OFF] Bug 8232: Comments in OPAC contain untranslatable javascript messages Content-Type: text/plain; charset="utf-8" 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 --- 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 d140285..92bdc87 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>" ); -- 1.7.9.5