Updated simplified chinese translations from traditional, added python simplify script

pull/14/head
Tim Su 14 years ago
parent 7fe8f6a481
commit e893d29382

File diff suppressed because it is too large Load Diff

@ -524,7 +524,7 @@
<string name="task_killer_help_ok">我不會中止Astrid!</string>
<!-- Astrid's Android Marketplace title. It never appears in the app itself. -->
<string name="marketplace_title">Astricd工作/待辦清單</string>
<string name="marketplace_title">Astrid工作/待辦清單</string>
<!-- Astrid's Android Marketplace description. It never appears in the app itself. -->
<string name="marketplace_description">Astrid工作管理是受到高度喜愛的開放源碼應用程式且可以非常簡單的完成工作。內含工作標籤、提醒、同步 、本地端插件、widget和其他功能。</string>

@ -0,0 +1,46 @@
#**********************************************************************************************
#
# simplify.py - switch traditional Chinese text to simplified Chinese
#
# Author: Yue Zhang
#
#**********************************************************************************************
import sys
g_sHint = "simplify.py \
Convert text from traditional Chinese to Simplified Chinese. \
Yue Zhang \
frcchang@gmail.com\
\
Usage - simplify.py traditional.txt >simplify.txt\
\
The input file must be encoded in UTF-8. \
You also need to put the char table utftable.txt in the same directory. \
\
"
if len(sys.argv) != 2:
print g_sHint
sys.exit(1)
table = {}
file = open("utftable.txt")
line = file.readline()
while line:
line = line.strip()
line = unicode(line, "utf-8")
assert len(line)==3 and line[1]=="="
table[line[2]] = line[0]
line = file.readline()
file.close()
file = open(sys.argv[1])
line = file.readline()
while line:
line = line[:-1]
line = unicode(line, "utf-8")
output = [table.get(char, char) for char in line]
print "".join(output).encode("utf-8")
line = file.readline()
file.close()

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save