Skip to content

create_language_translations.js: use absolute path everywhere.#5101

Open
demiankatz wants to merge 2 commits intovufind-org:release-11.0from
demiankatz:release-11.0-create-lt-fix
Open

create_language_translations.js: use absolute path everywhere.#5101
demiankatz wants to merge 2 commits intovufind-org:release-11.0from
demiankatz:release-11.0-create-lt-fix

Conversation

@demiankatz
Copy link
Member

The create_language_translations.js would fail if not run from $VUFIND_HOME; this change makes it more flexible, so you can run it from any working directory.

@demiankatz demiankatz added this to the 11.0.2 milestone Feb 26, 2026
@demiankatz demiankatz added the tooling pull requests that change project tooling label Feb 26, 2026
@@ -61,4 +61,4 @@ args.forEach(lang => {
fs.writeFileSync(`${home}/languages/ISO639-3/${lang}.ini`, lines + "\n" + existing);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder why outfile is not used here.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very good question -- appears to be an oversight, which I have corrected. Thanks!

Copy link
Contributor

@stweil stweil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

${home}/languages was already used in the rest of the code here, and adding the missing ${home}/ in line 64 is good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tooling pull requests that change project tooling

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants