用户名 密码 记住我 还未注册?

下载中心


下载中心

网站 : 推荐模块

Xlanguage 2.04 - Xoops Multilingual Content and Encoding Management



 描述:
xlanguage, eXtensible Xoops Multilingual Content and Encoding Management, is the easiest but most powerful XOOPS multilingual content management plugin


Applicable
---------
Any version of XOOPS and any version of any MODULE with any THEME


Easy to use
-----------
1 All you need do is to insert ONLY ONE LINE into common.php and install "xlanguage"
2 Do NOT need to modify/hack any other XOOPS core files or any module


Powerful enough to meet your requirements
-----------------------------------------
1 Could handle as many languages of content as you want
2 Could handle different charset of a selected language
3 Could handle multilingual content anywhere on your site, in a module, a php file, an html page or a theme's hardcoded content
4 Compatible with content cache
5 Automatic detection of user browser's language preference


User guide
----------
1 install "xlanguage" as a regular module

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 (from an available language list) and extended languages(of a selected basic language) from module admin page
引用:

base 1: name: english; description(optional): English; charset: iso-8859-1; code: en (or anyother like "xen", not a true language code, just the tag for indicating English content)
base 2: name: schinese; description(optional): Simplified Chinese; charset: gb2312; code: zh (or anyother like "sc", not a true language code, just the tag for indicating Chinese content)
extended lang of schinese 1: name: tchinese; description(optional): Traditional Chinese; charset: big5 code: zh-TW (the true language code of Traditional Chinese)
extended lang of schinese 2: name: utf8; description(optional): Simplified Chinese UTF-8; charset: utf-8 code: zh-CN (the true language code of Simplified Chinese)


4 make the block "langauge selection" visible

5 add multilingual content with according tags sepcified for each base language (in step 3) [Skip this step if you do not use multi-language content display but only use charset encoding]:
引用:

wrap content of each language with respective tag specified in step 3:
[langcode1]Content of the language1[/langcode1] [langcode2]Content of the language2[/langcode2] [langcode3]Content of the language3[/langcode3] ...
if two or more languages have same content, you do not need add them one by one but use delimiter "|":
[langcode1|langcode2]Content shared by language1&2[/langcode1|langcode2] [langcode3]Content of the language3[/langcode3] ...
a true example (suppose the lang_codes specified in step 3 are: English-en; French-fr; SimplifiedChiense-sc):
[en]My XOOPS[/en][fr]Moi XOOPS[/fr][sc]我的XOOPS[/sc]
OR:
[en|fr]This is my content in English and French[/en|fr][sc]中文内容[/sc]


6 automatic conversion of content from one charset(extended language) to another [Actually on action needed in this step]



xlangauge 2.0 description
-------------------------
An eXtensible Multi-language content and character encoding Management plugin
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.


Changelog
---------

xlanguage 2.04 changelog:
capable for different language cache, reported by suico @ xoops.org

xlanguage 2.03 changelog:
"input" parse improvement, reported by irmtfan @ xoops.org

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

xlanguage 2.01 bugfix for nonexisting language



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

Author
------
D.J. (phppp)
http://xoops.org.cn
http://xoopsforge.com

提交者: D.J.
发布者: D.J.
提交日期: Mon, 25-Jul-2005

版本: 2.04
下载次数: 4397
文件大小: 50.51 KB
镜像网站: 未指明

评分:   (0 个投票)

点评:  (0)

下载时间估计:
Modem(56k) : 8s
ISDN(64k) : 7s
DSL(768k) : 0.60s
LAN(10M) : 0.05s


 

打印模式描述

价格: 免费 | 支持平台:  | 许可: GNU General Public License (GPL) (v. 2.0) | 限制: 未指明

XOOPS China 用户点评
作第一个点评者.

其他文件: D.J.
XOOPS uploader 安全更新 (Mon, 01-Oct-2007)
Frameworks 1.20 for XOOPS (Mon, 27-Aug-2007)
XOOPS 2.0.17 简体中文版 (Mon, 27-Aug-2007)
phpMyadmin 2.10 (Thu, 12-Apr-2007)
Tag 模块 1.60 发布 (Thu, 04-Jan-2007)
dokuwiki 2.02 发布 (Thu, 04-Jan-2007)
CBB 3.08 论坛模块发布 (Wed, 03-Jan-2007)
Tag 模块 1.50 发布 (Fri, 01-Dec-2006)

Xlanguage 2.04 - Xoops Multilingual Content and Encoding Management © 版权所有 2012 XOOPS China

网友个人意见,不代表本站立场。对于发言内容,由发表者自负责任。
发表者 树状展开
ansir888
发表日期: 09月20日 10:53  更新: 09月20日 10:53
中级会员
注册日期: 07月20日
来自:
发表总数: 57
 评论: Xlanguage 2.04 - Xoops Multilingual Content and Encod...
Wholesale Replica Purses in China,we have most brand Cheap Purses louis vuitton,gucci purses,replica D&G,Fendi,MIUMIU,Coach handbags,jeans,Chloe,Chanel purse style with matching Balenciaga wallets.Cheap Replica Purses Great low We have the most of popular of cheap coach purses and cheap replica handbags the Cheap Replica Handbags for cheap with.
ansir
发表日期: 09月29日 08:53  更新: 09月29日 08:53
新进会员
注册日期: 09月20日
来自:
发表总数: 17
 评论: Xlanguage 2.04 - Xoops Multilingual Content and Encod...
North Face UK jackets are remarkable of the north face coats clearance superb quality and fantastic worth for money.north face coupons With this sort of amazing function, men and women around the cheap north face clothing world dreamed of owning these North Face Jackets in winter,north face clothing outlet to assure that they can have a comfotable trip outside,north face mens coats hey all can apparel fashionable in your street. earliest well-known in America, nowadays,north face mens jackets clearance has key in the global market. These classic North Face Jackets are north face Fleece available at our North Face Outlet online outlet store . Customers around the world can enjoy the North Face 3 In 1 Jacket nice price and good quality now.
eklide
发表日期: 10月21日 15:11  更新: 10月21日 15:11
初级会员
注册日期: 10月13日
来自:
发表总数: 27
 评论: Xlanguage 2.04 - Xoops Multilingual Content and Encod...
With abundant snow and arctic wind, The North Face Jackets is accepted for humans to anticipate about their warmth. In adjustment to access to fashion, humans thow abroad abundant dress, again angry into Mens North Face Apex Bionic Vest which attending like added stylish. For youngers, they adopt acquirement money on moncler jackets, because it advised added appearance than Mens North Face Down Jackets. But for olders, they adopt Mens North Face 3 In 1 Jackets,you can enjoy your way with family.
northface11
发表日期: 11月22日 09:06  更新: 11月22日 09:06
新进会员
注册日期: 11月22日
来自: sdf
发表总数: 2
 评论: Xlanguage 2.04 - Xoops Multilingual Content and Encod...
The elder brothers like clothes good praise a Note, this is I to the point of this article is, and we want to find not knitting, but north face outlet

knitting products. For those with super perseverance endurance and the time of the people can fully through insist to take exercise

knitting. But I don't have enough perseverance more without too much north face Borealis. So, I want to find out effective knitting

products of north face outlet, although this is necessary knitting method. But online so many knitting products, how should

choose? "What is knitting" knitting collocation is what north face "knitting for when to wear" release 2011 the most effective

knitting list, north face knitting products with the comprehensive data and various big portal nets of Internet users involved in the North Face Apex

selection, in the most authoritative vote to let you know what every month knitting effect is good, the best knitting