mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-28 09:58:30 +01:00
add param
This commit is contained in:
parent
a0fd457ad1
commit
d3c5aeb977
1 changed files with 3 additions and 3 deletions
|
@ -136,10 +136,10 @@ public class %s {
|
|||
"""
|
||||
fil.write( lines )
|
||||
|
||||
def getStrings():
|
||||
def getStrings(path):
|
||||
pairs = {}
|
||||
prevComments = []
|
||||
for elem in etree.parse("res/values/strings.xml").getroot().iter():
|
||||
for elem in etree.parse(path).getroot().iter():
|
||||
if not isinstance( elem.tag, basestring ):
|
||||
prevComments.append( elem.text )
|
||||
elif 'string' == elem.tag and elem.text:
|
||||
|
@ -163,7 +163,7 @@ def main():
|
|||
elif option == '-t': target = value
|
||||
|
||||
# Gather all localizable strings
|
||||
pairs = getStrings()
|
||||
pairs = getStrings("res/values/strings.xml")
|
||||
|
||||
# for subdir, dirs, files in os.walk('res_src'):
|
||||
# for file in files:
|
||||
|
|
Loading…
Reference in a new issue