We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8bd0be8 commit a436420Copy full SHA for a436420
locale/scripts/locale-build.js
@@ -221,8 +221,10 @@ class TermExtractor {
221
222
if (phpFiles.length > 0) {
223
const filesArg = phpFiles.join(' ');
224
+ // Use absolute path to ensure PHP terms merge into the correct file
225
+ const outputPath = this.messagesFile;
226
execSync(
- `xgettext --no-location --no-wrap --join-existing --from-code=UTF-8 -o ../locale/messages.po -L PHP ${filesArg}`,
227
+ `xgettext --no-location --no-wrap --join-existing --from-code=UTF-8 -o "${outputPath}" -L PHP ${filesArg}`,
228
{ cwd: srcDir, stdio: 'inherit' }
229
);
230
}
0 commit comments