We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 18913
    • 654 Posts
    I’ve not had the need before now to consider a multilingual website. So I’m trying to figure out what the current "state of the art" is relative to Evolution (1.0.5 in particular. For the time being Revo is not an option, though I’ve come across a tutorial with Babel).

    I see this thread
    [urlhttp://wiki.modxcms.com/index.php/Make_Multi_Lingual_Site[/url]
    and this tutorial
    http://modxcms.com/forums/index.php/topic,29597.0.html
    as well as YAMS.

    Can anyone working with these suggest which might be a better solution? A stop-gap approach has been to use a Google Translate dropdown (which, frankly, works well enough for someone to get the gist of what’s going on a page). But there is a thought that for a handful of languages contributors would want to override/replace such a naive translation with something more accurate. Then there’s the whole issue of getting the current content replicated in a different language to start off. But if there’s a way of programmatically invoking Google’s Translate to generate the raw material, this can be dealt with.

    Anyway, thanks in advance for any thoughts.
    Matt
    • I’ve become very fond of YAMS; the latest stable (released) version works well.
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 18463
        • 121 Posts
        Martijn van Turnhout Reply #3, 12 years, 11 months ago
        Hi,

        quick question: so YAMS 1.1.9 is compatible with Evo 1.0.5?

        A client of mine wants a new Evo website with multilingual options, that’s why I’m asking. Thanks!
          • 36404
          • 307 Posts
          hi,

          quick answer smiley i would advise you to use the 1.2 RC3 you’ll find here
          https://github.com/goldsky/YAMS

          even if a release candidate it works perfectly, i’m currently working on a website for a big French company, evo 1.0.5 + YAMS 1.2.0 RC3 and haven’t ran into a single problem

          Have swing
            réfléchir avant d'agir
          • For some reason that version read and writes the YAMS config file in latin-1, which of course breaks any other languages, even the Russian and Japanese that it comes with. The earlier release version reads and writes it as utf-8 with no problems. I’ve tried on three completely different systems and servers with the same results.

            I even went so far as to copy the config file by hand and save and upload as utf-8, and while the Manager’s File Manager opened it in utf-8, it got opened by YAMS as latin-1 and any changes made in YAMS caused the file to be written as latin-1.

            That said, I’m doing just fine with the current release version; between YAMS and Jot and Ditto with QM and MM multi-language sites are a breeze to maintain.
              Studying MODX in the desert - http://sottwell.com
              Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
              Join the Slack Community - http://modx.org
              • 36404
              • 307 Posts
              hi Susan,

              it may have been a problem, i actually can’t remember it as the first thing i do is to convert all the files managing languages into utf8 files... because as working in French, the first "é", and you know how we frenchies are found of éàùè... smiley, you run into soon reminds you to do so...

              Have swing



                réfléchir avant d'agir
              • It’s only the config file for the YAMS module that does this, making the module unusable in any but latin-1 languages (French is fine).
                  Studying MODX in the desert - http://sottwell.com
                  Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                  Join the Slack Community - http://modx.org
                  • 36404
                  • 307 Posts
                  this is funny as YAMS config checks the charset used in the manager to use the same for the front end then if the manager language is set on utf8 when installed it should work !

                  got to check this as i’ve a website coming to be done in five languages including ltr ones (arabic)

                  Have swing

                    réfléchir avant d'agir
                  • No problem with the front-end, it’s only with reading/writing that YAMS config.inc.php file. At first I thought it must be some odd setting in my PHP or something, but it works fine via the Manager’s File Manager, and with my text editor and FTP. Only when YAMS reads or writes to it, YAMS insists on using latin-1 for it. And it’s not a problem at all with version 1.1.9. There is a change in the code to using some PHP multilingual function or another (I forget what it is now), but it was getting too involved and I did need to get the site working, so I gave up on trying to pinpoint exactly why it’s doing that.
                      Studying MODX in the desert - http://sottwell.com
                      Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                      Join the Slack Community - http://modx.org
                    • I think there’s something funny going on in this function
                          //----------------------------
                          // itsEncodingModifierMode
                          //----------------------------
                          $contents .=
                            '  // The encoding modifier.' . PHP_EOL
                            . '  // \'manager\' means use the manager setting' . PHP_EOL
                            . '  // \'u\' if webpage content is in UTF-8' . PHP_EOL
                            . '  // \'\' otherwise' . PHP_EOL
                            . '  $this->itsEncodingModifierMode = '
                            . YamsUtils::AsPHPSingleQuotedString( $this->itsEncodingModifierMode )
                            . ';' . PHP_EOL;
                      
                      
                        Studying MODX in the desert - http://sottwell.com
                        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                        Join the Slack Community - http://modx.org