@@ -, +, @@ - On clean master, install a translation like: cd misc/translator ; perl translate install fr-FR - Go to sysprefs, opac - Apply the patch, reload --- C4/Templates.pm | 16 ++++++++++++++++ admin/preferences.pl | 2 +- 2 files changed, 17 insertions(+), 1 deletion(-) --- a/C4/Templates.pm +++ a/C4/Templates.pm @@ -5,6 +5,7 @@ use warnings; use Carp; use CGI; use List::MoreUtils qw/any/; +use Encode qw/decode/; # Copyright 2009 Chris Cormack and The Koha Dev Team # @@ -134,6 +135,21 @@ sub output { return $data; } +sub output_prefs { + + my $self = shift; + my $vars = shift; + + my $template = $self->{ TEMPLATE }; + my $data; + + $template->process( $self->filename, + $vars, \$data ) + || die "Template process failed: ", $template->error(); + + return decode('UTF-8',$data); +} + sub utf8_arrayref { my $arrayref = shift; foreach my $element (@$arrayref){ --- a/admin/preferences.pl +++ a/admin/preferences.pl @@ -54,7 +54,7 @@ sub GetTab { local_currency => $local_currency, # currency code is used, because we do not know how a given currency is formatted. ); - return YAML::Syck::Load( $tab_template->output() ); + return YAML::Syck::Load( $tab_template->output_prefs() ); } sub _get_chunk { --