I took that php code from a forum, I didn't know php is not working on DMS.
But I've also tried the code qTranslate's developer recommends, and that you can see here: http://www.qianqin.d...5199a2&start=10
Ans that's what they tell you:
qTranslate uses language tags to identify different languages. They look like this:
. Usually, when you don’t do anything fancy, qTranslate will take care of them for you. But if you want to have multilingual text in your templates or extra fields, you will need to use them.
Quicktags are a shorter form of language tags and look like this:
So I've tried different options but none is working. It seems the page is recognizing the longest tag (it shows the text but not the tag) but not the short tag (It shows both the tag and the text), and I've tried it this way:
[:en-US]English Title with -us
[:es-ES]Spanish title with -es
[:en]English Title withOUT -us
[:es]Spanish title withOUT -es
<!--:en-->text with en<!--:-->
<!--:es-->texto con es<!--:-->
<!--:en-US-->text with en-US<!--:-->
<!--:es-ES-->texto con es-ES<!--:-->
but it keeps on showing both english and spanish text. Any idea why is this happening? Many thanks