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.') |