hi intrixius.
EMLH never changes $xoopsConfig['language'].
This means that you can use block/module caches fully.
If you want to change the language constants with EMLH, edit language files like
define( '_USER' , '[fr]Utilisateur[/fr][en]User[/en]' ) ;
Gijoe,
thanks for the reply!
I tought that your sollution was not easy, so I looked for a sollution to use the normal way (with seperate directories for each language)
Doing a google search on the $xoopsConfig['language'], I found a thread on your site
here.
This does what I want...
I'm a happy man now!
Thanks,
Intrixius
If you never use cache, the best solution is sysutils from nobunobu.
http://www.kowa.org/modules/pukiwiki/359.html
I'm having the same problem Joe
I'm trying to run English and Russian. I translated all the modules and put the files in subdir modulename\languages\russian
I also translated xoops core files in root/languages/russian
easiestml.php config is as follows
Quote:
//define('EASIESTML_LANGS','xlang:en,xlang:ja'); // This is a sample of long pattern against tag misunderstanding englishdefine('EASIESTML_LANGS','en,ru'); // [en]english[/en] [ja]japananese[/ja] common
// list the language images separated with comma
define('EASIESTML_LANGIMAGES','images/EN.gif,images/RU.gif');
// list the language names separated with comma (these will be alt of <img>)
define('EASIESTML_LANGNAMES','english,russian');
// 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/,/^ru/');
// charset in Content-Type separated with comma (only for fastestcache)
define('EASIESTML_CHARSETS','UTF8,UTF8');
// tag name for language image (default [ mlimg ]. don't include specialchars)
define('EASIESTML_IMAGETAG','mlimg');
// make regular expression which disallows language tags to cross it
define('EASIESTML_NEVERCROSSREGEX','/\<\/table\>/');
// the life time of language selection stored in cookie
define('EASIESTML_COOKIELIFETIME',365*86400);
// default language
define('EASIESTML_DEFAULT_LANG',0);
// post merger eg) <input name="subject[en]"> and <input name="subject[ja]">
define('EASIESTML_USEPOSTMERGER',0);
I created a block that contains [ center ][ mlimg ][ /center ]
The flag appear ok, but clicking on them doesn't do anything. The site language doesn't change. It just stays English
HELP Please!!!!
TIA
Frank