.replace('(', '_') \
.replace(')', '_') \
.replace('/', '_') \
+ .replace('\'', '_') \
.replace(' ', '_')
while id in ids:
id = id + 'x'
ids[id] = True
if ldesc not in e:
- print("warning: %s missing %s description" % (e[lang], lang))
- continue
+ print("warning: term %s missing primary language %s description" % (e[lang], lang))
entry = E.glossentry(id=id)
if list_topic and 'topic' in e:
entry.append(E.glossterm('%s [%s]' % (e[lang], e['topic'])))
indexit(entry, e[l], l)
if "" != lstr:
entry.append(E.glossdef(E.para(lstr)))
+ else:
+ # only single word witout translations, skip it
+ continue
for desccode in desccodes:
codestr = 'desc-%s' % desccode
if codestr in e:
elif 'en' == args.langcode:
print("Engelsk")
print()
- make_glossary_docbook(lang='en', desccodes=('en', 'nb'),
+ make_glossary_docbook(lang='en', desccodes=('en'),
langcodes=('en', 'nb', 'se', 'sv', 'da', 'fi', 'is',),
output=args.output)
else: