summaryrefslogtreecommitdiffstats
path: root/tools/grit
diff options
context:
space:
mode:
Diffstat (limited to 'tools/grit')
-rw-r--r--tools/grit/grit/node/io.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/grit/grit/node/io.py b/tools/grit/grit/node/io.py
index 81d2f4c..00943af 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 '
'reference must contain messages in the language specified\n'
'by the \'lang\' attribute.')