Hi!
First, congratulations for this fantastic hack
I'm sorry, but my first posts is to ask for help :(
I upload the file and mod main.php
I configurated easiestml.php with [en] (english) and [es] (spanish) tags.
Now i post a new with [es]Bienvenidos[/es][en]Welcome[/en], and add:
<a href="?easiestml_lang=xlang:en">Ingl駸</a> <a href="?easiestml_lang=xlang:es">Espa l</a>
But ony show text in english language :(
Can someone tell me whats wrong??
And when i press to whatever link, left blocks dissapear :(
Check configuration part of easiestml.php
eg)
define('EASIESTML_LANGS','en,es');
// list the language images separated with comma
define('EASIESTML_LANGIMAGES','images/english.gif,images/spanish.gif');
// list the language names separated with comma
define('EASIESTML_LANGNAMES','english,spanish');
// list language - accept_chaset patterns (perl regex) separated with comma
define('EASIESTML_ACCEPT_CHARSET_REGEXES',',');
// list language - accept_language patterns (perl regex) separated with comma
define('EASIESTML_ACCEPT_LANGUAGE_REGEXES','/^en/,/^es/');
// charset in Content-Type separated with comma (only for fastestcache)
define('EASIESTML_CHARSETS','ISO-8859-1,ISO-8859-1');
With above setting, the link will be
"?easiestml_lang=en"
or
"?easiestml_lang=es"
Anyway, use [ mlimg] tag instead. (remove space after [)
Thanks for the support.
Can you give an example to use mlimg tag?
The blocks insuue are problems with the blocks config, not with your hack
You're great man!
But, where i need to put images flags? Only show the word "flagflag", and i assume it's becasuse not found the images.
And how can i set "spanish" as default; it sohow me the text in english is i dont select nothing.
------------------------------
Forget my questions.
Answer number 1: put engish and spansih.gif (or your images defined at easiestml.php under imges directory (images folder from xoops)
Answer number 2: Put before spansih than english at easiestml.php.
Thanks again