~cypheon/elfelli

ref: 9af1d51426d7502147bc86c2e24c2ebee987f2e9 elfelli/po/SConscript -rw-r--r-- 409 bytes
9af1d514 — Johann Rudloff * mo files are built by SCons Builder Objects 15 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# -*- Python -*-

from glob import glob

Import('env paths targets')

locales = map(lambda str: str[:-3], glob('*.po'))
for locale in locales:
    env.MO('locale/%s/LC_MESSAGES/elfelli' % locale, locale)

if 'install' in targets:
    for locale in locales:
        env.InstallAs('%s/%s/LC_MESSAGES/elfelli.mo' % (paths['localedir'], locale),
                      'locale/%s/LC_MESSAGES/elfelli.mo' % locale)