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
-
☆ 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.
2sottwell
No - still no effect.
Can it be server problem? Would phpinfo help in defining problem?
Try adding the setlocale at the beginning of the Ditto snippet code, that’s the way I made it work
.: COO - Commerce Guys - Community Driven Innovation :.
MODx est l'outil id
This was the first thin i tried - doesn’t work
Well, then, maybe you’re right about server config related issue... I am clueless
.: COO - Commerce Guys - Community Driven Innovation :.
MODx est l'outil id
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
Wait, it actually does work to have the setlocale string in manager/includes/config.inc.php
bringing MODx to the hispanians
-
☆ 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,
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.