2
#This file is a part of the NVDA project.
3
#URL: http://www.nvda-project.org/
4
#Copyright 2010 James Teh <jamie@jantrid.net>.
5
#This program is free software: you can redistribute it and/or modify
6
#it under the terms of the GNU General Public License version 2.0, as published by
7
#the Free Software Foundation.
8
#This program is distributed in the hope that it will be useful,
9
#but WITHOUT ANY WARRANTY; without even the implied warranty of
10
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
11
#This license can be found at:
12
#http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
18
__path__=[os.path.join(sys.exec_prefix,'tools','i18n')]
22
def gettextMoFile_actionFunc(target,source,env):
23
msgfmt.make(source[0].path,target[0].path)
30
env['BUILDERS']['gettextMoFile']=env.Builder(
31
action=env.Action(gettextMoFile_actionFunc,lambda t,s,e: 'Compiling gettext template %s'%s[0].path),