Another minor issue is that scons install is halfway broken atm. It will just copy all data, ignoring SConscripts in subdirectories. I assume this was hacked into place to reduce script maintenance at some point.
Current idea is to use something like this (in the data/locale/SConscript):
Code:
languages = [os.path.basename(po)[0:-3] for po in src if po.endswith('.po')]
for lang in languages:
mo_file = lang + '/LC_MESSAGES/vdrift.mo'
po_file = lang + ".po"
po_src_file = env.File(po_file).srcnode()
tgt = env.MoBuild(mo_file, po_src_file)
inst_tgt = env.InstallAs(os.path.join(env.subst('$destdir$localedir'), mo_file), tgt)
env.Alias("install", inst_tgt)