Updated lang files, fixed another textedit bug

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1561 eee81c28-f429-11dd-99c0-75d572ba1ddd
This commit is contained in:
Alexis Deveria
2010-05-03 20:12:41 +00:00
parent 30e48db6fe
commit 8000c9651e
57 changed files with 1707 additions and 780 deletions

View File

@@ -65,7 +65,7 @@ def processFile(filename):
Loads the given lang.XX.js file, processes it and saves it
back to the file system
"""
in_string = open('./editor/locale/' + filename, 'r').read()
in_string = open('../editor/locale/' + filename, 'r').read()
try:
j = json.loads(in_string)
@@ -75,7 +75,7 @@ def processFile(filename):
# now write it out back to the file
s = ourPrettyPrint(j).encode("UTF-8")
open('./editor/locale/' + filename, 'w').write(s)
open('../editor/locale/' + filename, 'w').write(s)
print "Updated " + filename
except ValueError:
@@ -83,6 +83,6 @@ def processFile(filename):
if __name__ == '__main__':
# get list of all lang files and process them
for file_name in os.listdir('./editor/locale/'):
for file_name in os.listdir('../editor/locale/'):
if file_name[:4] == "lang":
processFile(file_name)