[Koha-bugs] [Bug 13473] Plugins fail when loading templates

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Mar 18 13:38:36 CET 2015


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13473

--- Comment #16 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
(In reply to Héctor from comment #15)
> (In reply to Tomás Cohen Arazi from comment #14)
> > (In reply to Héctor from comment #13)
> > > This works, but the system language is shown only in English, although it is
> > > set to Spanish
> > 
> > Could you please fill a new bug for that? Put this one in the 'see also'.
> 
> But the error occurs when you apply this patch.
> 
> I "solved" this by replacing:
> 
>     #Otherwise return theme/'en', last resort fallback/'en'
>     for my $theme (@themes) {
>         if ( -e "$htdocs/$theme/en/$where/$tmpl" ) {
>             return ( $theme, 'en', uniq( \@themes ) );
>         }
>     }
> 
> by
> 
>     # Otherwise return theme/'en', last resort fallback/'en'
>     for my $theme (@themes) {
>         if ( -e "$htdocs/$theme/es-ES/$where/$tmpl" ) {
>             return ( $theme, 'es-ES', uniq( \@themes ) );
>         }
>     }

That part of the code deals with the fallback language, in the situation the
required file doesn't exist in the requested language. So it is ok for that to
fallback to english.

Please fill a new bug if you think/see that the plugins don't respect the
selected language. And please specify the steps to reproduce it. On a new bug
report.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list