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:
parent
9f20ea08ea
commit
732253c644
@ -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])
|
||||
|
Loading…
Reference in New Issue
Block a user