From c153e5352715dd84a02060cdf528b43d6f70cca0 Mon Sep 17 00:00:00 2001 From: "thomasvl@chromium.org" Date: Tue, 22 Sep 2009 12:37:44 +0000 Subject: 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 --- app/app.gyp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'app') 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': [ -- cgit v1.1