We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 44195
    • 293 Posts
    Does anyone know of a tutorial for how to set up and use MigxMultiLang?

    It sounds very promising (not a fan of Babel) but I'm not really sure how to go about it.

    This question has been answered by sottwell. See the first response.

    [ed. note: muzzstick last edited this post 9 years, 5 months ago.]
      I'm lead developer at Digital Penguin Creative Studio in Hong Kong. https://www.digitalpenguin.hk
      Check out the MODX tutorial series on my blog at https://www.hkwebdeveloper.com
      • 4172
      • 5,888 Posts
        -------------------------------

        you can buy me a beer, if you like MIGX

        http://webcmsolutions.de/migx.html

        Thanks!
      • If you follow the instructions very carefully it works as expected. The first few times I set it up I kept missing the part about the custom pdoFetch class, and forgetting about the [[++original_culture_key]] and [[++original_site_url]] settings. You need to use that [[++original_site_url]] tag in your template's base meta tag to get the relative URLs to your .css and image files to work. Otherwise you get the language subdirectory in the URL.
          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
          • 44195
          • 293 Posts
          Thanks guys.. Bruno I had seem the page on Github but I think I'm getting confused.
          I have 2 languages I want to use - English and Chinese (en and zh)
          English is the default one and Chinese is secondary.

          I have changed the pdo.Fetch class
          I have created the migxmultilang tables with migx

          I have set up the languages on the languages tab, I then went to the 'Form Manager' tab and clicked 'Import configurations'.
          I set use default form tabs to yes.
          I then closed that window and then clicked 'create TVs'.

          From what I think understand I don't need to create another translation as I only have 2 languages.

          I click the edit button for the appropriate resource.
          I then right click on the resource in the window and click edit.
          I can now see the fields.

          I right click on one of them and choose edit.


          It's here where I get stuck......


          The instructions say to fill out the values for each language but which values does it mean? Am I in the right place?

          I can't find the 'published' option anywhere either.


          Susan, I didn't realise I didn't have to replace the [[++site_url]] with [[++original_site_url]] either so thanks for that.



          Cheers



            I'm lead developer at Digital Penguin Creative Studio in Hong Kong. https://www.digitalpenguin.hk
            Check out the MODX tutorial series on my blog at https://www.hkwebdeveloper.com
          • I have a demo site up with a very basic installation, I'll PM you with a login so you can see what is going on.

            I've been working on a "guest" login for this, but permissions for read-only views of installed extras isn't possible. So I'll need to either work up some interesting plugins, or just make some step-by-step descriptions with a lot of screen shots. [ed. note: sottwell last edited this post 9 years, 7 months ago.]
              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
              • 44195
              • 293 Posts
              Cheers Susan! I'll have another play with it today!
                I'm lead developer at Digital Penguin Creative Studio in Hong Kong. https://www.digitalpenguin.hk
                Check out the MODX tutorial series on my blog at https://www.hkwebdeveloper.com
                • 44195
                • 293 Posts
                Fantastic, I got it working! Thanks very much for the demo site.

                My next question is, what about other TVs on a resource?
                Say I have a simple text TV which I fill in normally with the default language, how do I get that into the translation window?
                  I'm lead developer at Digital Penguin Creative Studio in Hong Kong. https://www.digitalpenguin.hk
                  Check out the MODX tutorial series on my blog at https://www.hkwebdeveloper.com
                  • 4172
                  • 5,888 Posts
                  At first, I would create a duplicate of the example-configuration.

                  Go to the migxMultiLang - CMP to tab 'Form Manager'
                  and duplicate the example-configuration

                  Give it a new name, for exampe 'myformconfig'
                  Make sure, you have checked 'Use as Default Formtabs for all other templates'
                  and you have unchecked that checkbox on the example-config.

                  Then go and create your Textarea- or whatever- TV as you normally would do.

                  Now you need to add that TV also to the Tranlations-Form by editing your new created form-configuration.
                  You can edit the existing Formtab and add your TV-field there or you can create a new Tab for your new TV.

                  You just need to fill the fieldname - its the name of your TV
                  and the inputTV - this is also the name of your TV
                    -------------------------------

                    you can buy me a beer, if you like MIGX

                    http://webcmsolutions.de/migx.html

                    Thanks!
                  • It takes a bit of getting used to, but modifying fields in MIGx is easy once you do get used to it. I've used a standard MIGx gallery setup, and added fields for multi-language galleries.
                      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
                      • 44195
                      • 293 Posts
                      Sorry - been out of action for a few days.

                      Cheers Bruno, I think I've got it wink

                      Susan, I'm not sure how migxmultilang knows to translate which fields in your gallery?
                      I suspected it would be adding a tag for the cultureKey like [[+title_[[++cultureKey]]]] but I can only see this used in the 'alt' description.
                        I'm lead developer at Digital Penguin Creative Studio in Hong Kong. https://www.digitalpenguin.hk
                        Check out the MODX tutorial series on my blog at https://www.hkwebdeveloper.com