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

Unified Diff: grit/node/message.py

Issue 9924009: Add c_format as a format option. (Closed) Base URL: https://grit-i18n.googlecode.com/svn/trunk
Patch Set: 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/node/empty.py ('k') | grit/node/misc.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: grit/node/message.py
diff --git a/grit/node/message.py b/grit/node/message.py
index 6f7478a652dcf736d95f493741a7df0f62c29c14..bb0dd4d816194de8f21d74e93cb4f4492cda2a12 100644
--- a/grit/node/message.py
+++ b/grit/node/message.py
@@ -109,6 +109,8 @@ class MessageNode(base.ContentNode):
return grit.format.rc_header.Item()
elif t in ('rc_all', 'rc_translateable', 'rc_nontranslateable'):
return grit.format.rc.Message()
+ elif t == 'c_format' and self.SatisfiesOutputCondition():
+ return grit.format.c_format.Message()
elif t == 'js_map_format':
return grit.format.js_map_format.Message()
else:
« no previous file with comments | « grit/node/empty.py ('k') | grit/node/misc.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698