PEAK XOOPS - Separating input forms by each languages in englishin japanese

Archive | RSS |
XOOPS
XOOPS : Separating input forms by each languages
Poster : GIJOE on 2008-06-20 11:49:48 (7958 reads)

in englishin japanese
Novices cannot input language tags skillfully.


[en]English[/en][ja]Japanese[/ja]


EMLH 1.30 supports such users to be able to input multilanguage strings easily.
http://xoops.peak.ne.jp/md/mydownloads/singlefile.php?lid=50&cid=2

eg) with pico module, edit the template of *_main_content_form.html

<input type="text" name="subject" id="subject" size="80" maxlength="255" value="<{$content.subject}>" />

will be divided two <input>s like this:

English: 
<input type="text" name="subject[en]" id="subject[en]" size="80" maxlength="255" value="<{$content.subject|easiestml:"en"}>" />
Japanese:
<input type="text" name="subject[ja]" id="subject[ja]" size="80" maxlength="255" value="<{$content.subject|easiestml:"ja"}>" />


Note the filter easiestml|"(langtag)" in value.

Next time, I'll release a preload version of this feature for XCL2.1 with cubeUtils.

0 comments

Printer friendly page Send this story to a friend

Comments list

Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!