hello again, 1st thanks for your quick answers!
I don’t want to use YAMS and don’t want to use other multilingual solutions
i’m doing my own one because I want more control
I’m declaring global variable "Language" -> $GLOBALS[’language’] that could value "es" or "en"
then along all my template I use this function
[!playlanguage? $en=´hello´ &es=´hola´!]
playlanguage function:
$result = $en;
if( $GLOBALS["Language"] == "es" ){
$result= $es;
}
return $result;
it’s very easy concept! it’s not advanced programming technique
but along template I have to make multiple calls, someones inside other snippets and chunks nested
but it’s impossible because when you combine some calls it’s doing strange results, I have
some parts of page in spanish and others (that are cached) in english!
I have tried to combine different ! and [ but cannot solve it
and my question ... why to combine calls???? it’s impossible to fully disable cache and work with global vars?
thanks in advance
regards