[Koha-bugs] [Bug 33237] If TranslateNotices is off, use the interface language includes in slips

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Mar 16 18:55:21 CET 2023


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

--- Comment #5 from Caroline Cyr La Rose <caroline.cyr-la-rose at inlibro.com> ---
--> check patron's preferred language
--> if patron's preferred language is "default", check interface language
--> if no interface (for overdue_notices for example), check first language in
"language" system preference

No need to check for TranslateNotices since borrowers.lang is always filled no
matter what. If the pref is off, all the patrons' preferred languages will be
"default".

Note that this bug is not for the notice templates. This already works well.
It's only for the "includes" included in the templates. In my example, I used
ACCOUNT_CREDIT template which uses accounts.inc to print the credit or debit
account type. These are all translated in
koha-tmpl/intranet-tmpl/prog/{lang}/includes/accounts.inc but only the english
file is used in the slips, making all accounttypes (payment, lost item, manual
fee, etc.) print in english no matter the language of the template. I added a
screenshot of ACCOUNT_CREDIT with the parts that are currently not translated
unless TranslateNotices is on and the patron has the correct preferred language
in yellow.

-- 
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