We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 22851
    • 805 Posts
    Okay. In the meantime, I will set up and test the configuration you want more thoroughly on a test installation. Have a great holiday!
      YAMS: Yet Another Multilingual Solution for MODx
      YAMS Forums | Latest: YAMS 1.1.9 | YAMS Documentation
      Please consider donating if you appreciate the time and effort spent developing and supporting YAMS.
      • 25483
      • 741 Posts
      How can I use just 1 TV for all languages?

      I have a TV where you can choose a "country" with a radiobutton. I don’t want the client to have to set the TV for every language because the value will be the same, only the translation will be different.

      Can I use something like this with a TV?
      [[YAMS? &get=`text` &from=`en:hello|fr:bonjour|ja:こんにちは|gr:γειά σου`]]

        with regards,

        Ronald Lokers
        'Front-end developer' @ h2o Media

        • 22851
        • 805 Posts
        It should work, only the syntax changed slightly in a recent version. It’s now:
        [[YAMS? &get=`text` &from=`en::hello||fr::bonjour||ja::こんにちは||gr::γειά σου`]]
        

          YAMS: Yet Another Multilingual Solution for MODx
          YAMS Forums | Latest: YAMS 1.1.9 | YAMS Documentation
          Please consider donating if you appreciate the time and effort spent developing and supporting YAMS.
          • 25483
          • 741 Posts
          Quote from: PMS at Aug 14, 2009, 04:19 AM

          It should work, only the syntax changed slightly in a recent version. It’s now:
          [[YAMS? &get=`text` &from=`en::hello||fr::bonjour||ja::こんにちは||gr::γειά σου`]]
          



          How do I use that with a TV? Do I use the YAMS snippet inside the TV (as input)?
            with regards,

            Ronald Lokers
            'Front-end developer' @ h2o Media

            • 22851
            • 805 Posts
            Create one chunk for each language which will display the name of the country in the correct language for the current page:
            {{England}} -> [[YAMS? &get=`text` &from=`en::England||fr::Angleterre||de::England`]]
            {{France}} -> [[YAMS? &get=`text` &from=`en::France||fr::France||de::Frankreich`]]
            {{Germany}} -> [[YAMS? &get=`text` &from=`en::Germany||fr::Allemagne||de::Deutschland`]]
            ...
            

            Then in the input option values field for your radio button tv put:
            England=={{England}}||France=={{France}}||Germany=={{Germany}}
            

              YAMS: Yet Another Multilingual Solution for MODx
              YAMS Forums | Latest: YAMS 1.1.9 | YAMS Documentation
              Please consider donating if you appreciate the time and effort spent developing and supporting YAMS.
              • 25483
              • 741 Posts
              Ok, very cool! Thanks for your fast help smiley
                with regards,

                Ronald Lokers
                'Front-end developer' @ h2o Media

                • 22851
                • 805 Posts
                Dear all.

                YAMS 1.0.4 beta is now available for download from my server. As well as several bug fixes, it includes updated documentation.

                Those using version 1.0.4 alpha RC 4 may have read/noticed I had to introduce a temporary hack whereby all pages would return 200 - whether or not the original page had been found or not. This was to avoid a problem whereby the site root was returning 404 not found. After much investigation it turns out that the 404s were due to a bug in MODx that is actually fixed in MODx Evolution but affects all versions prior to it. I have introduced a work-around for this bug in version 1.0.4 beta that works for those running versions of MODx prior to MODx Evolution 1.0.0. The site start and site error pages now function as they should again.

                Multilingual aliases here we come...!
                  YAMS: Yet Another Multilingual Solution for MODx
                  YAMS Forums | Latest: YAMS 1.1.9 | YAMS Documentation
                  Please consider donating if you appreciate the time and effort spent developing and supporting YAMS.
                  • 22851
                  • 805 Posts
                  Dear all.

                  YAMS 1.0.5 beta is now available from my server and will be available from the MODx repository shortly. This corrects a couple of bugs found in 1.0.4 beta. (Thanks to jonimant and burn for reporting them.)
                    YAMS: Yet Another Multilingual Solution for MODx
                    YAMS Forums | Latest: YAMS 1.1.9 | YAMS Documentation
                    Please consider donating if you appreciate the time and effort spent developing and supporting YAMS.
                    • 19209
                    • 18 Posts
                    Just wanted to let you know I didn’t drop off the face of the planet. I had to go out of town last Friday and I have another higher priority project that I *must* work on this week. However, I’m going to try and split my time up the best I can so we can finalize the multilingual aliases features.

                    I’ll be in touch,
                    --mgbowman
                      • 22851
                      • 805 Posts
                      Thanks. Don’t rush off and do anything just yet though. I took what you provided and integrated it into YAMS yesterday. I had to tweak it and generalise it a bit so that it can handle friendly alias paths on and off, can deal with the site start alias not being shown, and so that it does proper encoding and decoding of URLs - but it looks like it’s all working! All the mysql calls you provided work like a charm. Will probably have a first multilingual release available tonight for testing.
                        YAMS: Yet Another Multilingual Solution for MODx
                        YAMS Forums | Latest: YAMS 1.1.9 | YAMS Documentation
                        Please consider donating if you appreciate the time and effort spent developing and supporting YAMS.