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

Unified Diff: grit/format/policy_templates/template_formatter.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/format/js_map_format.py ('k') | grit/format/policy_templates/writers/writer_unittest_common.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: grit/format/policy_templates/template_formatter.py
diff --git a/grit/format/policy_templates/template_formatter.py b/grit/format/policy_templates/template_formatter.py
index 906f2e1c5856be0cc386b28161a921290a1c4940..1bd012939d558f9848ff2ca64d6f54d2b8c2551c 100644
--- a/grit/format/policy_templates/template_formatter.py
+++ b/grit/format/policy_templates/template_formatter.py
@@ -44,7 +44,7 @@ class TemplateFormatter(interface.ItemFormatter):
# The module that contains the writer class:
self._writer_module = sys.modules[writer_module_name]
- def Format(self, item, lang='en', begin_item=True, output_dir='.'):
+ def Format(self, item, lang='en', output_dir='.'):
'''Generates a template corresponding to an <output> node in the grd file.
Args:
@@ -57,9 +57,6 @@ class TemplateFormatter(interface.ItemFormatter):
Returns:
The text of the template file.
'''
- if not begin_item:
- return ''
-
self._lang = lang
self._config = writer_configuration.GetConfigurationForBuild(item.defines)
self._policy_data = None
« no previous file with comments | « grit/format/js_map_format.py ('k') | grit/format/policy_templates/writers/writer_unittest_common.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698