We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 1978
    • 131 Posts
    I’ve setup russian settings in manager and everything is translated but when I use Ditto with this call
    [[Ditto?&parents=`8`&display=`all` &dateFormat=`%d %B - %A` &tpl=`DiaryTpl`]]

    and place [+date+] in tpl it is not displayed correctrly - it sholud look like
    12 Декабря - Среда
    but looks like
    12 December - Wednesday

    manager/includes/lang/russian.inc.php has setlocale (LC_ALL, ’ru_RU’);

    modx version 0.9.6.1
      Как русифировать Modx 0.9.6.1(QuickEdit, TinyMCE)
      QuickEdit под win-1251 без mb_-функций
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      You might want to put that in the manager/includes/config.inc.php file; it may not be loading the Russian language file.

      That particular language file is used for the Manager itself, and not for any of the front-end snippets. I believe Ditto has its own language files in assets/snippets/ditto/lang. Maybe you should put it there instead.
        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
        • 1978
        • 131 Posts
        2sottwell

        No - still no effect.

        Can it be server problem? Would phpinfo help in defining problem?
          Как русифировать Modx 0.9.6.1(QuickEdit, TinyMCE)
          QuickEdit под win-1251 без mb_-функций
          • 6726
          • 7,075 Posts
          Try adding the setlocale at the beginning of the Ditto snippet code, that’s the way I made it work smiley
            .: COO - Commerce Guys - Community Driven Innovation :.


            MODx est l'outil id
            • 1978
            • 131 Posts
            This was the first thin i tried - doesn’t work
              Как русифировать Modx 0.9.6.1(QuickEdit, TinyMCE)
              QuickEdit под win-1251 без mb_-функций
              • 6726
              • 7,075 Posts
              Well, then, maybe you’re right about server config related issue... I am clueless undecided
                .: COO - Commerce Guys - Community Driven Innovation :.


                MODx est l'outil id
                • 5576
                • 31 Posts
                I’m having the same problem with Spanish, the date doesn’t translate.
                I’m using an Ubuntu server and already know that I have to add .utf8 to the locale name and I’ve confirmed that the locale does work on the server.
                Is there any news about this problem? Any hints?
                  bringing MODx to the hispanians
                  • 5576
                  • 31 Posts
                  Wait, it actually does work to have the setlocale string in manager/includes/config.inc.php
                    bringing MODx to the hispanians
                    • 24731 ☆ A M B ☆
                    • 211 Posts
                    I was having a similar issue, setting the locate even in the config file was not working. I then realized it was a cache issue. I cleared cache (from the modx manager) and I was able to see the change. I then removed the code from the config file and added it on top of the language file within ditto... uploaded, clear cache and it worked.

                    Cheers,
                      • 10189
                      • 109 Posts
                      But what about multilingual sites? It seems a bit clumsy to hack your config file just to get Ditto to output the right locale for month names. I’m struggling with getting Ditto to output swedish month names, but since this particular site I’m working on also comes in english, hacking my config won’t cut it.