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

Unified Diff: grit/tool/transl2tc.py

Issue 9965022: Allow substitution of messages as variables in other messages. (Closed) Base URL: https://grit-i18n.googlecode.com/svn/trunk
Patch Set: Fix unit tests for policy writers. Created 8 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « grit/tool/resize.py ('k') | grit/tool/transl2tc_unittest.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: grit/tool/transl2tc.py
diff --git a/grit/tool/transl2tc.py b/grit/tool/transl2tc.py
index db47676bd67a586cca223c6b67397a5734b68f9b..33ba6d8df32ea620dbdfd22bc46370d0e71fd973 100644
--- a/grit/tool/transl2tc.py
+++ b/grit/tool/transl2tc.py
@@ -115,8 +115,12 @@ Bulk Translation Upload tool.
'''
source_grd = self.rc2grd.Process(source_rc, source_path)
self.VerboseOut('Read %s into GRIT format, running gatherers.\n' % source_path)
+ source_grd.SetOutputContext(current_grd.output_language,
+ current_grd.defines)
source_grd.RunGatherers(recursive=True, debug=self.o.extra_verbose)
transl_grd = self.rc2grd.Process(transl_rc, transl_path)
+ transl_grd.SetOutputContext(current_grd.output_language,
+ current_grd.defines)
self.VerboseOut('Read %s into GRIT format, running gatherers.\n' % transl_path)
transl_grd.RunGatherers(recursive=True, debug=self.o.extra_verbose)
self.VerboseOut('Done running gatherers for %s.\n' % transl_path)
« no previous file with comments | « grit/tool/resize.py ('k') | grit/tool/transl2tc_unittest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698