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

Unified Diff: grit/gather/interface.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/gather/admin_template_unittest.py ('k') | grit/gather/skeleton_gatherer.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: grit/gather/interface.py
diff --git a/grit/gather/interface.py b/grit/gather/interface.py
index f60534f38898db15c196bdde52814f8cd9101b5b..e2e91d87425199556eb7135f68daa5799737158f 100644
--- a/grit/gather/interface.py
+++ b/grit/gather/interface.py
@@ -99,6 +99,7 @@ class GathererBase(object):
'''
raise NotImplementedError()
+ @staticmethod
def FromFile(rc_file, extkey=None, encoding = 'cp1252'):
'''Loads the resource from the file 'rc_file'. Optionally an external key
(which gets passed to the gatherer's constructor) can be specified.
@@ -115,5 +116,12 @@ class GathererBase(object):
grit.gather.interface.GathererBase subclass
'''
raise NotImplementedError()
- FromFile = staticmethod(FromFile)
+
+ def SubstituteMessages(self, substituter):
+ '''Applies substitutions to all messages in the gatherer.
+
+ Args:
+ substituter: a grit.util.Substituter object.
+ '''
+ pass
« no previous file with comments | « grit/gather/admin_template_unittest.py ('k') | grit/gather/skeleton_gatherer.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698