intltoolΒΆ

Support for translation tools such as msgfmt and intltool

Usage:

def configure(conf):
        conf.load('gnu_dirs intltool')

def build(bld):
        # process the .po files into .gmo files, and install them in LOCALEDIR
        bld(features='intltool_po', appname='myapp', podir='po', install_path="${LOCALEDIR}")

        # process an input file, substituting the translations from the po dir
        bld(
                features  = "intltool_in",
                podir     = "../po",
                style     = "desktop",
                flags     = ["-u"],
                source    = 'kupfer.desktop.in',
                install_path = "${DATADIR}/applications",
        )

Usage of the waflib.Tools.gnu_dirs is recommended, but not obligatory.

Features defined in this module: