It depends on the order in configuration of EMLH.
eg) fr -> en
// list the language tags separated with comma
define('EASIESTML_LANGS','fr,en');
// list the language images separated with comma
define('EASIESTML_LANGIMAGES','images/french.gif,images/english.gif');
// list the language names separated with comma
define('EASIESTML_LANGNAMES','french,english');
// 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','/^fr/,/^en/');
// charset in Content-Type separated with comma (only for fastestcache)
define('EASIESTML_CHARSETS','ISO-8859-1,ISO8859-1');
Or modify the pattern of EASIESTML_ACCEPT_CHARSET_REGEXES / EASIESTML_ACCEPT_LANGUAGE_REGEXES.
sorry but i dont understand it.
<?php
/*** THE EASIEST MULTILANGUAGE HACK by GIJOE ***/
// CONFIGURATIONS BEGIN
// list the language tags separated with comma
//define('EASIESTML_LANGS','xlang:en,xlang:ja'); // This is a sample of long pattern against tag misunderstanding
define('EASIESTML_LANGS','en,fa'); // [en]english[/en] [ja]japananese[/ja] common
// list the language images separated with comma
define('EASIESTML_LANGIMAGES','modules/xlanguage/images/english.gif,modules/xlanguage/images/iran.gif');
// list the language names separated with comma
define('EASIESTML_LANGNAMES','english,persian');
// list language - accept_chaset patterns (perl regex) separated with comma
define('EASIESTML_ACCEPT_CHARSET_REGEXES',',/shift_jis/i');
// list language - accept_language patterns (perl regex) separated with comma
define('EASIESTML_ACCEPT_LANGUAGE_REGEXES','/^en/,/^fa/');
// charset in Content-Type separated with comma (only for fastestcache)
define('EASIESTML_CHARSETS','utf-8,utf-8');
// tag name for language image (default . 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);
i put this but still my site open in persian not english.
1st, remove cookie on your site.
2nd, modify ACCEPT_*_REGEXES patterns.
Quote:
1st, remove cookie on your site.
you mean about fch? i disable it but still it open in persian
Quote:
2nd, modify ACCEPT_*_REGEXES patterns.
modify it to show what?
i dont know what change is needed for these 2 lines.
Can hit anyway in 1st option ...
// 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','/.*/,');
Learn regular expression in the other site