I18n: use xgettext --force-po argument to be sure POT file will be created even if no message is found

This commit is contained in:
Benjamin Renard 2023-11-17 08:31:27 +01:00
parent d8240ca782
commit f4c75bc513
Signed by: bn8
GPG key ID: 3E2E1CE1907115BC

View file

@ -356,7 +356,8 @@ class I18n {
"-o", $pot_file, // Output
"--omit-header", // No POT header
"--keyword=___", // Handle custom ___() translation function
"--files=-" // Read files to parse from STDIN
"--files=-", // Read files to parse from STDIN
"--force-po", // Write PO file even if empty
),
$eesyphp_php_files[1], // Pass PHP files list via STDIN
true, // Escape parameters
@ -392,7 +393,8 @@ class I18n {
"-o", $pot_file, // Output
"--omit-header", // No POT header
"--keyword=___", // Handle custom ___() translation function
"--files=-" // Read files to parse from STDIN
"--files=-", // Read files to parse from STDIN
"--force-po", // Write PO file even if empty
),
$php_files[1], // Pass PHP files list via STDIN
true, // Escape parameters
@ -429,7 +431,8 @@ class I18n {
"-o", $pot_file, // Output
"--omit-header", // No POT header
"--keyword=___", // Handle custom ___() translation function
"--files=-" // Read files to parse from STDIN
"--files=-", // Read files to parse from STDIN
"--force-po", // Write PO file even if empty
),
$result[1], // Pass JS files list via STDIN
true, // Escape arguments