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

Unified Diff: tools/grit/grit/format/policy_templates/policy_template_generator.py

Issue 6969064: Start generating translated policy templates (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: activate translations for mac Created 9 years, 7 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
Index: tools/grit/grit/format/policy_templates/policy_template_generator.py
diff --git a/tools/grit/grit/format/policy_templates/policy_template_generator.py b/tools/grit/grit/format/policy_templates/policy_template_generator.py
index 1d54b9726f3cc7b3b7e45bb081ec8c5d50b7fbc3..e2f61e6a686d36d1dfda8b3b038e126e96e9f55a 100644
--- a/tools/grit/grit/format/policy_templates/policy_template_generator.py
+++ b/tools/grit/grit/format/policy_templates/policy_template_generator.py
@@ -16,6 +16,7 @@ class PolicyTemplateGenerator:
'''
def _ImportMessage(self, msg_txt):
+ msg_txt = msg_txt.decode('utf-8')
# Replace the placeholder of app name.
msg_txt = msg_txt.replace('$1', self._config['app_name'])
msg_txt = msg_txt.replace('$2', self._config['os_name'])

Powered by Google App Engine
This is Rietveld 408576698