add chinese support

This commit is contained in:
lizhi-rocky
2010-08-04 13:29:48 +08:00
parent fb7d3283c2
commit 4ad1c428e0
8 changed files with 277 additions and 62 deletions

View File

@@ -10,10 +10,10 @@ from xml.dom import minidom
import os.path
def print_usages():
print 'Usages: %s [-b|--begin step_name] [interface_xml_file] [install_xml_file]' %sys.argv[0]
print 'Usages: %s [-b|--begin step_name] [-l|--language language] [interface_xml_file] [install_xml_file]' %sys.argv[0]
try:
opts, args = getopt.getopt(sys.argv[1:], "b:", ["begin=",])
opts, args = getopt.getopt(sys.argv[1:], "b:l:", ["begin=","language="])
except getopt.GetoptError:
print_usages()
sys.exit(1)
@@ -22,6 +22,8 @@ begin_step=None
for opt, arg in opts:
if opt in ('-b', '--begin'):
begin_step = arg
elif opt in ('-l', '--language'):
ri_tk.language = arg.lower()
if len(args) == 0:
itf_xml = "../xml/interface_t.xml"