summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-11-05 16:35:24 +0000
committerDavid Robillard <d@drobilla.net>2011-11-05 16:35:24 +0000
commit00155d8f1e8648b7a459b241119dfac38d27437d (patch)
tree7490174b14e3f09baa8001ce97b7a5d1da4db093 /libs
parente69bfc745b716e2c35ba7e6b8db4944685f0bec4 (diff)
Fix i18n.
git-svn-id: svn://localhost/ardour2/branches/3.0@10461 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs')
-rw-r--r--libs/ardour/wscript5
-rw-r--r--libs/gtkmm2ext/wscript13
2 files changed, 10 insertions, 8 deletions
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()