Localization with description references
Posted: Sat Mar 16, 2019 5:38 pm
I am working on my first mod, and part of what it does is create alternate versions of existing entities. For the entity-name and entity-description localization of the new entities, I would like to append a string to the localized name and description of the original entities.
I can do this in locale.cfg for the name by writing
And get the result
I can do this in locale.cfg for the name by writing
Code: Select all
locomotive-mu=MU __ENTITY__locomotive__
But there does not seem to be a keyword to reference localized entity-descriptions the same way. Do I need to put it in the prototype with a script in data.lua? Is it worth asking for a new keyword, for example __ENTITY-DESCRIPTION__, to concatenate localization strings the easy way?MU Locomotive