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

Lang providers #736

Merged
merged 23 commits into from
Jul 6, 2023
Merged

Lang providers #736

merged 23 commits into from
Jul 6, 2023

Conversation

pixar02
Copy link
Collaborator

@pixar02 pixar02 commented May 25, 2023

Added Lang Providers. fixes #722
It will generate all blocks items and block entities that we add to the game automatically. (When running Datagen or when building the jar)

If you have any manual entries you want to add (text/itemgroups/villager professions/...):
Add the key in MinelabsLangProvider (with either an empty translation or a predefined string missing_translation)

You can then choose to add the the correct translation for each Lang in the respective provider (making them Dynamic for when we change subfolders / identifiers) OR add it to the STATIC lang file which we have to manually update.

Notes:

  • Dutch translation is just copied from Flemish.
  • If a key already has a translation. Datagen will fail to run and give an error

@pixar02 pixar02 added the language Issue has something to do with language or translation label May 25, 2023
@pixar02 pixar02 requested a review from JoeyDP May 25, 2023 13:32
@pixar02 pixar02 self-assigned this May 25, 2023
@JoeyDP JoeyDP added this to the beta β milestone May 25, 2023
pixar02 and others added 9 commits May 25, 2023 16:41
# Conflicts:
#	src/main/resources/assets/minelabs/lang/nl_nl.json
# Conflicts:
#	src/main/generated/assets/minelabs/lang/en_us.json
#	src/main/generated/assets/minelabs/lang/nl_be.json
#	src/main/resources/assets/minelabs/lang/en_us.static.json
#	src/main/resources/assets/minelabs/lang/nl_nl.json
Copy link
Member

@JoeyDP JoeyDP left a comment

Choose a reason for hiding this comment

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

Pixar, je krijgt van mij carte blanche wat de language datagen tools betreft, zolang je zelf er ook voor zorgt dat alles vertaalt geraakt. Is dat fair?

@pixar02 pixar02 linked an issue Jul 1, 2023 that may be closed by this pull request
@pixar02 pixar02 merged commit f767a2f into main Jul 6, 2023
@pixar02 pixar02 deleted the lang/provider branch July 6, 2023 18:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
language Issue has something to do with language or translation
Projects
None yet
2 participants