We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 37047 ☆ A M B ☆
    • 309 Posts
    Yes, THANK YOU, that translates! Woohoo! So I started adding back the templates and parameters and testing after each one. Turns out I needed to have the tvPrefix set to tv. (I was sure it was supposed to be empty) and 2 of my menu templates still had old Wayfinder placeholders. The hazards of retrofitting an existing site.

    I'll try a basic call to see if I can get the pdoResources snippet working this way too.

    One thing I am unclear on is how exactly I add a TV to be translated... Is that in the tutorial somewhere?

    Thank you for all your help Bruno - I bought you a beer! (Or maybe two, depending on what kind of bar you visit.) smiley
      Lucy Iannotti
      Following Sea design & development
      http://www.following-sea.com
      New Bedford, MA
      • 32507
      • 142 Posts
      Hi,

      I'll take this chunk stuff step further than lucy...

      I (like to) have separate chunk calls for both languages in mml_content field

      Chunks (cached & uncached) will display OK if it's content is basic html, but as soon as i have Chunk or Snippet call in that particular chunk, the translation displays only default language. (all mml_ fields).

      My setup is


      • MML Template >
      • Chunk (Template layout) >
      • Chunk [[!$Content]] >
      • TV [[+mml_content]] >
      • Chunk [[$lnside_mml_content]] >
      • Chunk [[$YesImAProblem]]

      Is this getting too complicated laugh

      Is it possible to have chunk calls in mml_content field?
        • 4172
        • 5,888 Posts
        translated stuff needs allways be called uncached, like:

        [[!$YesImAProblem]]


        this way the chunk is cached for each language seperatly (with mmlCache), otherwise MODX would cache the first language and you will get allways the cached one.

        If nothing should be cached by mmlCache, you can call mmlCache with
        &cache=`0`


        For absolute uncached tags try this special tag-syntax:
        [![!Formit? &..........]]
          -------------------------------

          you can buy me a beer, if you like MIGX

          http://webcmsolutions.de/migx.html

          Thanks!
          • 4172
          • 5,888 Posts
          Quote from: lucy at Mar 03, 2015, 04:02 PM
          Yes, THANK YOU, that translates! Woohoo! So I started adding back the templates and parameters and testing after each one. Turns out I needed to have the tvPrefix set to tv. (I was sure it was supposed to be empty) and 2 of my menu templates still had old Wayfinder placeholders. The hazards of retrofitting an existing site.

          I'll try a basic call to see if I can get the pdoResources snippet working this way too.

          One thing I am unclear on is how exactly I add a TV to be translated... Is that in the tutorial somewhere?

          Thank you for all your help Bruno - I bought you a beer! (Or maybe two, depending on what kind of bar you visit.) smiley

          Thanks for the beers, Lucy!

          You can add additional TVs with the Formmanager in the migxMultiLang - CMP
          You can duplicate the default (example)- configuration and add tabs and fields for TVs to the form, just like you would do with any other MIGX-configuration.

            -------------------------------

            you can buy me a beer, if you like MIGX

            http://webcmsolutions.de/migx.html

            Thanks!
            • 32507
            • 142 Posts
            Chunk inside mml_content works both ways cached or uncached.

            mml_content content
            [[$test]] //works
            [[!$test]] //works


            But if that particular Chunk has chunk call in it - even uncached, it won't work > displays default lang.

            "test" Chunks content
            <p>Lorem Ipsum</p> //Works


            <p>Lorem Ipsum</p>
            [[!$YesImAProblem]] //Not working

              • 4172
              • 5,888 Posts
              Hmm...

              Here: http://www.webcmsolutions.de/en/nested-chunks.html

              I have in the content:

              <ul>
              [[!$chunk_level1]]
              </ul>


              in chunk_level1:

              <li>chunk_level1
              <ul>
              <li>[[!$chunk_level2]]</li>
              </ul>
              </li>


              in chunk_level2:

              chunk_level2: [[+pagetitle]]


              pagetitle is translated as it should
                -------------------------------

                you can buy me a beer, if you like MIGX

                http://webcmsolutions.de/migx.html

                Thanks!
                • 32507
                • 142 Posts
                Weird?

                Not working for me? Still displays default english lang on both.

                Just to make sure. Is this in mml_content field on both languages?
                <ul>
                [[!$chunk_level1]]
                </ul>
                  • 32507
                  • 142 Posts
                  I have this on Error log when saving resource. Maybe this got something to do with it?

                   [2015-03-04 12:21:05] (ERROR @ /assets/components/migx/connector.php) Could not load class: mmlFormtabsTemplate from mysql.mmlformtabstemplate.
                  [2015-03-04 12:21:05] (ERROR @ /assets/components/migx/connector.php) mmlFormtabsTemplate::load() is not a valid static method.
                  [2015-03-04 12:21:05] (ERROR @ /assets/components/migx/connector.php) Could not load class: mmlFormtabs from mysql.mmlformtabs.
                  [2015-03-04 12:21:05] (ERROR @ /assets/components/migx/connector.php) mmlFormtabs::load() is not a valid static method.
                  [2015-03-04 12:21:10] (ERROR @ /connectors/index.php) Error 42S22 executing statement: 
                  Array
                  (
                      [0] => 42S22
                      [1] => 1054
                      [2] => Unknown column 'name' in 'order clause'
                  )
                  
                    • 49995
                    • 5 Posts
                    Hello, I use Migxmultilang for my site with 3 languages, I follow all instructions and it's work successfully. But I don't know how to specify which language is the default. Does anyone know how to to make it.
                    Thanks
                      • 32507
                      • 142 Posts
                      Quote from: Bruno17 at Feb 20, 2015, 04:14 AM
                      the plugin does autodetect the users language and switches to that language by default.
                      https://github.com/Bruno17/migxmultilang/blob/master/core/components/migxmultilang/elements/plugins/mml_initculture.plugin.php#L78

                      Dunno if this helps?

                      Check also your culture_key setting