2017 © Pedro Peláez
 

library mediawikizhconverter

Composer friendly version of http://web.archive.org/web/20130727034425/http://blog.kevburnsjr.com/php-unique-hash

image

yulinho/mediawikizhconverter

Composer friendly version of http://web.archive.org/web/20130727034425/http://blog.kevburnsjr.com/php-unique-hash

  • Tuesday, May 16, 2017
  • by yulinho
  • Repository
  • 1 Watchers
  • 0 Stars
  • 3 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 20 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

簡介

利用MediaWiki 作中文互換,支援不同地方中文用字上的分別(大陸、香港、台灣及新加坡)。, (*1)

例子:

(簡 > 繁)

面包 > 麵包 (zh-tw)
寮国 > 老撾 (zh-hk)
中国人寿 > 中國人壽 (zh-hk)
罗纳尔多 > 朗拿度 (zh-hk)

(繁 > 簡)

記憶體 > 内存 (zh-cn)
布殊 > 布什 (zh-cn)
資料庫 > 数据库(zh-cn)

使用方法

  1. 下載 MediaWiki: http://www.mediawiki.org/wiki/MediaWiki, (*2)

  2. 解壓在路徑如:/var/lib/mediawiki-1.13.3, (*3)

  3. 下載 mediawiki-zhconverter,解壓及把 mediawiki-zhconverter.inc.php 抄到你 PHP 程序當中, (*4)

  4. 在你的程序中設定 MediaWiki 路徑, 及引用 mediawiki-zhconverter, (*5)

    define("MEDIAWIKI_PATH", "/var/lib/mediawiki-1.6.10/");
    require_once "mediawiki-zhconverter.inc.php";
  5. 作出轉換, (*6)

    /*
        MediaWikiZhConverter::convert( "字詞", "轉換目標");  
        轉換目標 = zh, zh-cn, zh-tw, zh-sg, zh-hk
    */
    
    echo MediaWikiZhConverter::convert("面包", "zh-tw");
    echo MediaWikiZhConverter::convert("記憶體", "zh-cn");
    echo MediaWikiZhConverter::convert("罗纳尔多", "zh-hk");
  6. 完成, (*7)


支援版本

下列MediaWiki 版本已證實可以兼容本程式 http://download.wikimedia.org/mediawiki, (*8)

  • PHP4: 1.6.10, 1.6.11
  • PHP5: 1.12.0, 1.13.3, 1.15.4

如非必要,請使用 PHP5 版本。, (*9)


許可證

Copyright (C) 2011 tszming (tszming@gmail.com), (*10)

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version., (*11)

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details., (*12)

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. http://www.gnu.org/copyleft/gpl.html, (*13)

The Versions

16/05 2017

1.1.x-dev

1.1.9999999.9999999-dev https://github.com/yulinho/mediawikizhconverter

Composer friendly version of http://web.archive.org/web/20130727034425/http://blog.kevburnsjr.com/php-unique-hash

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

crypt mediawikizhconverter

16/05 2017

dev-master

9999999-dev https://github.com/yulinho/mediawikizhconverter

Composer friendly version of http://web.archive.org/web/20130727034425/http://blog.kevburnsjr.com/php-unique-hash

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

crypt mediawikizhconverter