Fix i18n.
git-svn-id: svn://localhost/ardour2/branches/3.0@10461 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
e69bfc745b
commit
00155d8f1e
@ -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')
|
||||
|
@ -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')
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user