aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/scripts/msgfmthelper.py
diff options
context:
space:
mode:
authorKonstantin <rilian-la-te@users.noreply.github.com>2019-04-22 14:54:05 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2019-04-22 14:54:05 +0300
commit841995cddf7ad2fe18ff89ac6508aef459ec5742 (patch)
treef13f065c15e00dee9633f54e9cb3460fd51cb477 /mesonbuild/scripts/msgfmthelper.py
parent8dedddca363b2edb7c5e17d6560418f8a20626bd (diff)
downloadmeson-841995cddf7ad2fe18ff89ac6508aef459ec5742.zip
meson-841995cddf7ad2fe18ff89ac6508aef459ec5742.tar.gz
meson-841995cddf7ad2fe18ff89ac6508aef459ec5742.tar.bz2
i18n: add args keyword to merge_file
* i18n: add args keyword to merge_file * i18n: add testcase to msgfmt args
Diffstat (limited to 'mesonbuild/scripts/msgfmthelper.py')
-rw-r--r--mesonbuild/scripts/msgfmthelper.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/mesonbuild/scripts/msgfmthelper.py b/mesonbuild/scripts/msgfmthelper.py
index d4deb00..737f1bc 100644
--- a/mesonbuild/scripts/msgfmthelper.py
+++ b/mesonbuild/scripts/msgfmthelper.py
@@ -22,6 +22,7 @@ parser.add_argument('output')
parser.add_argument('type')
parser.add_argument('podir')
parser.add_argument('--datadirs', default='')
+parser.add_argument('args', default=[], metavar='extra msgfmt argument', nargs='*')
def run(args):
@@ -31,5 +32,5 @@ def run(args):
env = os.environ.copy()
env.update({'GETTEXTDATADIRS': options.datadirs})
return subprocess.call(['msgfmt', '--' + options.type, '-d', options.podir,
- '--template', options.input, '-o', options.output],
+ '--template', options.input, '-o', options.output] + options.args,
env=env)