/usr/share/svn-workbench/make_mo_files.py is in svn-workbench 1.6.8-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | #!/usr/bin/python
import sys
import os
localedir = sys.argv[1]
all_lang = ['en', 'de', 'hu']
for lang in all_lang:
mo_output_dir = '%s/%s/LC_MESSAGES' % (localedir, lang)
os.makedirs( mo_output_dir )
if lang == 'en':
po_file = 'I18N/pysvn_workbench_en.current.po'
else:
po_file = 'I18N/pysvn_workbench_%s.po' % lang
rc = os.system( 'msgfmt '
'%s '
'--check-format '
'--output-file=%s/pysvn_workbench.mo' %
(po_file, mo_output_dir) )
if rc != 0:
sys.exit( rc )
print 'Info: %s/pysvn_workbench.mo' % mo_output_dir
sys.exit( 0 )
|