Skip to content

Fix block warning messages not translating on dedicated servers#147

Closed
Eldrinn-Elantey wants to merge 43 commits into
RecursivePineapple:masterfrom
GTNewHorizons:fix/server-side-warning-localization
Closed

Fix block warning messages not translating on dedicated servers#147
Eldrinn-Elantey wants to merge 43 commits into
RecursivePineapple:masterfrom
GTNewHorizons:fix/server-side-warning-localization

Conversation

@Eldrinn-Elantey

Copy link
Copy Markdown
Contributor

Block placement and move warnings were translated with StatCollector on the server, whose locale is always en_US, and the English result was then passed back in as a translation key. Clients never got a real key, so these messages stayed English regardless of language. Now the key and args are sent so the client translates it. Tested in-game with the pack's ru_RU.

Connor-Colenso and others added 30 commits January 23, 2026 21:50
Co-authored-by: Connor Colenso <colen@CONNORSPC>
Co-authored-by: Martin Robertz <dream-master@gmx.net>
Co-authored-by: Martin Robertz <dream-master@gmx.net>
Co-authored-by: Martin Robertz <dream-master@gmx.net>
Co-authored-by: Martin Robertz <dream-master@gmx.net>
Co-authored-by: RecursivePineapple <recursive_pineapple@proton.me>
Co-authored-by: WhyDoLogic <84210614+WhyDoLogic@users.noreply.github.com>
Co-authored-by: RecursivePineapple <recursive_pineapple@proton.me>
Co-authored-by: RecursivePineapple <recursive_pineapple@proton.me>
…bs and wireless connectors correctly (#37)

Co-authored-by: RecursivePineapple <recursive_pineapple@proton.me>
Co-authored-by: RecursivePineapple <recursive_pineapple@proton.me>
…es (#39)

Co-authored-by: RecursivePineapple <recursive_pineapple@proton.me>
#43)

Co-authored-by: RecursivePineapple <recursive_pineapple@proton.me>
Co-authored-by: RecursivePineapple <recursive_pineapple@proton.me>
Co-authored-by: RecursivePineapple <recursive_pineapple@proton.me>
Lyfts and others added 13 commits May 13, 2026 20:42
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Martin Robertz <dream-master@gmx.net>
Co-authored-by: UltraProdigy <187078471+UltraProdigy@users.noreply.github.com>
Co-authored-by: LazyFleshWasTaken <40587985+LazyFleshWasTaken@users.noreply.github.com>
These warnings were translated with StatCollector on the server, whose locale is always en_US, and the resulting English string was then passed back in as a translation key. Clients never saw a real key, so the text stayed English regardless of their language. Send the key and args instead so the client translates it. Tested in-game with ru_RU.
@RecursivePineapple RecursivePineapple deleted the fix/server-side-warning-localization branch June 25, 2026 15:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.