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

--- Comment #5 from Caroline Cyr La Rose <[email protected]> ---
--> 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.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to