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

Issue 2757193002: Mark all IDS_FLAGS* in generated_resources.grd as translateable=false (Closed)

Created:
3 years, 9 months ago by vabr (Chromium)
Modified:
3 years, 9 months ago
CC:
chromium-reviews, srahim+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Mark all IDS_FLAGS* in generated_resources.grd as translateable=false Flag messages are for developers and testers, not for end users. Translating them is therefore wasting resources and unnecessarily increasing download size of Chrome. Marking flags messages as 'translateable="false"' has been recommended (Google-internal only, go umoar) as an interim solution. There are some instances of that, but having this changed for most of the messages will make it more likely that new flag messages end up being marked in this way as well. This CL did the following mechanical change to generated_resources.grd: find all message definitions with names starting with IDS_FLAGS_ and add the translateable="false" attribute to them. There has been no other value than "false" assigned to the 'translateable' attribute in the file, and all the IDS_FLAGS_ messages with this attribute had it as the last one. In creating the CL, all instances of 'translateable' at the end of IDS_FLAGS_* message definitions were removed where present, and then appended to all IDS_FLAGS_* messages. With the observations above, this resulted in no duplicates and no conflicts in the 'translateable' value. Furthermore, this CL adds a presubmit check for generated_resources.grd, which flags lines containing 'name="IDS_FLAGS' and not containing 'translateable="false"' as errors. BUG=587272 Review-Url: https://codereview.chromium.org/2757193002 Cr-Commit-Position: refs/heads/master@{#458335} Committed: https://chromium.googlesource.com/chromium/src/+/031786b3bb524cf552cd7faaea55ec82e1bb7f5e

Patch Set 1 #

Patch Set 2 : Add a presubmit check and rebase #

Total comments: 2

Patch Set 3 : Rebased and fixed a comment in the PRESUBMIT.py #

Unified diffs Side-by-side diffs Delta from patch set Stats (+647 lines, -621 lines) Patch
M chrome/app/PRESUBMIT.py View 1 2 1 chunk +26 lines, -0 lines 0 comments Download
M chrome/app/generated_resources.grd View 1 2 36 chunks +621 lines, -621 lines 0 comments Download

Messages

Total messages: 32 (22 generated)
vabr (Chromium)
Hi agrieve@, As the owner of the associated bug, could you please review? Feel free ...
3 years, 9 months ago (2017-03-20 08:10:18 UTC) #2
vabr (Chromium)
Hi jochen@, Because you suggested the presubmit check, could you please review my change to ...
3 years, 9 months ago (2017-03-20 09:00:08 UTC) #11
jochen (gone - plz use gerrit)
lgtm
3 years, 9 months ago (2017-03-20 09:06:30 UTC) #12
vabr (Chromium)
Thanks, Jochen! @agrieve -- given Jochen's approval, you no longer need to review. As promised ...
3 years, 9 months ago (2017-03-20 09:09:50 UTC) #13
agrieve
lgtm https://codereview.chromium.org/2757193002/diff/20001/chrome/app/PRESUBMIT.py File chrome/app/PRESUBMIT.py (right): https://codereview.chromium.org/2757193002/diff/20001/chrome/app/PRESUBMIT.py#newcode38 chrome/app/PRESUBMIT.py:38: """Check that no about:flags are marked as not ...
3 years, 9 months ago (2017-03-20 14:09:44 UTC) #18
agrieve
On 2017/03/20 14:09:44, agrieve wrote: > lgtm > > https://codereview.chromium.org/2757193002/diff/20001/chrome/app/PRESUBMIT.py > File chrome/app/PRESUBMIT.py (right): > ...
3 years, 9 months ago (2017-03-20 14:09:59 UTC) #19
srahim
LGTM and thank you for doing this!
3 years, 9 months ago (2017-03-20 17:40:36 UTC) #21
vabr (Chromium)
Thank you for review! I addressed the comment and will do a CQ dry run. ...
3 years, 9 months ago (2017-03-20 19:03:28 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2757193002/40001
3 years, 9 months ago (2017-03-21 07:06:14 UTC) #29
commit-bot: I haz the power
3 years, 9 months ago (2017-03-21 07:14:00 UTC) #32
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/031786b3bb524cf552cd7faaea55...

Powered by Google App Engine
This is Rietveld 408576698