Skip to content

Commit a436420

Browse files
committed
fixed bug with locale build building the terms
1 parent 8bd0be8 commit a436420

File tree

2 files changed

+7174
-1086
lines changed

2 files changed

+7174
-1086
lines changed

locale/scripts/locale-build.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,8 +221,10 @@ class TermExtractor {
221221

222222
if (phpFiles.length > 0) {
223223
const filesArg = phpFiles.join(' ');
224+
// Use absolute path to ensure PHP terms merge into the correct file
225+
const outputPath = this.messagesFile;
224226
execSync(
225-
`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}`,
226228
{ cwd: srcDir, stdio: 'inherit' }
227229
);
228230
}

0 commit comments

Comments
 (0)