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

Issue 5307739131609088: Issue 1709 - Allow importing Chrome-style locales in Chrome extensions (Closed)

Created:
Dec. 16, 2014, 11:11 p.m. by Wladimir Palant
Modified:
Dec. 17, 2014, 4:49 p.m.
Reviewers:
Sebastian Noack
Visibility:
Public.

Description

In addition to the required change which is pretty trivial, this patch fixes two more issues: the hardcoded mapping is removed (this one wasn`t kept in sync and got outdated) and locales without any Chrome strings are no longer imported (makes little sense, affects only Marathi locale).

Patch Set 1 #

Total comments: 6

Patch Set 2 : Simplified mapping calculation #

Total comments: 2

Patch Set 3 : Removed code duplication #

Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -50 lines) Patch
M packagerChrome.py View 1 2 2 chunks +32 lines, -50 lines 0 comments Download

Messages

Total messages: 10
Wladimir Palant
Dec. 16, 2014, 11:11 p.m. (2014-12-16 23:11:43 UTC) #1
Sebastian Noack
http://codereview.adblockplus.org/5307739131609088/diff/5629499534213120/packagerChrome.py File packagerChrome.py (right): http://codereview.adblockplus.org/5307739131609088/diff/5629499534213120/packagerChrome.py#newcode179 packagerChrome.py:179: def get_key(dict, value): Maybe I overlook something here? But ...
Dec. 17, 2014, 9:04 a.m. (2014-12-17 09:04:06 UTC) #2
Wladimir Palant
http://codereview.adblockplus.org/5307739131609088/diff/5629499534213120/packagerChrome.py File packagerChrome.py (right): http://codereview.adblockplus.org/5307739131609088/diff/5629499534213120/packagerChrome.py#newcode179 packagerChrome.py:179: def get_key(dict, value): On 2014/12/17 09:04:06, Sebastian Noack wrote: ...
Dec. 17, 2014, 10:09 a.m. (2014-12-17 10:09:53 UTC) #3
Sebastian Noack
http://codereview.adblockplus.org/5307739131609088/diff/5629499534213120/packagerChrome.py File packagerChrome.py (right): http://codereview.adblockplus.org/5307739131609088/diff/5629499534213120/packagerChrome.py#newcode179 packagerChrome.py:179: def get_key(dict, value): On 2014/12/17 10:09:54, Wladimir Palant wrote: ...
Dec. 17, 2014, 10:18 a.m. (2014-12-17 10:18:36 UTC) #4
Wladimir Palant
http://codereview.adblockplus.org/5307739131609088/diff/5629499534213120/packagerChrome.py File packagerChrome.py (right): http://codereview.adblockplus.org/5307739131609088/diff/5629499534213120/packagerChrome.py#newcode179 packagerChrome.py:179: def get_key(dict, value): On 2014/12/17 10:18:36, Sebastian Noack wrote: ...
Dec. 17, 2014, 10:25 a.m. (2014-12-17 10:25:49 UTC) #5
Sebastian Noack
http://codereview.adblockplus.org/5307739131609088/diff/5629499534213120/packagerChrome.py File packagerChrome.py (right): http://codereview.adblockplus.org/5307739131609088/diff/5629499534213120/packagerChrome.py#newcode179 packagerChrome.py:179: def get_key(dict, value): On 2014/12/17 10:25:49, Wladimir Palant wrote: ...
Dec. 17, 2014, 10:31 a.m. (2014-12-17 10:31:49 UTC) #6
Wladimir Palant
http://codereview.adblockplus.org/5307739131609088/diff/5629499534213120/packagerChrome.py File packagerChrome.py (right): http://codereview.adblockplus.org/5307739131609088/diff/5629499534213120/packagerChrome.py#newcode179 packagerChrome.py:179: def get_key(dict, value): On 2014/12/17 10:31:49, Sebastian Noack wrote: ...
Dec. 17, 2014, 1:21 p.m. (2014-12-17 13:21:12 UTC) #7
Sebastian Noack
http://codereview.adblockplus.org/5307739131609088/diff/5717271485874176/packagerChrome.py File packagerChrome.py (right): http://codereview.adblockplus.org/5307739131609088/diff/5717271485874176/packagerChrome.py#newcode176 packagerChrome.py:176: locale_mapping[chrome_locale.replace('-', '_')] = crowdin_locale I'd rather not duplicate the ...
Dec. 17, 2014, 2:11 p.m. (2014-12-17 14:11:46 UTC) #8
Wladimir Palant
http://codereview.adblockplus.org/5307739131609088/diff/5717271485874176/packagerChrome.py File packagerChrome.py (right): http://codereview.adblockplus.org/5307739131609088/diff/5717271485874176/packagerChrome.py#newcode176 packagerChrome.py:176: locale_mapping[chrome_locale.replace('-', '_')] = crowdin_locale On 2014/12/17 14:11:46, Sebastian Noack ...
Dec. 17, 2014, 2:59 p.m. (2014-12-17 14:59:33 UTC) #9
Sebastian Noack
Dec. 17, 2014, 3:10 p.m. (2014-12-17 15:10:24 UTC) #10
LGTM

Powered by Google App Engine
This is Rietveld