正在浏览:
1 名游客
xlanguage 和 multilanguage 的区别 |
||
---|---|---|
网站管理员
注册日期:
2004/6/25 19:16 所属群组:
网站管理员 注册会员 Dev+Hack 帖子:
2934
等级: 42; EXP: 69
HP : 1042 / 1042 MP : 978 / 4260 |
保存在不同地方有关xlanguage的一些讨论
等有时间的时候好好整理一下文档 ====================================== 之一: 1 xlanguage比multilanguage要简单,功能多 A. multilanguage要对xoops核心和各个模块作hack。之所以不需要最终用户来做,是因为他已经把这些hack替你做好了。一旦某个module或是xoops升级了,它需要不断去修改那些module的文件;xlanguage不需要hack, 因为不存在xoops特别是各个模块省级带来的麻烦,而且xlanguage可以处理不同地方的语言问题,即使html文件里的 B. multilanguage只做不同语种的选择显示;xlanguage除了做语种选择显示之外,也处理内码的转换,比如中文的 big5-utf8-gb2312 2 在smartyfactory所看到的15种语言只是搜集一下各个语言包而已,跟multilanguage没有关系;也可以把那些语言包拿来供xlanguage用,理论上可以实现无穷多语言的转换显示 ======================================== 之二: @animas 引文:
scope: xlanguage is both for multilingual content parsing and for multi-encoding conversion in one language. While marcan's multilanguage is mainly for the first one. Have not checked marcan's ML but I remember ML also handles some stuff like URLs for different language contents. The followings will be on the first one, multilingual content parsing only. method: macan uses a position-specified method, which means you need specify in which part of a module the contents need parsed, like news article's body, a module's name, and XOOPS core or module scripts need modify accordingly. xlanguage use ob functions and it is capable for content parsing anywhere on your site, even in you theme, without modifying your XOOPS source code (More accurate, you need add one line to common.php to start the ob stuff). Thanks GIJOE's work. I had been spending months' experiments on the ob method but not make it feasible before GIJOE's easiest-ml came out. performance: since marcan's ML is position specified, it should be more efficient and less mis-parsing, at least at a theoratical stage. xlanguage needs no source code modification so that it is suitable for lazy guys Not an important aspect but useful for some situations: if you wanna use multilingual contents in your theme, you then have to use xlangauge. Comments for both: the multilingual content parse technique based on language tags does not work as expected in some conditions. Before use on a production site, you need test as much as you can. 引文:
Step 1, suppose you have made bangla language package for you XOOPS in XOOPS/language/bangla/ Step 2, add "base" languages (not extended): name: english; description(optional): English; charset: iso-8859-1; code: en (or anyother like "xen") name: bangla; description(optional): Bangla; charset: (iso-8859-1? inquire of a bangla expert); code: ba (or anyother like "bg") Step 3: make "language selection" block visible ================================================
7/22 9:53:20
|
|
_________________
XOOPS 技术问题请在论坛提问 -- |自由|开源|共享| |
||
工具箱 |
Re: xlanguage 和 multilanguage 的区别 |
||
---|---|---|
高级会员
注册日期:
2004/10/20 14:50 来自 h2o
所属群组:
注册会员 帖子:
126
等级: 10; EXP: 26
HP : 0 / 231 MP : 42 / 730 |
GOOOOOD! 不久前看过 Easiest ML hack, 心想能溶入 xlanguage 就好极了, 我会一定会再试用它!
引文:
你是否指 " 许 , 盖 , 功 " 还是其他问题??
8/18 18:59:06
|
|
工具箱 |
您可以查看帖子.
您不可发帖.
您可以回复.
您不可编辑自己的帖子.
您不可删除自己的帖子.
您不可发起投票调查.
您不可在投票调查中投票.
您不可上传附件.
您不可不经审核直接发帖.