From 939f1e7d3e12051fa6d49a537de2ab9c00701d6d Mon Sep 17 00:00:00 2001 From: Dan Scott Date: Fri, 20 Jul 2012 13:41:50 -0400 Subject: [PATCH] TPAC: Decode translated strings into UTF8 Without the _decode pragma, Locale::Maketext::Lexixcon did not understand that it was being handed Unicode and generated some funky output in the TPAC templates. Signed-off-by: Dan Scott Signed-off-by: Lebbeous Fogle-Weekley --- Open-ILS/src/perlmods/lib/OpenILS/WWW/EGWeb.pm | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGWeb.pm b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGWeb.pm index 34bb486..71a520c 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGWeb.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGWeb.pm @@ -284,6 +284,9 @@ sub load_locale_handlers { package OpenILS::WWW::EGWeb::I18N::$tag; use base 'OpenILS::WWW::EGWeb::I18N$parent_tag'; if(\$messages) { + use Locale::Maketext::Lexicon { + _decode => 1 + }; use Locale::Maketext::Lexicon::Gettext; if(open F, '$messages') { our %Lexicon = (%Lexicon, %{ Locale::Maketext::Lexicon::Gettext->parse() }); -- 1.7.2.5