Skip to content

Fix the Fuelable TOP provider to do its translation on the client#1511

Merged
LAGIdiot merged 2 commits intoGregTechCE:masterfrom
warjort:fuellang
Mar 8, 2021
Merged

Fix the Fuelable TOP provider to do its translation on the client#1511
LAGIdiot merged 2 commits intoGregTechCE:masterfrom
warjort:fuellang

Conversation

@warjort
Copy link
Copy Markdown
Contributor

@warjort warjort commented Mar 3, 2021

What:
The new Fuelable TOP provider is erroring in dedicated server mode.

How solved:
The error is due to it trying to do the translation on the server. This is now done on the client.

Outcome:
Closes #1508

Additional info:
The TOP progress bar does not allow its "suffix" to have translatable text inside it.
So I have moved the extra info about burn time and minimum fuel into a seperate text component.
This means that information now appears further to the right.

2021-03-03_22 18 14

Possible compatibility issue:
The getFuelName() for the Fluid and Item fuel info have been changed to use the "unlocalizedName", so the server can pass it to the client for translation.
SInce this code is new, it is unlikely something else will be using this.
But even if something was using it, it would also need this change to be able to translate the name on the client.

@warjort warjort changed the title Fix the Fuelable TOP provider translation to run on the client Fix the Fuelable TOP provider to do its translation on the client Mar 3, 2021
Copy link
Copy Markdown
Member

@LAGIdiot LAGIdiot left a comment

Choose a reason for hiding this comment

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

Thanks for fixing this issue. It did not occurred to me that this could happened but at least we know for future reference.

@LAGIdiot LAGIdiot added rsr: revision Release size requirements: Revision status: accepted type: bug Something isn't working integration: TOP labels Mar 7, 2021
@LAGIdiot LAGIdiot merged commit 52eb2db into GregTechCE:master Mar 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

integration: TOP rsr: revision Release size requirements: Revision status: accepted type: bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] TOP - Fuelable Provider Error Message

2 participants