PEAK XOOPS - Re: The Easiest Multi-Language Hack (EMLH) 1.24 in englishin japanese

Re: The Easiest Multi-Language Hack (EMLH) 1.24

  • As this forum is only for commentation, you cannot open a new topic
  • Guests cannot post into this forum
Target Downloads
Subject The Easiest Multi-Language Hack (EMLH) 1.31
Summary == お手軽多言語ハック ==●特長気軽に利用できる多言語ハックです。ファイル1つをコピーして、mainfile.php に1行追加。たったそれだけで、動作します。obフィルターを利用して最終出力時にいくつかの変換処理を行うだけなので、XOOPSのブロックキャッシュやモジュ...
Previous post - Next post | Parent - Children.1 | Posted on 2006/4/4 1:54 | Last modified
chencho  二等兵   Posts: 3
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 :(
Votes:1 Average:10.00
Previous post - Next post | Parent - Children.1 | Posted on 2006/4/4 3:32
GIJOE  先任軍曹   Posts: 4110
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 [)
Votes:1 Average:10.00
Previous post - Next post | Parent - Children.1 | Posted on 2006/4/4 4:31
chencho  二等兵   Posts: 3
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
Votes:1 Average:10.00
Previous post - Next post | Parent - Children.1 | Posted on 2006/4/4 6:16
GIJOE  先任軍曹   Posts: 4110
just write [ mlimg]
Votes:1 Average:10.00
Previous post - Next post | Parent - No child | Posted on 2006/4/4 18:12 | Last modified
chencho  二等兵   Posts: 3
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
Votes:1 Average:10.00

  Advanced search


Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!