PEAK XOOPS - EMLH: language not changing in englishin japanese

EMLH: language not changing

  • You cannot open a new topic into this forum
  • Guests cannot post into this forum
Previous post - Next post | Parent - Children.1 .2 .3 | Posted on 2007/11/9 5:27 | Last modified
intrixius  ÆóÅùʼ   Posts: 6
Dear,

first of all, I want to say that I like the way you are supporting Xoops! More people should do this!

I just tried to use the EMLH 1.25 hack on my newly installed xoops 2.0.17.1 site.

I tested it on the SmartFAQ module, but it does not work: the language always stays the default language (dutch/nederlands).
I also tested on a module I made myself, with the same result.

mainfile.php is also edited as described in the readme file.

Here the config part in easiestml.php:

// CONFIGURATIONS BEGIN
define('EASIESTML_LANGS','nl,en');
define('EASIESTML_LANGIMAGES','images/nederlands.gif,images/english.gif');
define('EASIESTML_LANGNAMES','nederlands,english');
define('EASIESTML_ACCEPT_CHARSET_REGEXES',',');
define('EASIESTML_ACCEPT_LANGUAGE_REGEXES','/^nl/,/^en/');
define('EASIESTML_CHARSETS','ISO-8859-1,ISO-8859-1');
define('EASIESTML_IMAGETAG','mlimg');
define('EASIESTML_NEVERCROSSREGEX','/\<\/table\>/');
define('EASIESTML_COOKIELIFETIME',365*86400);
define('EASIESTML_DEFAULT_LANG',0);
// CONFIGURATIONS END
Votes:10 Average:9.00
Previous post - Next post | Parent - No child | Posted on 2007/11/10 7:05
GIJOE  ÀèǤ·³Áâ   Posts: 4110
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]' ) ;
Votes:10 Average:9.00
Previous post - Next post | Parent - Children.1 | Posted on 2007/11/11 22:26 | Last modified
intrixius  ÆóÅùʼ   Posts: 6
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
Votes:9 Average:10.00
Previous post - Next post | Parent - No child | Posted on 2007/11/13 6:17
GIJOE  ÀèǤ·³Áâ   Posts: 4110
If you never use cache, the best solution is sysutils from nobunobu.

http://www.kowa.org/modules/pukiwiki/359.html
Votes:11 Average:8.18
Previous post - Next post | Parent - No child | Posted on 2011/8/11 16:50 | Last modified
phasar  ¾åÅùʼ   Posts: 28
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 define('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
Votes:3 Average:6.67

  Advanced search


Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!