http://rtfm.modx.com/display/revolution20/Internationalization
Quote from: sottwell at Sep 06, 2010, 12:40 PM
http://rtfm.modx.com/display/revolution20/Internationalization
Thanks for the link. I had seen that page before and somehow thought it was only talking about applying i18n to small bits of text (site titles, navigation, footers, etc.), maybe because when the PHP developer in me reads the word "string" that’s what I think of, as opposed to larger "blobs" of info.
So to be clear, would I be correct to understand that even a long article text (the page’s "Resource Content" in modX 1.x) can be handled using the lexicon functionality described on the page you linked to?
Hey, thanks a lot for this, what a great solution! I got everything working properly, but I just noticed that if I go to a page that doesn’t exist in another language and then switch the language, I will end up in the container page (e.g. Finnish/English, depending on the language) instead of the actual home page of that language. Any ideas how to fix this? I’d really appreciate any advice.
Quote from: arto at Oct 12, 2010, 07:22 AM
Hey, thanks a lot for this, what a great solution! I got everything working properly, but I just noticed that if I go to a page that doesn’t exist in another language and then switch the language, I will end up in the container page (e.g. Finnish/English, depending on the language) instead of the actual home page of that language. Any ideas how to fix this? I’d really appreciate any advice.
I think the easiest solution is to either make the language container itself the homepage or otherwise use a simple snippet to redirect to your homepage.
For example I did this recently and had a template for language container, within that template was simply a call to FirstChildredirect http://modxcms.com/extras/package/151

Hi everybody,
I’m trying to use a different css depending on the language and use something like [current-language]-style.css but seems that I can’t do that. I might doing the wrong thing though. Do you know how I can get the 2 letters country code?
Thank you so much.
$_COOKIE['LanguageID'] = $up;
"excludeDocs"=>$_COOKIE['LanguageID']