summaryrefslogtreecommitdiffstats
path: root/build/mac
diff options
context:
space:
mode:
authorthomasvl@chromium.org <thomasvl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-05 16:33:34 +0000
committerthomasvl@chromium.org <thomasvl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-05 16:33:34 +0000
commitf59d567df75de6d54a9734fa9534e8cf8d2a7831 (patch)
treef4e6d2d98445127955d5fbf72d1d4820fb967b23 /build/mac
parent3a2fe0629c22212f6ff3dc3be54d65129aacfac2 (diff)
downloadchromium_src-f59d567df75de6d54a9734fa9534e8cf8d2a7831.zip
chromium_src-f59d567df75de6d54a9734fa9534e8cf8d2a7831.tar.gz
chromium_src-f59d567df75de6d54a9734fa9534e8cf8d2a7831.tar.bz2
Add missing parens for format string to work.
When there are no strings to localize, but a stub value into the table to avoid a compile error from array_size. Review URL: http://codereview.chromium.org/160645 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@22483 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build/mac')
-rwxr-xr-xbuild/mac/generate_localizer6
1 files changed, 5 insertions, 1 deletions
diff --git a/build/mac/generate_localizer b/build/mac/generate_localizer
index deb99f3..5deb218 100755
--- a/build/mac/generate_localizer
+++ b/build/mac/generate_localizer
@@ -145,7 +145,11 @@ def Main(argv=None):
constants_list = extract_resource_constants(localizable_strings, xib_path)
if not constants_list:
sys.stderr.write("%s:0: warning: %s didn't find any resource strings\n" %
- xib_path, generate_localizer);
+ (xib_path, generate_localizer));
+ # Seed constant_list with an entry so things will compile even though the
+ # array sould really be empty (array_size in the generated file doesn't
+ # like an empty array).
+ constants_list.append('^0');
# Name the class based on the output file
class_name = os.path.splitext(os.path.basename(output_h_path))[0]