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

    I’ve read many posts and didn’t find any solution yet on my following issue. I dare to consider it crusial also.

    I am making a russian site where I want to use dates in formats that display weekdays and months as a words (like ’Sunday’, ’April’ etc.)
    Can someone tell me how I actually display these dates in Russian (or other languages)? Is this the question of modx or server properties?
      http://modx.ru - российская поддержка MODx
      http://newscup.ru - экспериментальный проект
      http://yentsun.com - персональный сайт
      • 33175
      • 711 Posts
      Hi !

      You can use this snippet to format date : FormatDate.
      You need to configure Modx. Example, for french, you put this line at the top of your language file :
      setlocale (LC_ALL, 'fr_FR');

      You can read Add SetLocale to language files for more information.
        Sorry for my english. I'm french... My dictionary is near me, but it's only a dictionary !
        • 33114
        • 518 Posts
        thanks for the reply but this ain’t working sad still gettin English values...
          http://modx.ru - российская поддержка MODx
          http://newscup.ru - экспериментальный проект
          http://yentsun.com - персональный сайт
          • 33175
          • 711 Posts
          Did you set local value to russian or other language ? maybe your server is configured only with english...

          Another solution is to replace english words by other language words with a plugin. See WordsReplace
            Sorry for my english. I'm french... My dictionary is near me, but it's only a dictionary !
            • 33114
            • 518 Posts
            Wow thanks veru much for the snippet! Works like a charm!™ smiley
              http://modx.ru - российская поддержка MODx
              http://newscup.ru - экспериментальный проект
              http://yentsun.com - персональный сайт
              • 33175
              • 711 Posts
              Thanks grin
                Sorry for my english. I'm french... My dictionary is near me, but it's only a dictionary !