Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(752)

Side by Side Diff: grit/tool/build.py

Issue 9958067: Fixing a bug in GRIT where messages with substitutions would (Closed) Base URL: https://grit-i18n.googlecode.com/svn/trunk
Patch Set: Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « grit/testdata/substitute.xmb ('k') | grit/tool/build_unittest.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 '''The 'grit build' tool along with integration for this tool with the 6 '''The 'grit build' tool along with integration for this tool with the
7 SCons build system. 7 SCons build system.
8 ''' 8 '''
9 9
10 import filecmp 10 import filecmp
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 print '\n'.join(warnings) 283 print '\n'.join(warnings)
284 284
285 # Print out any fallback warnings, and missing translation errors, and 285 # Print out any fallback warnings, and missing translation errors, and
286 # exit with an error code if there are missing translations in a non-pseudo 286 # exit with an error code if there are missing translations in a non-pseudo
287 # and non-official build. 287 # and non-official build.
288 warnings = (self.res.UberClique().MissingTranslationsReport(). 288 warnings = (self.res.UberClique().MissingTranslationsReport().
289 encode('ascii', 'replace')) 289 encode('ascii', 'replace'))
290 if warnings and self.defines.get('_google_chrome', False): 290 if warnings and self.defines.get('_google_chrome', False):
291 print warnings 291 print warnings
292 if self.res.UberClique().HasMissingTranslations(): 292 if self.res.UberClique().HasMissingTranslations():
293 print self.res.UberClique().missing_translations_
293 sys.exit(-1) 294 sys.exit(-1)
OLDNEW
« no previous file with comments | « grit/testdata/substitute.xmb ('k') | grit/tool/build_unittest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698