~cypheon/elfelli

ref: 366eb2da9b0ba700e35ed60878bbf8e9416d2539 elfelli/po/SConscript -rw-r--r-- 332 bytes
366eb2da — Johann Rudloff Better and cleaner installation. 15 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
# -*- Python -*-

from glob import glob

Import('env')

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