diff options
author | thomasvl@chromium.org <thomasvl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-22 12:37:44 +0000 |
---|---|---|
committer | thomasvl@chromium.org <thomasvl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-22 12:37:44 +0000 |
commit | c153e5352715dd84a02060cdf528b43d6f70cca0 (patch) | |
tree | 9df71ae796db8462050f7fbd328a100080723167 /app | |
parent | 8ad6c4d30892a7e5cef7dbd5bfbeb9aa7fa0563e (diff) | |
download | chromium_src-c153e5352715dd84a02060cdf528b43d6f70cca0.zip chromium_src-c153e5352715dd84a02060cdf528b43d6f70cca0.tar.gz chromium_src-c153e5352715dd84a02060cdf528b43d6f70cca0.tar.bz2 |
Adding a GYP variable to indicate if a build wants Title Case strings or not.
Default to Title Case strings for Mac and Linux/GTK.
Pass an extra define to the invoke of grit for TitleCase strings.
Test the define for grit Title Case strings and have two sets of strings where needed.
DEPs roll to pick up a new GYP that will keep int values as ints.
BUG=22253
TEST=The bookmark bar menus on Mac and linux gtk will be Title Case, in Windows and ChromeOS they will be Sentence case. NOTE: we'll the translations in the Title Case areas until new translations are entered.
Review URL: http://codereview.chromium.org/210022
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@26803 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'app')
-rw-r--r-- | app/app.gyp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/app.gyp b/app/app.gyp index 613f6b7..18edb94 100644 --- a/app/app.gyp +++ b/app/app.gyp @@ -254,6 +254,11 @@ 'action': ['python', '<@(_inputs)', '-i', '<(RULE_INPUT_PATH)', 'build', '-o', '<(grit_out_dir)'], 'message': 'Generating resources from <(RULE_INPUT_PATH)', + 'conditions': [ + ['use_titlecase_in_grd_files==1', { + 'action': ['-D', 'use_titlecase'], + }], + ], }, ], 'sources': [ |