PHP Chinese simplified code perfect support for the mainland Hong Kong Taiwan and Singapore

  • 2020-03-31 20:29:11
  • OfStack

Examples :(Jane > Bread > Bread (zh-tw) Laos > Laos (zh-hk) China life > China life (zh-hk) ronaldo > Lanadu (zh-hk) Memory > Memory (zh-cn) busch > Bush (zh-cn) database > Database (zh-cn) usage method
1. Download MediaWiki: (link: #) and unzip it in a path like /var/lib/mediawiki-1.13.3

Download (link: #), unzip and copy mediawiki-zhconverter. Inc. PHP to your PHP program

3. Set the MediaWiki path in your application and refer to mediawiki-zhconverter

Define (" MEDIAWIKI_PATH ", "/ var/lib/mediawiki - 1.14.0 /"); Require_once "mediawiki - zhconverter. Inc., a PHP"; 4. Make a switch

Echo MediaWikiZhConverter: : convert (" bread ", "useful - tw"); Echo MediaWikiZhConverter: : convert (" memory ", "useful - cn"); Echo MediaWikiZhConverter: : convert (" ronaldo ", "useful - hk"); 5. Complete

Support version
The following has been proved that MediaWiki version can be compatible with the program (http://download.wikimedia.org/mediawiki) :

PHP4:1.6.10 1.6.11
PHP5:1.12.0 1.13.3
Use the PHP5 version if not necessary.

Download address (link: http://xiazai.jb51.net//www.jb51.net/codes/25190.html)

Related articles: