PHP Simplified and interactive transcoding perfect support for mainland China, Hong Kong, Taiwan and Singapore _php Tutorials

Source: Internet
Author: User
Tags mediawiki
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 ....

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.