Automatically generating localized names
Posted: Thu Jul 13, 2017 9:57 pm
I have a research that adds turret range upgrades, but to do this it has to effectively clone turrets once per turret type, once per level.
This all works fine, but the problem is that the upgraded turrets (internally named [original name]-rangeboost-[level]") have no corresponding localization. As I cannot foresee all the possible turret types, nor am I willing to hardcode 800 entries for the ones I do know (Bob, 5Dim, DyTech, my Concussion, Plasma, and Cannon...), is there a way to either forcibly set a localized name (English only is fine, as it is still better than "unknown key:blah") or automatically populate the locale files? Ideally I would want the derivative turrets to appear exactly as their base counterparts.
This all works fine, but the problem is that the upgraded turrets (internally named [original name]-rangeboost-[level]") have no corresponding localization. As I cannot foresee all the possible turret types, nor am I willing to hardcode 800 entries for the ones I do know (Bob, 5Dim, DyTech, my Concussion, Plasma, and Cannon...), is there a way to either forcibly set a localized name (English only is fine, as it is still better than "unknown key:blah") or automatically populate the locale files? Ideally I would want the derivative turrets to appear exactly as their base counterparts.