summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--scripts/php_2_py.php15
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);
?>