Consistency+

Consistency+

2M Downloads

LANG file issues server side

MissGamerz opened this issue ยท 7 comments

commented

Describe the bug:
your mod breaks default minecraft lang on servers

Versions:
Minecraft version: 1.19.2
C+ version: 0.5.1
QSL

Suggested Fix
Move your stuff from /assets/minecraft/lang/en_us.json to */assets/consistency_plus/lang/en_us.json

ive done this in my copy and it worked fine

commented

ive done this in my copy and it worked fine

image
I tried it out and our translations don't get applied when they're in our namespace. "Bricks" is supposed to be replaced by "Terracotta Bricks," and having the vanilla string change in the consistency_plus namespace doesn't properly apply it. This screenshot is taken in production, so its not just a dev env issue.

commented

huh interesting i didnt notice the renaming of vanilla blocks, which yea that wouldnt work but somehow something consistancy+ is breaking lang files i cant seem to find the issue other than that, this appears to be in server enviroments only though and in client only enviroments it works fine...

do you have discord?

commented

yea ive join ping me its easier on there than on here maybe i can show you aswell with screenshare or something?

commented

huh interesting i didnt notice the renaming of vanilla blocks

All of the strings in the minecraft namespaced lang file are ones that override vanilla blocks, which is why they were separated into their own file.
What specific lang/mods break when using C+ on a server? I suspect there's a larger issue here than it seems, because having certain block/item strings in a minecraft namespaced lang file shouldn't be causing issues with mods that don't also modify those specific strings. More details will definitely help in figuring this out -

  • Does it happen with all mods?
  • For the mods it affects, does it break the modded strings, modified vanilla strings from that mod, or both?

do you have discord?

We do have a discord (https://discord.gg/VeNX7h8bAK) if you want to talk with us about the issue there.

commented

Did you end up solving this?

Anyways, just chiming in to say that merging lang files seems to work without issues on my end. Everything appears to be properly translated. I've been doing it since that Minekea issue as a temporary fix.

2022-10-04_17 05 01

Here's the lang file I ended up with en_us.json.txt

commented

Interesting. I tried in both the dev env and a production build and the vanilla strings weren't properly overwritten when merging them, and only worked when the translations were in the minecraft namespace.
We haven't solved the issue yet, but we did discuss it some in the #translations channel in our discord.

commented

the vanilla changes have been moved to a built-in pack. They will not apply on servers, and fabric clients can disable it if needed. Forge clients cannot disable it as forge has a much more limited API for built-in packs, and I don't think this occurs on Forge. If it does, let us know.