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

Issue 29329499: Issue 3246 - Strip empty locale files provided by Crowdin (Closed)

Created:
Oct. 29, 2015, 6:35 p.m. by kzar
Modified:
Nov. 5, 2015, 2:05 p.m.
Reviewers:
Wladimir Palant
CC:
saroyanm, Felix Dahlke, Sebastian Noack
Visibility:
Public.

Description

Issue 3246 - Strip empty locale files provided by Crowdin

Patch Set 1 #

Total comments: 2

Patch Set 2 : Parse the JSON instead of using regexp #

Total comments: 2

Patch Set 3 : Don't catch ValueError if JSON files won't parse #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -4 lines) Patch
M cms/bin/translate.py View 1 2 3 chunks +7 lines, -4 lines 0 comments Download

Messages

Total messages: 6
kzar
Patch Set 1
Oct. 29, 2015, 6:39 p.m. (2015-10-29 18:39:37 UTC) #1
Wladimir Palant
https://codereview.adblockplus.org/29329499/diff/29329500/cms/bin/translate.py File cms/bin/translate.py (right): https://codereview.adblockplus.org/29329499/diff/29329500/cms/bin/translate.py#newcode268 cms/bin/translate.py:268: if re.search(non_empty_file_regexp, locale_file_contents): I don't think that using regular ...
Oct. 29, 2015, 7:12 p.m. (2015-10-29 19:12:36 UTC) #2
kzar
Patch Set 2 : Parse the JSON instead of using regexp https://codereview.adblockplus.org/29329499/diff/29329500/cms/bin/translate.py File cms/bin/translate.py (right): ...
Oct. 30, 2015, 12:03 p.m. (2015-10-30 12:03:04 UTC) #3
Wladimir Palant
https://codereview.adblockplus.org/29329499/diff/29329543/cms/bin/translate.py File cms/bin/translate.py (right): https://codereview.adblockplus.org/29329499/diff/29329543/cms/bin/translate.py#newcode269 cms/bin/translate.py:269: continue I don't think that sweeping exceptions under the ...
Oct. 30, 2015, 6:02 p.m. (2015-10-30 18:02:41 UTC) #4
kzar
Patch Set 3 : Don't catch ValueError if JSON files won't parse https://codereview.adblockplus.org/29329499/diff/29329543/cms/bin/translate.py File cms/bin/translate.py ...
Oct. 30, 2015, 6:17 p.m. (2015-10-30 18:17:29 UTC) #5
Wladimir Palant
Nov. 5, 2015, 1:06 p.m. (2015-11-05 13:06:34 UTC) #6
LGTM

Powered by Google App Engine
This is Rietveld