In This Article:

    Translate "Please enter a valid email" message on international pages

    In This Article:


      Salsa has the ability to display public-facing pages in other languages via the Internationalization Package. For example, here's a signup page that is displayed in German:


      If a supporter provides an invalid email, then the message is still in English:


      This problem has been reported to our developers and is in process.  Meanwhile, there's a workaround that can translate the text to the language of your choice.  Interested? Read on!


      The solution is to provide an alternate script for validating the email address.  The script does exactly the same validation that Salsa normally does.  The difference is that it looks at the page URL and changes the message if the language specifier (/l/whatever) is in the URL.  This solution appears in two parts: Installation and configuration.


      This script needs to be installed in all of your templates that are used by pages in languages other than English.  Here are some steps that you can use.

      1. Edit a template.
      2. Locate the </body> tag using the browser's search tool.
      3. Insert a blank line just before the </body> tag.
      4. Click here to see the solution.
      5. Click on the Raw button.  A new window containing just the source will appear.
      6. Copy the source.
      7. Paste the source into the newly inserted line in the template.
      8. Save the template.


      The script provides a German translation for "Please enter a valid email address." when /l/ger appears in the page URL.  If you would like the page to detect another language (like French) then configure the script using these steps.

      Before you begin

      1. Determine the language code for the language that you would like to translate. You can find a list of the supported languages in the documentation for the Internationalization Package.
      2. Have the translated message on hand.  As a reminder, the message must be encoded using UTF-8.  Others don't work as well with Salsa.

      Steps you can use

      1. Locate /l/ger in the script.


      1. Change /l/ger to /l/ and your chosen language code.  For example, change /l/ger to /l/fra for French.
      2. Copy the translation for "Please enter a valid email address."
      3. Paste it between the apostrophes in this line:


      Note: Paste carefully so that the apostrophes are not disturbed.


      1. Double check that the language specifier and the message are correct.
      2. Save the template.
      3. Test!


      If you have any questions, please collection this information:

      • Your organization_KEY
      • Your chapter_KEY if you are in a chapter
      • The template_KEY of the modified template
      • The URL of a page that uses the modified template
      • A screenshot, if possible

      Send this information to, and we'll be glad to help.

      Was this article helpful?
      0 out of 0 found this helpful
      Have more questions? Submit a request



      Please sign in to leave a comment.