From 9166ba2bff5898f4b93593a60372e8fb2253d44a 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 Signed-off-by: Marcel de Rooy Signed-off-by: Martin Renvoize Signed-off-by: Nick Clemens --- 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 b8a6ee64ae..5e0137b45c 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.39.5