From c201c77190bf66dc36d0d551912a6eae8bdad841 Mon Sep 17 00:00:00 2001 From: Julian Maurice Date: Tue, 13 Nov 2018 17:00:23 +0100 Subject: [PATCH] Bug 21823: Force creation of POT file even if there is no messages Content-Type: text/plain; charset=utf-8 Signed-off-by: Marcel de Rooy --- misc/translator/LangInstaller.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/translator/LangInstaller.pm b/misc/translator/LangInstaller.pm index b8a6ee6..5e0137b 100644 --- a/misc/translator/LangInstaller.pm +++ b/misc/translator/LangInstaller.pm @@ -636,7 +636,7 @@ sub extract_messages { $self->extract_messages_from_templates($tempdir, @tt_files); push @files_to_scan, @tt_files; - my $xgettext_cmd = "$self->{xgettext} -L Perl --from-code=UTF-8 " + my $xgettext_cmd = "$self->{xgettext} --force-po -L Perl --from-code=UTF-8 " . "--package-name=Koha --package-version='' " . "-k -k__ -k__x -k__n:1,2 -k__nx:1,2 -k__xn:1,2 -k__p:1c,2 " . "-k__px:1c,2 -k__np:1c,2,3 -k__npx:1c,2,3 -kN__ -kN__n:1,2 " -- 2.1.4