Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: localeTools.py

Issue 29589613: Issue 5939 - Download translations to correct folder (Closed)
Patch Set: Created Oct. 26, 2017, 11:58 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: localeTools.py
diff --git a/localeTools.py b/localeTools.py
index b6554e0aa52461a7347c843a3b251d035ec34652..0f5bcc7e0e0d767d2cec65926537cbd63ec20c98 100644
--- a/localeTools.py
+++ b/localeTools.py
@@ -269,6 +269,7 @@ def getTranslations(localeConfig, projectName, key):
for key, value in CROWDIN_LANG_MAPPING.iteritems():
if value == dir:
dir = key
+ dir = dir.replace('-', '_')
data = zip.open(info.filename).read()
if data == '[]':
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld