~cypheon/elfelli

ref: d62f0945c78677b2fe75fe2a71484afb4875f9a2 elfelli/po/SConscript -rw-r--r-- 404 bytes
d62f0945 — Johann Rudloff Try enabling Travis macOS build env. 3 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# -*- Python -*-

from glob import glob

Import('env')

# Compatibility with earlier SCons versions:
if not hasattr(env, 'MOFiles'):
    env.MOFiles = env.MO

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

Default('.')