[Koha-bugs] [Bug 25099] Sending a LANG variable to plug-in template

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon May 4 13:07:38 CEST 2020


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25099

--- Comment #6 from Nicolas Legrand <nicolas.legrand at bulac.fr> ---
(In reply to Tomás Cohen Arazi from comment #5)
> (In reply to Nicolas Legrand from comment #4)
> > So should we send a LANG variable to template with
> > C4::Languages::getlanguage and create an “official way to do translations in
> > plug-ins” or should anyone get along with what fits him most and use
> > C4::Languages::getlanguage directly from its own plug-in?
> 
> I agree with stashing the LANG variable like this, and also agree it should
> be done using getlanguages() as the PayPal plugin does, but in Base.pm.

The only problem I see is that one should not reference C4 namespace in Koha
namespace :).

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


More information about the Koha-bugs mailing list