~cypheon/elfelli

ref: 6b1ab0a31caf9eef11076aa284e223100634f1a4 elfelli/po/SConscript -rw-r--r-- 404 bytes
6b1ab0a3 — Johann Rudloff Install SCons on Travis-CI/Linux. 2 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('.')