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

Unified Diff: grit/tool/android2grd.py

Issue 125523002: android2grd tool now puts <outputs> element first. (Closed) Base URL: http://grit-i18n.googlecode.com/svn/trunk
Patch Set: Created 6 years, 11 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: grit/tool/android2grd.py
diff --git a/grit/tool/android2grd.py b/grit/tool/android2grd.py
index 333e33d77ee800d4a7853e7421ab7d34c2e5729f..b4c136314bb5eae6ddd999bb58517122041122d5 100644
--- a/grit/tool/android2grd.py
+++ b/grit/tool/android2grd.py
@@ -194,15 +194,15 @@ OPTIONS may be any of the following:
'''<?xml version="1.0" encoding="UTF-8"?>
<grit base_dir="." latest_public_release="0"
current_release="1" source_lang_id="en">
+ <outputs />
+ <translations />
<release allow_pseudo="false" seq="1">
<messages fallback_to_english="true" />
</release>
- <translations />
- <outputs />
</grit>'''), dir='.')
- messages = root.children[0].children[0]
+ outputs = root.children[0]
translations = root.children[1]
- outputs = root.children[2]
+ messages = root.children[2].children[0]
assert (isinstance(messages, grit.node.empty.MessagesNode) and
isinstance(translations, grit.node.empty.TranslationsNode) and
isinstance(outputs, grit.node.empty.OutputsNode))
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698