summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-02-28 13:14:23 +0300
committerAndrei Karas <akaras@inbox.ru>2016-02-28 13:14:23 +0300
commit6ba4a82ba98a9302b1bdf841277b68612b318c39 (patch)
tree136777473885e855086eb6d0d3d1db15846d32ca /lang
parent2039c6b5f2e19bf74f060389d95f20d640113c25 (diff)
downloadevol-tools-6ba4a82ba98a9302b1bdf841277b68612b318c39.tar.gz
evol-tools-6ba4a82ba98a9302b1bdf841277b68612b318c39.tar.bz2
evol-tools-6ba4a82ba98a9302b1bdf841277b68612b318c39.tar.xz
evol-tools-6ba4a82ba98a9302b1bdf841277b68612b318c39.zip
lang: fix parsing strings with escaped quotes.
Diffstat (limited to 'lang')
-rwxr-xr-xlang/updatelang.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/lang/updatelang.py b/lang/updatelang.py
index ce824c4..43c27c6 100755
--- a/lang/updatelang.py
+++ b/lang/updatelang.py
@@ -27,6 +27,7 @@ langs = set()
itemNamesByName = dict()
def addStr(text, comment, fileName, lineNum, addNoC):
+ text = text.replace("\a", "\\\"");
allStrings.add(text)
if comment[-1:] == "\n":
comment = comment[:-1]
@@ -54,6 +55,7 @@ def collectScriptStrings(parentDir, relativeDir):
cnt = -1
for line in f:
cnt = cnt + 1
+ line = line.replace("\\\"", "\a");
m = strre1.findall(line)
if len(m) > 0:
for str in m: