Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automate translation files #880

Merged
merged 3 commits into from
Nov 30, 2024
Merged

Conversation

Epicpkmn11
Copy link
Contributor

@Epicpkmn11 Epicpkmn11 commented Nov 29, 2024

In response to a conversation with @ihaveamac on Discord, this makes the language.inl file be automatically generated from source.json on running make. It will be automatically regenerated if, and only if, source.json changes on non-clean builds.

Edit: I noticed the Spanish TRF was outdated which made me realize there's no particular reason I can think of not to automate those too so I added that in f48f0d5.

I also moved the translation version number to the JSON instead of being a magic number hidden away elsewhere in the code. This does not need to be manually bumped for translations, Crowdin will handle it automatically. It just needs to be bumped any time the order of source.json changes, in source.json itself.

Better than being a magic number somewhere in the code, source code gets it from source.json
@Epicpkmn11 Epicpkmn11 changed the title Automate language.inl creation Automate translation files Nov 30, 2024
@Epicpkmn11 Epicpkmn11 mentioned this pull request Nov 30, 2024
@Wolfvak Wolfvak merged commit 8cde50e into d0k3:master Nov 30, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants