import re
import sys
+import os
def lang_file_name (p, langext, ext):
if langext != '':
try:
import gettext
- import os
translation = {}
for l in LANGUAGES:
[l.code])
translation[l.code] = t.gettext
except:
- sys.stderr.write ('langdefs.py: warning: lilypond-doc gettext domain not found.\n')
+ if os.environ.has_key ('LYDOC_LOCALEDIR'):
+ sys.stderr.write ('langdefs.py: warning: lilypond-doc gettext domain not found.\n')
translation = dict ([(l.code, lambda x: x) for l in LANGUAGES])