diff options
author | David Robillard <d@drobilla.net> | 2011-11-05 16:35:24 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-11-05 16:35:24 +0000 |
commit | 00155d8f1e8648b7a459b241119dfac38d27437d (patch) | |
tree | 7490174b14e3f09baa8001ce97b7a5d1da4db093 | |
parent | e69bfc745b716e2c35ba7e6b8db4944685f0bec4 (diff) |
Fix i18n.
git-svn-id: svn://localhost/ardour2/branches/3.0@10461 d708f5d6-7413-0410-9779-e7cbd77b26cf
-rw-r--r-- | gtk2_ardour/wscript | 13 | ||||
-rw-r--r-- | libs/ardour/wscript | 5 | ||||
-rw-r--r-- | libs/gtkmm2ext/wscript | 13 | ||||
-rwxr-xr-x | waf | bin | 90442 -> 90835 bytes |
4 files changed, 17 insertions, 14 deletions
diff --git a/gtk2_ardour/wscript b/gtk2_ardour/wscript index 1aabd02f1a..9f9fb675b4 100644 --- a/gtk2_ardour/wscript +++ b/gtk2_ardour/wscript @@ -624,12 +624,13 @@ def build(bld): # i18n if bld.is_defined('ENABLE_NLS'): - mo_files = bld.path.ant_glob ('po/*.mo') + mo_files = bld.path.ant_glob('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', APPNAME + '.mo'), - mo) + lang = os.path.basename(mo.srcpath()).replace('.mo', '') + bld.install_as(os.path.join(bld.env['PREFIX'], 'share', 'locale', + lang, 'LC_MESSAGES', APPNAME + '.mo'), + mo) def i18n(bld): - autowaf.build_i18n(bld, srcdir, 'gtk2_ardour', APPNAME, gtk2_ardour_sources) + autowaf.build_i18n(bld, top, 'gtk2_ardour', APPNAME, gtk2_ardour_sources, + 'Paul Davis') diff --git a/libs/ardour/wscript b/libs/ardour/wscript index d7e8864013..6fd07ee50b 100644 --- a/libs/ardour/wscript +++ b/libs/ardour/wscript @@ -407,7 +407,7 @@ def build(bld): if bld.is_defined('ENABLE_NLS'): mo_files = bld.path.ant_glob('po/*.mo') for mo in mo_files: - lang = os.path.basename(mo).replace('.mo', '') + lang = os.path.basename(mo.srcpath()).replace('.mo', '') bld.install_as(os.path.join(bld.env['PREFIX'], 'share', 'locale', lang, 'LC_MESSAGES', 'libardour3.mo'), mo) @@ -452,4 +452,5 @@ def shutdown(): autowaf.shutdown() def i18n(bld): - autowaf.build_i18n (bld, '.', 'libs/ardour', APPNAME, libardour_sources) + autowaf.build_i18n(bld, top, 'libs/ardour', APPNAME, libardour_sources, + 'Paul Davis') diff --git a/libs/gtkmm2ext/wscript b/libs/gtkmm2ext/wscript index a07b33e8fe..e62205a2d5 100644 --- a/libs/gtkmm2ext/wscript +++ b/libs/gtkmm2ext/wscript @@ -98,15 +98,16 @@ def build(bld): # i18n if bld.is_defined('ENABLE_NLS'): - mo_files = bld.path.ant_glob ('po/*.mo') + mo_files = bld.path.ant_glob('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) + lang = os.path.basename(mo.srcpath()).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) + autowaf.build_i18n(bld, top, 'libs/gtkmm2ext', APPNAME, gtkmm2ext_sources, + 'Paul Davis') def shutdown(): autowaf.shutdown() Binary files differ |