语言选择
English 简体中文 繁体中文 UTF-8
系统导航
登录
帐号:

密码:


忘密码了

赶紧注册

正在浏览:   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
引文:

1. What is the difference between marcan's Multilanguages and Your Xlanguage?

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.

引文:

2.how can I use/configure xlanuage to view bangla fonts? (In admin>xlanguage>add extended language what should I put in "charset", "code"?)


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 就好极了, 我会一定会再试用它!

引文:

the multilingual content parse technique based on language tags does not work as expected in some conditions.


你是否指 " 许 , 盖 , 功 " 还是其他问题??

8/18 18:59:06
应用扩展 工具箱



 回顶部   前一个主题   下一个主题

回复 [无发表权] 请登录或者注册



发表回复
账号用户名   密码   登录
*
* = 必填项


可以查看帖子.
不可发帖.
可以回复.
不可编辑自己的帖子.
不可删除自己的帖子.
不可发起投票调查.
不可在投票调查中投票.
不可上传附件.
不可不经审核直接发帖.

[高级搜索]