- diff -r 2b3743cd25a4 webtranslate/data.py
- --- a/webtranslate/data.py Sun Jun 07 12:45:23 2015 +0200
- +++ b/webtranslate/data.py Sun Jun 07 14:09:43 2015 +0200
- @@ -365,7 +365,7 @@
- handle = open(fname, 'rt', encoding='utf-8')
- data = json.load(handle)
- handle.close()
- - return load_language_json(projtype, pnode)
- + return load_language_json(projtype, data)
- # }}}
- # {{{ class XmlSaver:
- class XmlSaver:
- @@ -1161,8 +1161,8 @@
- @return: The loaded language.
- @rtype: L{Language}
- """
- - assert 'lang_version' in node
- - assert node['lang_version'] == 1
- + assert 'language_version' in node
- + assert node['language_version'] == 1
- lng = Language(node['name'])