28
32
# eg: [('/usr/share/locale/en_GB/LC_MESSAGES', ['po/en_GB/LC_MESSAGES/epidermis.mo'])
29
33
for lang in os.listdir("po"):
30
34
if os.path.isdir(os.path.join("po", lang, "LC_MESSAGES")):
35
if len(glob.glob(os.path.join("po",lang,"LC_MESSAGES","*.mo"))) <= 0:
36
print >> sys.stderr, "could not find %s" % os.path.join("po",lang,"LC_MESSAGES","*.mo")
31
38
mo_files.append((os.path.join("/usr/share/locale", lang, "LC_MESSAGES"), glob.glob(os.path.join("po", lang, "LC_MESSAGES") + "/*.mo")))
33
41
# similar to mo_files but for docbooks