We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 14653
    • 24 Posts
    Hi, Paul.

    In version 1.2.0-rc3 is a problem with output encoding russian-utf8.
    Modules - YAMS - Language Settings - "Select Language Text" and "Name for langId".
    In version 1.1.9 was not the problem.

    Best regards, Anton
      Sys. info:
      MODx version: MODx Revolution 2.x
      OS: Archlinux roller
      • 22851
      • 805 Posts
      Hi Jonimant. Thanks for letting me know. I’ll make sure that it’s fixed for the final release.
        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.
        • 9995
        • 1,613 Posts
        Just installed 1.0.4 -> yams 1.2 rc3 but when i want to add a language Nederland-utf8 it does nothing, when choose Nederlands then it does add the language. Probably the same bug as above?
          Evolution user, I like the back-end speed and simplicity smiley
          • 32695
          • 2 Posts
          I have possibly found a new bug, some background first:

          I am running modx 1.0.4 with yams 1.2.0 RC3.
          My Website has 2 languages, English as default and French.
          I have a number of pages in the site that are ’weblink’ containets and the links usually point to their first child.

          To implement the weblinks, I have set the Resource Type of the page to ’Weblink’ and
          added the id of the document they redirect to ( my about-us/overview page ) in both the english content and french content areas.

          When I use wayfinder, I am generating urls using yams_docr. In the english section, when I click the About us link, I am directed perfectly to about-us/overview. But When I am in french section, they do not, the url is empty, and I am directed back to "/" .

          After some looking, I found some code in yams.class.inc.php, around line 3705 in private function GetDocResolvedURL,

          It seemed to be:
          
          if ( in_array( $newDocId, $seenDocIds ) )
          {
               $expandArray[ $langId ] = '';
          				
          }
          else
          {
              array_push( $seenDocIds, $newDocId );
              $expandArray[ $langId ] =
                      $this->GetDocResolvedURL(
                              $newDocId
                              , $mode
                              , $seenDocIds
                              );
          }
          


          The effect is, it generates the redirect for english, but when it parses french, it just sets the url to ’’, ( to prevent recursion ), I have made a change to fix this, so the code would be more like:

          if ( !in_array( $newDocId, $seenDocIds ) )  array_push( $seenDocIds, $newDocId );
          
              $expandArray[ $langId ] =
                      $this->GetDocResolvedURL(
                              $newDocId
                              , $mode
                              , $seenDocIds
                              );
          


          This seems to solve my problem, I think you just want to preserve the $seenDocIds array, but it every case, you want to always resolve the url for all langagues. There is another spot in this function just below this where a similar fix could be applied as well. Anyone have any thoughts on this?
            • 8677
            • 50 Posts
            Can YAMS work with Modx Revolution?

            When I install YAMS - my site write error:

            Fatal error: Call to undefined method modX::recordCount() in /home/virtwww/.../http/assets/modules/yams/class/yams.class.inc.php on line 5554

            And I don’t understand this :


            3. Within MODx under Elements > Manage Elements > Plugins create a new plugin:
            ....
            4. Within MODx under Elements > Manage Elements > Snippets create a new snippet:
            ....
            5. Within MODx under Modules>Manage Modules create a new module:
            ....

            I have done 3 and 4 , but I don’t understand 5 : there is no "Modules>Manage Modules" in Modx Revolution.
            • No, YAMS is for Evo only.

              For Revo, there’s this http://modxcms.com/forums/index.php/topic,67498.0
                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
                • 8677
                • 50 Posts
                Quote from: sottwell at Aug 07, 2011, 08:37 PM

                No, YAMS is for Evo only.

                For Revo, there’s this http://modxcms.com/forums/index.php/topic,67498.0

                Thank you! =)