diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2011-06-12 22:05:55 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2011-06-12 22:05:55 +0000 |
commit | 786a61a2757426eb6dce6909169fd0913ebe2be8 (patch) | |
tree | 757c6a35f484c8efc74a25098697a3957ed97d1b /libs/gtkmm2ext/wscript | |
parent | ca1a5ef8769ab64c668f5a944eb04a6805bead09 (diff) |
update i18n build system and *.po files for translators
git-svn-id: svn://localhost/ardour2/branches/3.0@9714 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/gtkmm2ext/wscript')
-rw-r--r-- | libs/gtkmm2ext/wscript | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libs/gtkmm2ext/wscript b/libs/gtkmm2ext/wscript index 882cc2b8aa..e90cef825e 100644 --- a/libs/gtkmm2ext/wscript +++ b/libs/gtkmm2ext/wscript @@ -96,5 +96,17 @@ def build(bld): else: obj.source += ['gtkapplication_x11.c'] + # i18n + if bld.env['ENABLE_NLS']: + mo_files = glob.glob (os.path.join (bld.get_curdir(), 'po/*.mo')) + for mo in mo_files: + lang = os.path.basename (mo).replace ('.mo', '') + bld.install_as (os.path.join(bld.env['PREFIX'], 'share', 'locale', + lang, 'LC_MESSAGES', 'libgtkmm2ext.mo'), + mo) + +def i18n(bld): + autowaf.build_i18n(bld, '.', 'libs/gtkmm2ext', APPNAME, gtkmm2ext_sources) + def shutdown(): autowaf.shutdown() |