From 6c9a2d1d3ec752abbd9dd3133cfc5ccc0bfb9a64 Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Fri, 17 Nov 2023 08:37:09 +0100 Subject: [PATCH] I18n: use xgettext & msgcat --force-po argument to be sure POT files will be created even if no message is found --- src/I18n.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/I18n.php b/src/I18n.php index d607487..72a5c17 100644 --- a/src/I18n.php +++ b/src/I18n.php @@ -491,7 +491,7 @@ class I18n { $result = run_external_command(array_merge( array( 'msgcat', - "-t", "utf-8", "--use-first", + "-t", "utf-8", "--use-first", "--force-po", "-o", "$root_path/messages.pot", "$root_path/headers.pot", ),