diff options
author | jamescook@chromium.org <jamescook@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-02-01 22:37:20 +0000 |
---|---|---|
committer | jamescook@chromium.org <jamescook@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-02-01 22:37:20 +0000 |
commit | b95fea998bb4df3cc0f3b63633b059b531ebc22a (patch) | |
tree | 8df09a1a2ed8d1770b7751b7d956b3488e2d196c /tools/gen_keyboard_overlay_data | |
parent | 08eaa6706fe32fd68511af92f2941bf2873f4b1d (diff) | |
download | chromium_src-b95fea998bb4df3cc0f3b63633b059b531ebc22a.zip chromium_src-b95fea998bb4df3cc0f3b63633b059b531ebc22a.tar.gz chromium_src-b95fea998bb4df3cc0f3b63633b059b531ebc22a.tar.bz2 |
cros: Clarify keyboard over Open Dialog string
* Clarify the Open Dialog string description for the translators.
* Fix some capitalization problems.
* Patch the generate script so it doesn't update the copyright year.
BUG=173522
TEST=visual, keyboard overlay for Ctrl-O says "Open"
Review URL: https://codereview.chromium.org/12087125
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@180200 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 | 15 |
1 files changed, 6 insertions, 9 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 81c02cf..dd108c9 100755 --- a/tools/gen_keyboard_overlay_data/gen_keyboard_overlay_data.py +++ b/tools/gen_keyboard_overlay_data/gen_keyboard_overlay_data.py @@ -154,11 +154,13 @@ INPUT_METHOD_ID_TO_OVERLAY_ID = { 'zinnia-japanese': 'ja', } -COPYRIGHT_HEADER_TEMPLATE=( -"""// Copyright (c) %s The Chromium Authors. All rights reserved. +# The file was first generated in 2012 and we have a policy of not updating +# copyright dates. +COPYRIGHT_HEADER=\ +"""// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -""") +""" # A snippet for grd file GRD_SNIPPET_TEMPLATE=""" <message name="%s" desc="%s"> @@ -404,11 +406,6 @@ def FetchHotkeyData(client): return result -def GenerateCopyrightHeader(): - """Generates the copyright header for JavaScript code.""" - return COPYRIGHT_HEADER_TEMPLATE % datetime.date.today().year - - def UniqueBehaviors(hotkey_data): """Retrieves a sorted list of unique behaviors from |hotkey_data|.""" return sorted(set((behavior, description) for (behavior, _, description) @@ -427,7 +424,7 @@ def GetPath(path_from_src): def OutputFile(outpath, snippet): """Output the snippet into the specified path.""" out = file(outpath, 'w') - out.write(GenerateCopyrightHeader() + '\n') + out.write(COPYRIGHT_HEADER + '\n') out.write(snippet) print 'Output ' + os.path.normpath(outpath) |