Skip to content

Comments

Fix fluid name on tank GUI depending on server locale#1915

Merged
serenibyss merged 1 commit intoGregTechCEu:masterfrom
miozune:fix/fluid-name-locale
Jul 10, 2023
Merged

Fix fluid name on tank GUI depending on server locale#1915
serenibyss merged 1 commit intoGregTechCEu:masterfrom
miozune:fix/fluid-name-locale

Conversation

@miozune
Copy link
Contributor

@miozune miozune commented Jul 10, 2023

What

Currently having different locale setting on client and server makes client render fluid name on some tank GUIs with server locale. This PR fixes that.

Implementation Details

Currently getFluidNameText syncs already translated text. I changed them to send unlocalized name with TextComponentTranslation, so that client can translate text with its own locale setting.

Outcome

Fix bug.

@miozune miozune requested a review from a team as a code owner July 10, 2023 01:29
@serenibyss serenibyss added the type: bug Something isn't working label Jul 10, 2023
@serenibyss serenibyss merged commit f61e3e2 into GregTechCEu:master Jul 10, 2023
@miozune miozune deleted the fix/fluid-name-locale branch July 10, 2023 01:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants