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

Unified Diff: tools/grit/grit/node/io.py

Issue 1332001: Switch from he.xtb to iw.xtb because the translation console is (Closed)
Patch Set: use he Created 10 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 | « chrome/app/resources/google_chrome_strings_iw.xtb ('k') | webkit/glue/resources/webkit_strings_iw.xtb » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/grit/grit/node/io.py
diff --git a/tools/grit/grit/node/io.py b/tools/grit/grit/node/io.py
index 81d2f4cdedc7b47e2eb04dd371e8cb6a1838e402..00943af853f145032647cc1e0882e9a7cd486bde 100644
--- a/tools/grit/grit/node/io.py
+++ b/tools/grit/grit/node/io.py
@@ -48,7 +48,10 @@ class FileNode(base.Node):
except:
print "Exception during parsing of %s" % self.GetFilePath()
raise
- assert lang == self.attrs['lang'], ('The XTB file you '
+ # We special case 'he' and 'iw' because the translation console uses 'iw'
+ # and we use 'he'.
+ assert (lang == self.attrs['lang'] or
+ (lang == 'iw' and self.attrs['lang'] == 'he')), ('The XTB file you '
Mark Larson (Google) 2010/03/26 00:32:42 We don't do this for lang=='nb'. Should we?
'reference must contain messages in the language specified\n'
'by the \'lang\' attribute.')
« no previous file with comments | « chrome/app/resources/google_chrome_strings_iw.xtb ('k') | webkit/glue/resources/webkit_strings_iw.xtb » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698