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:
parent
d8240ca782
commit
f4c75bc513
1 changed files with 6 additions and 3 deletions
|
@ -356,7 +356,8 @@ class I18n {
|
||||||
"-o", $pot_file, // Output
|
"-o", $pot_file, // Output
|
||||||
"--omit-header", // No POT header
|
"--omit-header", // No POT header
|
||||||
"--keyword=___", // Handle custom ___() translation function
|
"--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
|
$eesyphp_php_files[1], // Pass PHP files list via STDIN
|
||||||
true, // Escape parameters
|
true, // Escape parameters
|
||||||
|
@ -392,7 +393,8 @@ class I18n {
|
||||||
"-o", $pot_file, // Output
|
"-o", $pot_file, // Output
|
||||||
"--omit-header", // No POT header
|
"--omit-header", // No POT header
|
||||||
"--keyword=___", // Handle custom ___() translation function
|
"--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
|
$php_files[1], // Pass PHP files list via STDIN
|
||||||
true, // Escape parameters
|
true, // Escape parameters
|
||||||
|
@ -429,7 +431,8 @@ class I18n {
|
||||||
"-o", $pot_file, // Output
|
"-o", $pot_file, // Output
|
||||||
"--omit-header", // No POT header
|
"--omit-header", // No POT header
|
||||||
"--keyword=___", // Handle custom ___() translation function
|
"--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
|
$result[1], // Pass JS files list via STDIN
|
||||||
true, // Escape arguments
|
true, // Escape arguments
|
||||||
|
|
Loading…
Reference in a new issue