Separating input forms by each languages

Date 2008-06-20 11:49:48 | Category: XOOPS

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.





You can read more news at PEAK XOOPS.
http://xoops.peak.ne.jp

The URL for this story is:
http://xoops.peak.ne.jp/md/news/index.php?page=article&storyid=456