Fix i18n.

git-svn-id: svn://localhost/ardour2/branches/3.0@10461 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
David Robillard 2011-11-05 16:35:24 +00:00
parent e69bfc745b
commit 00155d8f1e
4 changed files with 17 additions and 14 deletions

View File

@ -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')

View File

@ -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')

View File

@ -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()

BIN
waf vendored

Binary file not shown.