Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(178)

Issue 1425693007: Fix placeholder syntax for Chrome extensions. (Closed)

Created:
5 years, 1 month ago by Jamie
Modified:
5 years, 1 month ago
Reviewers:
Nico, kelvinp
CC:
grit-developer_googlegroups.com
Base URL:
https://chromium.googlesource.com/external/grit-i18n.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Fix placeholder syntax for Chrome extensions. This changes the output format for placeholders in Chrome extensions from $n (which is ambiguous in some circumstances) to $var$. For simplicity (and to keep the file size small), |var| is always |n|; in other words, we use placeholders named $1$, $2$, etc., regardless of the name given in the GRD file. BUG=551100 r202

Patch Set 1 #

Total comments: 9

Patch Set 2 : Reviewer feedback. #

Patch Set 3 : Added unit test. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+34 lines, -2 lines) Patch
M grit/format/chrome_messages_json.py View 1 2 2 chunks +20 lines, -2 lines 0 comments Download
M grit/format/chrome_messages_json_unittest.py View 1 2 2 chunks +14 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (4 generated)
Jamie
ptal
5 years, 1 month ago (2015-11-04 03:13:46 UTC) #3
kelvinp
https://codereview.chromium.org/1425693007/diff/1/grit/format/chrome_messages_json.py File grit/format/chrome_messages_json.py (right): https://codereview.chromium.org/1425693007/diff/1/grit/format/chrome_messages_json.py#newcode1 grit/format/chrome_messages_json.py:1: #!/usr/bin/env python Will this affect other extensions in Chrome? ...
5 years, 1 month ago (2015-11-04 19:02:10 UTC) #4
kelvinp
lgtm once the last comment is addressed. https://codereview.chromium.org/1425693007/diff/1/grit/format/chrome_messages_json.py File grit/format/chrome_messages_json.py (right): https://codereview.chromium.org/1425693007/diff/1/grit/format/chrome_messages_json.py#newcode1 grit/format/chrome_messages_json.py:1: #!/usr/bin/env python ...
5 years, 1 month ago (2015-11-04 19:09:04 UTC) #5
Jamie
https://codereview.chromium.org/1425693007/diff/1/grit/format/chrome_messages_json.py File grit/format/chrome_messages_json.py (right): https://codereview.chromium.org/1425693007/diff/1/grit/format/chrome_messages_json.py#newcode1 grit/format/chrome_messages_json.py:1: #!/usr/bin/env python On 2015/11/04 19:02:10, kelvinp wrote: > Will ...
5 years, 1 month ago (2015-11-04 19:13:55 UTC) #6
Nico
Is it possible to write a test for this? (run `python grit.py unit` to run ...
5 years, 1 month ago (2015-11-04 21:04:07 UTC) #8
Jamie
On 2015/11/04 21:04:07, Nico wrote: > Is it possible to write a test for this? ...
5 years, 1 month ago (2015-11-04 21:24:21 UTC) #9
Nico
5 years, 1 month ago (2015-11-04 21:31:08 UTC) #10
landed in grit-i18n r202

Powered by Google App Engine
This is Rietveld 408576698