diff options
author | mazda@chromium.org <mazda@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-10-08 19:05:39 +0000 |
---|---|---|
committer | mazda@chromium.org <mazda@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-10-08 19:05:39 +0000 |
commit | 3f385d128f041788cc16f4edaf0be1af722f30c9 (patch) | |
tree | ce65169003996c07fcdab427f2a8c7c6f55db74f /tools/gen_keyboard_overlay_data | |
parent | e4a5bfd90a74f72a55e57474fbe6dcfb629398b4 (diff) | |
download | chromium_src-3f385d128f041788cc16f4edaf0be1af722f30c9.zip chromium_src-3f385d128f041788cc16f4edaf0be1af722f30c9.tar.gz chromium_src-3f385d128f041788cc16f4edaf0be1af722f30c9.tar.bz2 |
Tweak the keyboard overlay data and script so that the generated data can be used as-is.
- Correct inconsistent message string ID names
- Make the message for 'Show wrench menu' not to be generated.
BUG=None
TEST=Manually check keyboard overlay shows correct shortcut descriptions
Review URL: https://chromiumcodereview.appspot.com/11070003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@160675 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools/gen_keyboard_overlay_data')
-rwxr-xr-x | tools/gen_keyboard_overlay_data/gen_keyboard_overlay_data.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/gen_keyboard_overlay_data/gen_keyboard_overlay_data.py b/tools/gen_keyboard_overlay_data/gen_keyboard_overlay_data.py index 0cb2d60..a24aedf 100755 --- a/tools/gen_keyboard_overlay_data/gen_keyboard_overlay_data.py +++ b/tools/gen_keyboard_overlay_data/gen_keyboard_overlay_data.py @@ -481,6 +481,10 @@ def OutputGrd(hotkey_data, outdir): """Outputs a part of messages in the grd file.""" snippet = cStringIO.StringIO() for (behavior, description) in UniqueBehaviors(hotkey_data): + # Do not generate message for 'Show wrench menu'. It is handled manually + # based on branding. + if behavior == 'Show wrench menu': + continue snippet.write(GRD_SNIPPET_TEMPLATE % (ToMessageName(behavior), ToMessageDesc(description), behavior)) |