New issue
Advanced search Search tips

Issue 780885 link

Starred by 2 users

Issue metadata

Status: Assigned
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Task



Sign in to add a comment

Add PRESUBMIT to check for large-scale retranslation of policy descriptions

Project Member Reported by pmarko@chromium.org, Nov 2 2017

Issue description

Changing policy_templates.json can cause retranslation of policy descriptions.

Retranslations are triggered when the message IDs in .xmb files generated by the grit tool change due to the CL.

This can be tried manually using:
python tools/grit/grit.py -i ${PWD}/components/policy/resources/policy_templates.grd xmb <directory>/without_cl.xmb
git cl patch <cl>
python tools/grit/grit.py -i ${PWD}/components/policy/resources/policy_templates.grd xmb <directory>/with_cl.xmb

and diffing <directory>/without_cl.xmb <directory>/with_cl.xmb.

If we could run grit referencing the base files (without the CL), we could warn if more than e.g. 10 IDs are changing.

We could probably use the OldContents function from presubmit_support for this.

 
Description: Show this description
Labels: pmarko-backlog

Sign in to add a comment