0
0
mirror of https://github.com/ankidroid/Anki-Android.git synced 2024-09-20 03:52:15 +02:00

Revert "minor change in update-localizations.py"

revert this commit as it breaks the upload translation function

This reverts commit 1b348e281b.
This commit is contained in:
nobnago 2012-07-14 22:13:12 +02:00
parent 9f20ea08ea
commit 732253c644

View File

@ -57,7 +57,6 @@ def replacechars(filename, fileExt, isCrowdin):
line = string.replace(line, '\'', '\\\'')
line = string.replace(line, '\\\\\'', '\\\'')
line = string.replace(line, 'amp;', '')
line = string.replace(line, '...', '…')
if re.search('%[0-9]\\s\\$|%[0-9]\\$\\s', line) != None:
errorOccured = True
# print line
@ -79,7 +78,6 @@ def replacechars(filename, fileExt, isCrowdin):
errorOccured = True
print contentLine
continue
contentLine = string.replace(contentLine, '...', '…')
line.append(["<![CDATA[" + contentLine[:sepPos] + "]]>", "<![CDATA[" + contentLine[sepPos+11:] + "]]>"])
for fi in line:
fi[0] = re.sub('\"+', '\\\"', fi[0])