summaryrefslogtreecommitdiffstats
path: root/scripts/php_2_py.php
blob: aa3316e3222edcf585f4b7326798b0f4c25fba18 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?php

namespace MediaWiki\Languages\Data;

include("ZhConversion.php");

echo "# -*- coding: utf-8 -*- \n";

function printDict($name, $dict) {
    echo "$name = {\n";
    foreach($dict as $key => $val) {
        echo "    u\"", $key, "\": u\"", $val, "\",\n";
    }
    echo "}\n";
    echo "\n";
}

printDict("zh2Hant", ZhConversion::$zh2Hant);
printDict("zh2Hans", ZhConversion::$zh2Hans);
printDict("zh2TW", ZhConversion::$zh2TW);
printDict("zh2HK", ZhConversion::$zh2HK);
printDict("zh2CN", ZhConversion::$zh2CN);
# printDict("zh2SG", ZhConversion::$zh2SG);
?>