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

Issue 29328085: Issue 3076 - [CMS] Map locale names to match Crowdin's expectations (Closed)

Created:
Sept. 16, 2015, 4:27 p.m. by kzar
Modified:
Sept. 17, 2015, 3:08 p.m.
Reviewers:
Sebastian Noack
CC:
Wladimir Palant, saroyanm
Visibility:
Public.

Description

Issue 3076 - [CMS] Map locale names to match Crowdin's expectations

Patch Set 1 #

Total comments: 9

Patch Set 2 : Simplified local_locales assignment #

Patch Set 3 : Simplify locale name conversion logic #

Total comments: 5

Patch Set 4 : Addressed nits #

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

Messages

Total messages: 10
kzar
Patch Set 1
Sept. 16, 2015, 4:29 p.m. (2015-09-16 16:29:20 UTC) #1
Sebastian Noack
https://codereview.adblockplus.org/29328085/diff/29328086/cms/bin/translate.py File cms/bin/translate.py (right): https://codereview.adblockplus.org/29328085/diff/29328086/cms/bin/translate.py#newcode133 cms/bin/translate.py:133: if "_" in locale: This can be simplified: if ...
Sept. 16, 2015, 7:37 p.m. (2015-09-16 19:37:37 UTC) #2
kzar
Patch Set 2 : Simplified local_locales assignment https://codereview.adblockplus.org/29328085/diff/29328086/cms/bin/translate.py File cms/bin/translate.py (right): https://codereview.adblockplus.org/29328085/diff/29328086/cms/bin/translate.py#newcode133 cms/bin/translate.py:133: if "_" ...
Sept. 16, 2015, 8:02 p.m. (2015-09-16 20:02:41 UTC) #3
kzar
https://codereview.adblockplus.org/29328085/diff/29328086/cms/bin/translate.py File cms/bin/translate.py (right): https://codereview.adblockplus.org/29328085/diff/29328086/cms/bin/translate.py#newcode270 cms/bin/translate.py:270: with archive.open(member) as f, open(output_path, "wb") as f_target: On ...
Sept. 16, 2015, 8:10 p.m. (2015-09-16 20:10:29 UTC) #4
Sebastian Noack
https://codereview.adblockplus.org/29328085/diff/29328086/cms/bin/translate.py File cms/bin/translate.py (right): https://codereview.adblockplus.org/29328085/diff/29328086/cms/bin/translate.py#newcode133 cms/bin/translate.py:133: if "_" in locale: On 2015/09/16 20:02:41, kzar wrote: ...
Sept. 17, 2015, 9:45 a.m. (2015-09-17 09:45:14 UTC) #5
kzar
Patch Set 3 : Simplify locale name conversion logic https://codereview.adblockplus.org/29328085/diff/29328086/cms/bin/translate.py File cms/bin/translate.py (right): https://codereview.adblockplus.org/29328085/diff/29328086/cms/bin/translate.py#newcode133 cms/bin/translate.py:133: ...
Sept. 17, 2015, 10:16 a.m. (2015-09-17 10:16:17 UTC) #6
Sebastian Noack
https://codereview.adblockplus.org/29328085/diff/29328153/cms/bin/translate.py File cms/bin/translate.py (right): https://codereview.adblockplus.org/29328085/diff/29328153/cms/bin/translate.py#newcode143 cms/bin/translate.py:143: skipped_locales.append(locale) This code past hasn't been tested, obviously. ;) ...
Sept. 17, 2015, 11:03 a.m. (2015-09-17 11:03:24 UTC) #7
Sebastian Noack
https://codereview.adblockplus.org/29328085/diff/29328153/cms/bin/translate.py File cms/bin/translate.py (right): https://codereview.adblockplus.org/29328085/diff/29328153/cms/bin/translate.py#newcode143 cms/bin/translate.py:143: skipped_locales.append(locale) On 2015/09/17 11:03:24, Sebastian Noack wrote: > This ...
Sept. 17, 2015, 12:42 p.m. (2015-09-17 12:42:15 UTC) #8
kzar
Patch Set 4 : Addressed nits https://codereview.adblockplus.org/29328085/diff/29328153/cms/bin/translate.py File cms/bin/translate.py (right): https://codereview.adblockplus.org/29328085/diff/29328153/cms/bin/translate.py#newcode143 cms/bin/translate.py:143: skipped_locales.append(locale) On 2015/09/17 ...
Sept. 17, 2015, 2:43 p.m. (2015-09-17 14:43:55 UTC) #9
Sebastian Noack
Sept. 17, 2015, 2:49 p.m. (2015-09-17 14:49:31 UTC) #10
LGTM

Powered by Google App Engine
This is Rietveld