Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Solved Broken new user invitation email in Spanish

    Support
    spanish translations
    2
    3
    215
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • andres.moya
      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.

      nebulon 1 Reply Last reply Reply Quote 3
      • nebulon
        nebulon Staff @andres.moya last edited by

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

        1 Reply Last reply Reply Quote 3
        • andres.moya
          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? 😁

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Powered by NodeBB