We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 44195
    • 293 Posts
    Quote from: sottwell at Mar 12, 2015, 02:27 PM
    Hm. I just installed Lingua 2.1.0beta4, and there is no plugin. huh

    Ok, uninstalled and removed everything, installed it again and now everything seems to be there.

    One very strange thing... I keep getting logged out from the Manager, but only when Lingua is installed.

    Hi Susan,

    I'm also getting logged out of the manager when using lingua.selector in the front end. For me it seems to happen only when Friendly URLs are enabled and I'm on the resource that is set to site_start.

    I submitted an issue here: https://github.com/goldsky/Lingua/issues/41

    Still playing with it!
      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
      I think I worked it out. I specified the fix in the Github issue. Fingers crossed it doesn't cause any other bugs wink
        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
        • 28042 ☆ A M B ☆
        • 24,524 Posts
        As far as I can tell, this only occurs on a subdir installation. I happened to me only on my localhost subdirectory installations, but not on the MODX Cloud. I suspect that this fix would break things in root installations.
          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
          I've also installed it as a root installation on my remote server. The fix doesn't seem to be causing any problems as yet(!)... although yes you're right it seemed to work without the fix as a root installation.
          Hopefully Goldsky can have a look at it soon.
            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
            Something else I've noticed when installed in a subdir...

            When switching from the default language to another in the manager, all the fields on the resource show up blank. (haven't tested with TVs yet)
            You can enter values and save and the front-end will work fine, but next time you come back all the fields are blank again.
            It seems to be just having trouble loading the values.

            Again, if it's a root installation, everything works fine.

              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
              I've managed to replicate both these issues on a root installation now too. Something else must be the cause. No idea why it's happening (or what I did differently). The front end path issue is an easy fix but not the blank fields in the manager.
              I can see the new data appearing in the lingua database tables...


              Edit: The blank fields seem to be a problem when using a language that has the same language code as another. For example zh-cn and zh-hk both have the language code of zh and it seemed to be putting the data into the other record.
              Rather than create a new language I just modified the one that comes default with the installation and working ok now.
              [ed. note: muzzstick last edited this post 11 years, 6 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
                • 50312
                • 34 Posts
                Anyone interested in special Snippets for Lingua? Talking about:

                • LinguaWayfinder
                • LinguaResources
                • LinguaArchives

                With these Snippets we should be able to get a behaviour similar to Babel - resources, which do not get translated, will not appear in Wayfinder generated Menus or on sites where resources get listed via getResources or getArchives. At the moment all sites will be shown, even if you don't want them to appear in a specific language.

                I talked to goldsky (the one who made Lingua) who is willing to do this - anyone interested in getting this done?

                regarding to this: https://github.com/goldsky/Lingua/issues/31
                and: https://github.com/goldsky/Lingua/issues/29
                  • 44195
                  • 293 Posts
                  Sounds great to me!
                    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
                    probably allready possible with pdoTools and joins or an extented pdoFetch - class, especially the addTVs - method.
                      -------------------------------

                      you can buy me a beer, if you like MIGX

                      http://webcmsolutions.de/migx.html

                      Thanks!
                      • 4172
                      • 5,888 Posts
                      Should be possible with this setup now:

                      https://github.com/Bruno17/linguaPdoTools
                        -------------------------------

                        you can buy me a beer, if you like MIGX

                        http://webcmsolutions.de/migx.html

                        Thanks!