语言选择
English 简体中文 繁体中文 UTF-8
系统导航
本站新闻 : 多语言内容管理 xlanguage 2.02
作者 D.J. 于 2005年06月21日 23:10:00 (1075 次阅读) 该作者发布的其他新闻


xlanguage 2.02 bugfix for XSS vulnerability
Thanks domifara @ dev.xoops.org



xlangauge 2.0
An eXtensible Multi-language content and character encoding Management Module+Hack
Multilanguage management handles displaying contents of different languages, like English, French and Chinese
Character encoding management handles contents of different encoding sets for one language, like GB2312 (Chinese Simplified) and BIG5 (Chinese Traditional) for Chinese.


What xlanguage CAN do:
1 displaying content of specified language based on user's dynamic choice
2 converting content from one character encoding set to another


What xlanguage canNOT do:
1 xlanguage does NOT have the ability of translating content from one language to another one. You have to input contents of various languages by yourself
2 xlanguage does NOT work without adding one line to XOOPS/include/common.php (see guide below)
3 xlanguage does NOT have the ability of converting content from one character encoding to another if none of "iconv", "mb_string" or "xconv" is available.


Features:
1 auto-detection of visitor's language on his first visitor
2 memorizing users' langauge preferences
3 switching contents of different languges/encoding sets on-fly
4 supporting M-S-M mode for character encoding handler

Note:
M-S-M: Multiple encoding input, Single encoding storage, Multiple encoding output.
M-S-M allows one site to fit various users with different language character encoding usages. For example, a site having xlanguage implemented porperly allows users to input content either with GB2312, with BIG5 or UTF-8 encoding and to store the content into DB with specified encoding, for say GB2312, and to display the content either with GB2312, with BIG5 or with UTF-8 encoding.

User guide:
1 upload "xlanguage" folder to XOOPS/modules/
2 insert one line
include_once XOOPS_ROOT_PATH.'/modules/xlanguage/api.php';
into XOOPS/include/common.php
RIGHT BEFORE
// #################### Include site-wide lang file ##################
if ( file_exists(XOOPS_ROOT_PATH."/language/".$xoopsConfig['language']."/global.php") ) {
include_once XOOPS_ROOT_PATH."/language/".$xoopsConfig['language']."/global.php";
} else {
include_once XOOPS_ROOT_PATH."/language/english/global.php";
}
3 add basic langauges and extended languages from xlanguage's module preference page
4 make the block "langauge selection" visible through system=>block
5 if you use the encoding conversion management only, for instance, switching Schinese and Tchinese, congratulations, you have made it!
6 if you use multi-language contents management, adding content with corresponding tags to your content management modules:
[languagecode]Content of the language[/languagecode]
languagecode should be the "language code" of each ___basic___ language configured in module admin area, can be for one single language or multiple languages, example:
[english]This is my content in English[/english][french]*&^%(sorry, I do not know how to type it -- D.J.)[/french][schinese]ÖÐÎÄÄÚÈÝ[/schinese]
OR:
[english|french]This is my content in English or in French[/english|french][schinese]ÖÐÎÄÄÚÈÝ[/schinese]
You should not use the tag of "schinese" and "tchinese" together since the content will be converted from one to the other automatically using iconv, mbsting or xconv according to your system configure.
7 xconv module is suggested to Chinese users (module available at http://xoops.org.cn)


Credits:
1 Adi Chiributa - [email protected], language handler
2 wjue - http://www.wjue.org, ziling BIG5-GB2312 conversion
3 GIJOE - http://www.peak.ne.jp, easiest multilanguage hack

评分: 0.00 (0 票) - 评分 -
上一篇 - 下一篇 打印模式 转发给朋友 生成该文件的PDF


其他文章
2006年01月26日 11:44:44 - Xoops 简体中文 2.26
2006年01月25日 09:20:00 - XPress 2.0 (WordPress for XOOPS)发布!
2006年01月24日 10:51:05 - xhelp中文语言包及hack
2006年01月18日 20:44:54 - xoops 2.24 文明猪-李正城 改装版
2006年01月17日 00:52:31 - 高薪招聘XOOPS开发员

网友个人意见,不代表本站立场。有问题请与作者联系。

 xlanguage 2.0 translated to brazilian portuguese

发表于: 2005年06月22日 18:38  更新: 2005年06月22日 18:41

Valker

新进会员
注册于: 2005年05月24日
来自:
发表数: 1
Portuguese speakers can read Utilize vários idiomas com o módulo xLanguage 2.0 at http://xoopsbr.org .

Great module! I'll testing this, soon.

 Re: xlanguage 2.0 translated to brazilian portuguese

发表于: 2005年06月22日 19:42  更新: 2005年06月22日 19:42

D.J.

网站管理员
注册于: 2004年06月25日
来自:
发表数: 3252
Thank you Valker!
So far I published the xlanguage 2.0 only at XOOPS CHINA for some test.
If you have any bugs or suggestions, plz let me know so that it could be made ready to publish at xoops.org ASAP

BTW: congratulations to xoopsbr

 紧急修正Re: 多语言内容管理 xlanguage 2.02

发表于: 2005年06月30日 22:00  更新: 2005年06月30日 22:00

XoopsChina

网站管理员
注册于: 2004年06月24日
来自:
发表数: 575

安全问题修正,请尽快更新到xlang 2.02
xlanguage 2.02 bugfix for XSS vulnerability
Thanks domifara @ dev.xoops.org