-
- 384 Posts
Hi guys
I'm setting up a Blog for a client (using Articles). Client's site has 3 contexts in 3 different languages and here's my problem on any non-english contexts:
Archives:
Dates of the month are by default Eng. How can I manually translate ?
Date Published:
Dates are in Eng format (Day, Month, Year). I'd need these to be Month, Date, Year
Comments:
Commenting function is in English etc
Is there a way (built-in) to translate the blog or will I need to contract this out?
How 'future proof' will my translated Blogs be if I upgrade Articles in the future
Thanks
...
I set up different instances of Articles on each context and I had no problems with the language. I had an english and german version and the proper language was being used. Did you ever get it solved?
Benjamin Davis: American web designer living in Munich, Germany and a MODX Ambassador. I am also co-founder of SEDA.digital, a MODX Agency.
-
- 165 Posts
I have a multilanguage site where I've managed to get Articles to display the correct language by adding language files in core/components/articles/lexicon (awesome!). However, the one thing that isn't translated properly is the name of the months in the archive (March 2013 etc.). The English page displays the months in Swedish, which is my default context language. It should really display the months using the English context of course.
Any ideas how to change the language of the month names ([[+date]]) displayed in the archive ([[+archives]])?
Sounds like there needs to be a way to switch the locale dynamically for the strftime and date functions.
http://php.net/manual/en/function.setlocale.php
-
- 24,544 Posts
I wonder if a snippet at the top of the page with something like this would do the trick:
$modx->setOption('locale', 'es_ES.UTF-8');
setLocale('LC_TIME', 'es_es');