diff options
author | tony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-26 01:32:03 +0000 |
---|---|---|
committer | tony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-26 01:32:03 +0000 |
commit | 3c348025facf95bc328e7b1465afeee5083bad78 (patch) | |
tree | 07b9e3439d95705a14e626224267bb4d9f0035d2 /tools/grit | |
parent | c2bb2e5778d3a6a8a70e942c55693214c640a8ba (diff) | |
download | chromium_src-3c348025facf95bc328e7b1465afeee5083bad78.zip chromium_src-3c348025facf95bc328e7b1465afeee5083bad78.tar.gz chromium_src-3c348025facf95bc328e7b1465afeee5083bad78.tar.bz2 |
Switch from he.xtb to iw.xtb because the translation console is
deprecating 'he' in favor of 'iw'.
Review URL: http://codereview.chromium.org/1332001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@42713 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools/grit')
-rw-r--r-- | tools/grit/grit/node/io.py | 5 |
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.') |