PEAK XOOPS - Re: emlh: open site in the first visit in a specific language? in englishin japanese

Re: emlh: open site in the first visit in a specific language?

List posts in the topic

question Re: emlh: open site in the first visit in a specific language?

msg# 1.1.1
depth:
2
Previous post - Next post | Parent - Children.1 | Posted on 2006/9/5 18:41
irmtfan  三等軍曹   Posts: 96
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 in englishin japanese. 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.
Votes:2 Average:10.00

Posts tree

  Advanced search


Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!