Commit c6fad472 authored by Mircea Bardac's avatar Mircea Bardac

throw error on incorrect language specification

Signed-off-by: 's avatarMircea Bardac <dev@mircea.bardac.net>


git-svn-id: svn+ssh://svn.psi-im.org/home/psi/svn/win-installer/trunk@50 2d3a5ac0-73f9-4639-b284-2310bd1da355
parent ba850bad
...@@ -25,6 +25,9 @@ for s in fmap.readlines(): ...@@ -25,6 +25,9 @@ for s in fmap.readlines():
langsettings = s.split('\t') langsettings = s.split('\t')
if langsettings[0] == '': continue if langsettings[0] == '': continue
if s[0] == '#': continue if s[0] == '#': continue
if len(langsettings) < 4:
print "Error: Invalid number of fields in language specification:", s
continue
lang_key = langsettings[0] lang_key = langsettings[0]
langmap[lang_key] = {} langmap[lang_key] = {}
langmap[lang_key]['section_id'] = langsettings[1] langmap[lang_key]['section_id'] = langsettings[1]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment