You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently when sending a Systemmessage to a craft\elements\User passed via message::setTo there must be an exact match of the prefered language and the site language. So when a User submits en-US in his/her preferences but the site is en or en-GB the user won't receive the translated message but the default system message. It would be good to match en with en-XX if no exact match was found.
Steps to reproduce
Create a user with en-US language
Change the content of a Systemmessage in a site with en-GB
Send a mail to this user and see it uses the default message
The text was updated successfully, but these errors were encountered:
Anubarak
changed the title
Make Systemessages translation rules less strict
Make Systemessages translation keys/rules less strict
Feb 22, 2019
Description
Currently when sending a Systemmessage to a
craft\elements\User
passed viamessage::setTo
there must be an exact match of the prefered language and the site language. So when a User submitsen-US
in his/her preferences but the site isen
oren-GB
the user won't receive the translated message but the default system message. It would be good to matchen
withen-XX
if no exact match was found.Steps to reproduce
en-US
languageen-GB
The text was updated successfully, but these errors were encountered: