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

Unified Diff: grit/tool/resize.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/build.py ('k') | grit/tool/transl2tc.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: grit/tool/resize.py
diff --git a/grit/tool/resize.py b/grit/tool/resize.py
index 00e52aca8dea681484e7a4c27c8b122c8d5091d0..f52b8def718d77588cf5306089e3b9acb66335a5 100644
--- a/grit/tool/resize.py
+++ b/grit/tool/resize.py
@@ -11,7 +11,6 @@ import os
import types
from grit.tool import interface
-from grit.tool import build
from grit import grd_reader
from grit import pseudo
from grit import util
@@ -213,7 +212,7 @@ near the top of the file, before you open it in Visual Studio.
self.codepage_number = int(val)
self.codepage_number_specified_explicitly = True
if key == '-D':
- name, val = build.ParseDefine(val)
+ name, val = util.ParseDefine(val)
self.defines[name] = val
res_tree = grd_reader.Parse(opts.input, debug=opts.extra_verbose)
@@ -289,7 +288,7 @@ near the top of the file, before you open it in Visual Studio.
# Create the resource.h file
header_defines = []
for node in grd:
- formatter = node.ItemFormatter('rc_header')
+ !formatter = node.ItemFormatter('rc_header')
if formatter and not isinstance(formatter, rc_header.TopLevel):
header_defines.append(formatter.Format(node, self.lang))
header_text = HEADER_TEMPLATE.replace('[[DEFINES]]', ''.join(header_defines))
« no previous file with comments | « grit/tool/build.py ('k') | grit/tool/transl2tc.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698