diff options
author | Peng Wu <alexepico@gmail.com> | 2018-10-22 17:18:31 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2018-10-22 17:21:45 +0800 |
commit | b4f0705661a3458423bab03234cc2a06285735b8 (patch) | |
tree | a9eb2aba814e0d4a173a5bba36d86aff9e7da9b0 | |
parent | 6716c315210920b2f1e7b3ef816052d051ab19dd (diff) | |
download | ibus-libpinyin-b4f0705661a3458423bab03234cc2a06285735b8.tar.gz ibus-libpinyin-b4f0705661a3458423bab03234cc2a06285735b8.tar.xz ibus-libpinyin-b4f0705661a3458423bab03234cc2a06285735b8.zip |
update php_2_py.php
-rw-r--r-- | scripts/php_2_py.php | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/scripts/php_2_py.php b/scripts/php_2_py.php index e53a535..aa3316e 100644 --- a/scripts/php_2_py.php +++ b/scripts/php_2_py.php @@ -1,4 +1,7 @@ <?php + +namespace MediaWiki\Languages\Data; + include("ZhConversion.php"); echo "# -*- coding: utf-8 -*- \n"; @@ -12,10 +15,10 @@ function printDict($name, $dict) { echo "\n"; } -printDict("zh2Hant", $zh2Hant); -printDict("zh2Hans", $zh2Hans); -printDict("zh2TW", $zh2TW); -printDict("zh2HK", $zh2HK); -printDict("zh2CN", $zh2CN); -printDict("zh2SG", $zh2SG); +printDict("zh2Hant", ZhConversion::$zh2Hant); +printDict("zh2Hans", ZhConversion::$zh2Hans); +printDict("zh2TW", ZhConversion::$zh2TW); +printDict("zh2HK", ZhConversion::$zh2HK); +printDict("zh2CN", ZhConversion::$zh2CN); +# printDict("zh2SG", ZhConversion::$zh2SG); ?> |