mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-10 00:34:59 +01:00
make i18n build work ; add mackie dir back to build ; token work on amp for MIDI; don't try to subgroup route groups with MIDI (for now)
git-svn-id: svn://localhost/ardour2/branches/3.0@5412 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
272c1a40db
commit
3b7230552d
14 changed files with 488 additions and 354 deletions
41
w18n.py
Normal file
41
w18n.py
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
#!/usr/bin/env python
|
||||
|
||||
import autowaf
|
||||
import os
|
||||
import glob
|
||||
|
||||
def build_i18n(bld,dir,name,sources):
|
||||
pwd = bld.get_curdir()
|
||||
os.chdir(pwd)
|
||||
|
||||
pot_file = '%s.pot' % name
|
||||
|
||||
args = [ 'xgettext',
|
||||
'--keyword=_',
|
||||
'--keyword=N_',
|
||||
'--from-code=UTF-8',
|
||||
'-o', pot_file,
|
||||
'--copyright-holder="Paul Davis"' ]
|
||||
args += sources
|
||||
print 'Updating ', pot_file
|
||||
os.spawnvp (os.P_WAIT, 'xgettext', args)
|
||||
|
||||
po_files = glob.glob ('po/*.po')
|
||||
|
||||
for po_file in po_files:
|
||||
args = [ 'msgmerge',
|
||||
'--update',
|
||||
po_file,
|
||||
pot_file ]
|
||||
print 'Updating ', po_file
|
||||
os.spawnvp (os.P_WAIT, 'msgmerge', args)
|
||||
|
||||
for po_file in po_files:
|
||||
mo_file = po_file.replace ('.po', '.mo')
|
||||
args = [ 'msgfmt',
|
||||
'-c',
|
||||
'-o',
|
||||
mo_file,
|
||||
po_file ]
|
||||
print 'Generating ', po_file
|
||||
os.spawnvp (os.P_WAIT, 'msgfmt', args)
|
||||
Loading…
Add table
Add a link
Reference in a new issue