We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 50312
    • 34 Posts
    Thank you for your reply!
    Yes, these 3 lines in linguarequest.class.php is what I have found, too. Do you have any idea, WHY this error is thrown? My error log was about 1,7 TB after one week.. because it's thrown every time a site on the frontend is viewed.

    Of course disabling the debug system setting will shut it off - but what is the root of this behaviour? What causes this?
    • Quote from: aaantz at Dec 13, 2016, 03:03 PM

      Of course disabling the debug system setting will shut it off - but what is the root of this behaviour? What causes this?

      Enabling the debug setting causes writing debug informations to the error log, thats the simple root of this behaviour.
        • 50312
        • 34 Posts
        Oh..... wow. Now I got you. So even though the error log says "ERROR @ index.php" there is no "real" error happening - just debug informations, right?
          • 3749
          • 24,544 Posts
          Right. smiley
            Did I help you? Buy me a beer
            Get my Book: MODX:The Official Guide
            MODX info for everyone: http://bobsguides.com/modx.html
            My MODX Extras
            Bob's Guides is now hosted at A2 MODX Hosting
            • 16313
            • 71 Posts
            Hi guys!
            Is there way to add to lisbox TV different values depends of selected language in backend?
            Right now, I have no idea right, how to realize it.
            Thanks.
              • 3749
              • 24,544 Posts
              Quote from: krava at Apr 01, 2017, 04:55 PM
              Hi guys!
              Is there way to add to listbox TV different values depends of selected language in backend?
              Right now, I have no idea right, how to realize it.
              Thanks.

              This question doesn't belong here. Please start a new topic.
                Did I help you? Buy me a beer
                Get my Book: MODX:The Official Guide
                MODX info for everyone: http://bobsguides.com/modx.html
                My MODX Extras
                Bob's Guides is now hosted at A2 MODX Hosting
                • 16313
                • 71 Posts
                Quote from: BobRay at Apr 04, 2017, 02:21 AM

                This question doesn't belong here. Please start a new topic.
                Thank you for the answer Bob! But I'm using Lingua component in my project, therefore I decided to add my question in this thread.
                I've solve the issue via lexicon.
                Firstly I created lexicon entries for the necessary languages.
                Then I put following code to TV listbox:
                @EVAL $modx->lexicon->load('[[+cultureKey]]:site:default');return $modx->lexicon('Eyes_values',array(), '[[+cultureKey]]');

                And then I changed Lingua plugin 'OnResourceTVFormRender' event and put following code there after 350 row. The code replaces [[+cultureKey]] placeholder to the necessary language for the extra TV fields.
                $tv_obj = $modx->getObject('modTemplateVar', $tvId);
                $tv_obj_elem = '';
                if ($tv_obj) {
                    $tv_obj_elem = $tv_obj->get('elements');
                    $tv_obj_elem = str_replace('[[+cultureKey]]', $language['lang_code'], $tv_obj_elem);
                }
                // Hack TV's value because renderInput ignores empty value
                $tv->set('value', $content);
                $tv->set('elements', $tv_obj_elem);
                
                $inputForm = $tv->renderInput($resource, array(
                    'elements' => $tv_obj_elem, 
                    'value' => $content
                )); 


                Hope it helps somebody.
                  • 3749
                  • 24,544 Posts
                  Sorry, I was mistaken. Thanks for posting the info. smiley
                    Did I help you? Buy me a beer
                    Get my Book: MODX:The Official Guide
                    MODX info for everyone: http://bobsguides.com/modx.html
                    My MODX Extras
                    Bob's Guides is now hosted at A2 MODX Hosting
                    • 25046
                    • 194 Posts
                    We have Lingua implemented on our website and, for the most part, it works great. However, we are having some difficulties with it (likely self-induced), particularly in regards to the proper setup of TV's and the ability to switch properly between languages. Consequently, we are looking for a ModX expert who is familiar with this plugin and can help us sort out getting this plugin to work properly with our English-Spanish website. Thanks
                      • 23324
                      • 40 Posts
                      Hi all,

                      I know it has been a while since anyone posted something on this page.
                      Bu I really like the idea how Lingua handles translations on a page.

                      However there are a few issues i cant seem to resolve:

                      1. how can i make a FURL with the translated alias? for now it only does mydomain.com/page.html?lang=es

                      2. how can i use a search extra like SimpleSearch to search through the translated pages. Even when i'm on a different language page, it only search the main language input.

                      Maybe somebody found a solution for these points and like to share them?

                      Thank you