SOLVED Broken new user invitation email in Spanish
andres.moya last edited by girish
Hello. I have a problem with the new user invitation email.
I changed the UI language of my cloudron server to spanish, and now the invitation email is sent completely empty. If I change back to english, the email is ok. It seems that there is something broken in the spanish translation for the email templates.
Looking at https://translate.cloudron.io/translate/cloudron/dashboard/es/?offset=1&q=welcomeEmail&sort_by=-priority%2Cposition&checksum= I see two keys (welcomeTo and subject) that contain a "@" character ("Bienvenid@ a Cloudron"). Perhaps this is confusing the template system and causing an error.
I don't know how this work. Perhaps this character may be escaped, or else the string changed to "Bienvenido/a", that is also a standard spanish way of having a gender neutral expression (I'm native speaking spanish).
Meanwhile, do you know any workaround we can use, until this is solved? Thanks.
@andres-moya alright, after debugging this, it turns out to not be related to the "@" character, but broken translations. There were a couple of syntax errors in the translated spanish strings, which I have fixed up now.
To fix current Cloudrons, please log in via SSH and run the following two commands as root:
cloudron-translation-update systemctl restart box
This will fetch latest translations and then reload them for the mail templating code.
Generally it shows that we don't yet have a good way to lint or verify translations for syntax errors.
andres.moya last edited by
Thanks very much! I've tested it and now it works ok.
Will you be able to run your tests multi language?