Up to [LON-CAPA] / loncom / localize
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
Current tag: version_2_7_X
Backport 1.50.
- Bug 5786. Language used for text wrapped around body of message in notification e-mail should correspond to language preference of recipient determined in order: user pref, domain default), unless message is sent in course content, and a language is defined for course (use course langage in this case). lonmsg.pm - &user_lang() used to get a language hadler for recipient. - Translation of text uses &mt_user() instead of &mt(). lonlocal.pm - &mt_user() added (exported). Calls maketext, but takes language handler as firrst arg. loncommon.pm - &get_genlanguages() added - functionality to turn en-ca into en-ca,en and also to remove duplicates from @preferred_languages - moved from &preferred_languages() to a separate subroutine so it is more widely available.