I implemented
[Tutorial] Multilingual Websites with MODx (improved version):
http://modxcms.com/forums/index.php/topic,29597.msg179898.html
My language php files look like that:
<?php
// servicesList chunk
$__lang["Services"] = "Serviços";
$__lang["Projects_with"] = "Projetos com ";
// set placeholders
foreach ($__lang as $key => $value) {
$modx->setPlaceholder("@".$key,$value);
}
?>
Then I use the placeholders like that: [+@Services+] or [+@Projects_with+].
THE PROBLEM: If I use the placeholders in a cacheable environment like inside a snippet using [[Snippet ...]] call or inside a page defined as "Cacheable" in the "Settings", the placeholders are empty!!!!!!! Sometimes they aren’t but the 2d time I load the page they are....
For the moment I disabled all the Cache functionalities but it’s not really clean.
Anyway around that???
Thank you for helping me.