Example: (Simplified > Complex) bakery > Bread (ZH-TW) Laos > Old Laos (ZH-HK) China Life > Chinese Longevity (zh-hk) ronaldo > lang (zh-hk) (Complex > Simple) memory > Ram (ZH-CN) Fabric > Bush (ZH-CN) Information Library > database (ZH-CN) how to use
1. Download MediaWiki: (http://www.jb51.net/codes/25190.html), unzip in path such as:/var/lib/mediawiki-1.13.3
2. Download Mediawiki-zhconverter (the above file is already integrated), unzip and copy the mediawiki-zhconverter.inc.php into your PHP program
3. Set the MediaWiki path in your program, and reference Mediawiki-zhconverter
Define ("Mediawiki_path", "/var/lib/mediawiki-1.14.0/"); require_once "mediawiki-zhconverter.inc.php"; 4. Make a conversion
/* Mediawikizhconverter::convert ("word", "conversion target"); The optional values for the conversion target are zh, ZH-CN, ZH-TW, ZH-SG, Zh-hk*/echo mediawikizhconverter::convert ("Bread", "zh-tw"); Echo Mediawikizhconverter:: Convert ("Memory", "ZH-CN"), Echo Mediawikizhconverter::convert ("Ronaldo", "zh-hk"); 5. Complete
Supported versions
The following MediaWiki versions have been confirmed to be compatible with this program (Http://download.wikimedia.org/mediawiki):
php4:1.6.10, 1.6.11
php5:1.12.0, 1.13.3
If it is not necessary, please use the PHP5 version.
Package Download Address http://xiazai.jb51.nethttp://www.jb51.net/codes/25190.html
http://www.bkjia.com/PHPjc/321514.html www.bkjia.com true http://www.bkjia.com/PHPjc/321514.html techarticle Example: (Jianfan) bread Bun (ZH-TW) Lao Laos (ZH-HK) China Life Longevity (ZH-HK) Ronaldoran take (ZH-HK) memory Ram (ZH-CN) George W. Bush (ZH-CN) info ....