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

[Bug]: Villagers names on trading tab JEI/REI/EMI are not translated #5091

Open
2 tasks done
ffuentesm opened this issue Jan 17, 2024 · 6 comments
Open
2 tasks done
Labels
1.20 bug Other Mod Causes This Another mod causes this issue

Comments

@ffuentesm
Copy link

What happened?

Would be nice to fix this long string name for their proper name.
image

Minecraft Version

1.20.1

Ice and Fire version

iceandfire 2.1.13-1.20.1+build.beta-2

Citadel version

citadel 2.4.9

Relevant log output

https://mclo.gs/FfzlFk0

Other Information

  • I am using other mods besides Ice and Fire
  • I have attached a log file from the session that I have experienced this issue
@ffuentesm ffuentesm added the bug label Jan 17, 2024
@github-actions github-actions bot added the 1.20 label Jan 17, 2024
@TheBv TheBv added the Other Mod Causes This Another mod causes this issue label Feb 18, 2024
@TheBv
Copy link
Collaborator

TheBv commented Feb 18, 2024

I've looked into this and it seems to only be Just Enough Resources that's not able to properly resolve the translation string.
E.g Just enough Professions handles this case fine.
(The translation string should be "entity.minecraft.villagers.iceandfire.scribe")
I don't see us doing anything different when registering the villager when compared to other mods that add villager professions so I'm unsure about what to do here.

@ffuentesm
Copy link
Author

ffuentesm commented Feb 18, 2024

I've looked into this and it seems to only be Just Enough Resources that's not able to properly resolve the translation string. E.g Just enough Professions handles this case fine. (The translation string should be "entity.minecraft.villagers.iceandfire.scribe") I don't see us doing anything different when registering the villager when compared to other mods that add villager professions so I'm unsure about what to do here.

The error I posted was not from JER but EMI trades, and only the scribe is failing the display the name. I am going to ask them if is something on their end.

@ffuentesm
Copy link
Author

From what I see, the new translation does not expect the mod id but only the name. As other villagers do follow the expected translation key format (entity.minecraft.villagers.scribe). I feel that JEP uses a hard-coded code as it does not expect a lot of modularity

@TheBv
Copy link
Collaborator

TheBv commented Feb 18, 2024

Can you maybe link a mod that generates the "correct" translation keys?
I've looked into some and I don't quite understand why ice and fire would be behaving differently since we seem to be doing exactly the same as some other mods. Maybe I'm missing something obvious though.

@ffuentesm
Copy link
Author

ffuentesm commented Feb 18, 2024

A few weeks ago, I had the same problem with Immersive engineering, and they seemed to be able to fix it
BluSunrize/ImmersiveEngineering#5837
BluSunrize/ImmersiveEngineering@1bba779
image

Mods that add custom villagers and have the correct translation:
IE: https://legacy.curseforge.com/minecraft/mc-mods/immersive-engineering
Ars:https://www.curseforge.com/minecraft/mc-mods/ars-nouveau
Universal Saw: https://www.curseforge.com/minecraft/mc-mods/sawmill

@TheBv
Copy link
Collaborator

TheBv commented Feb 18, 2024

Right I see they just duplicated the translation keys.
Fair enough. I'll do that then I guess.
Thanks :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1.20 bug Other Mod Causes This Another mod causes this issue
Projects
Status: In-Progress
Development

No branches or pull requests

2 participants