Skip to content

Fix: entity localization parent fallback#6718

Open
codebykoi wants to merge 7 commits into
space-wizards:masterfrom
codebykoi:fix/entity-localization-inheritance
Open

Fix: entity localization parent fallback#6718
codebykoi wants to merge 7 commits into
space-wizards:masterfrom
codebykoi:fix/entity-localization-inheritance

Conversation

@codebykoi

Copy link
Copy Markdown

When I working with a locale files for my fork, I found it troublesome when working with many different .ftl files, and my builds always were giving me errors about missing .desc and etc, not allowing me to run properly.

this PR its basically a QoL fixes when working with locales.

Keep in mind that its my first ever PR to RobustToolbox, so I may dont know some specific details about the codebase, but I hope this one works for everyone.

@codebykoi
codebykoi requested a review from DrSmugleaf as a code owner July 4, 2026 09:06
@codebykoi

Copy link
Copy Markdown
Author

found another bug, fixing it rn

@codebykoi

Copy link
Copy Markdown
Author

alright, added small tests, and added NeverPushInheritance attribute to the fields of EntityPrototype.
Funny enough, the comments were saying they are not supposed to be inherited way before I did the fix

@codebykoi

Copy link
Copy Markdown
Author

Test was failing because of the RCD, the recent commit should fixed the edge case when entity had no name at all, it just fallbacks to protoId instead

@codebykoi

Copy link
Copy Markdown
Author

I have no idea why test failed on RandomSpecies test. I literalyl have nothing to do with it.

Comment thread Robust.Shared/Prototypes/EntityPrototype.cs
@codebykoi

Copy link
Copy Markdown
Author

and here we go, all tests passes


// LOCALIZATION NOTE:
// Localization-related properties in here are manually localized in LocalizationManager.
// As such, they should NOT be inherited to avoid confusing the system.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

its literally says here that fields should not be inherited

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.

2 participants