We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36461
    • 102 Posts
    I finally managed to create multi lingual site smiley

    But there is one small problem and I'm not sure how to fix it.
    I have 3 contexts - web(Latvian), English and Russian

    But instead of Latvian babel displays babel.language_lv -


    Also there is one small problem after adding Babel "toggle editor button" isn't visible(), it's visible only if zoom out quite a lot ()
      • 36675
      • 56 Posts
      It seems like we have the opposite problem viltnieks.

      I have 4 contexts, when editing a resource my default "English (web)" displays fine, but the three others look like "babel.language_ja (Japanese)" etc... (see attached picture for screenshot).

      This also go for my links.

      Maybe we can find a solution together?

      Did you type in "English" and "Russian" somewhere?

      https://github.com/yurkobb/babel/blob/92bf1fcc7b7fa676cf1d01f1f71ee6e2ac08413f/assets/components/babel/css/babel.css"" target="_blank" rel="nofollow">yurkobb created a css fix for the toggle editor. Replace the #babel-box in your assets/components/babel/css/babel.css file with this code and adjust accordingly:
      #babel-box {
          background: rgba(224, 224, 224, 0.75);
          margin:15px 0 0;
          padding:10px;
          -moz-border-radius: 3px;
          border-radius: 3px;
          /*display: inline-block; */
          position: fixed;
          top: 124px;
          right: 20px;
          z-index: 12;
      }
        • 36675
        • 56 Posts
        The question remains:

        Where is "babel.language_" taken from?
          • 36461
          • 102 Posts
          thanks for the css fix.

          I have found out other thing in question.

          "babel.language_" is coming from system -> lexicon management.

          You just need to choose babel and create new entry. For example,
          Name - babel.language_jp
          Value - Japanese
            • 36675
            • 56 Posts
            Thanks! I also came across the solution. Another user, Lucas, helped me out.

            Btw, if you want the languages to change in the manager but remain static, written in their own languages. on the front-end, you can do as I have explained here:

            https://forums.modx.com/thread/70846/how-do-i-change-babel-language-xx-solved#dis-post-396478