Ludeon Forums

RimWorld => Mods => Topic started by: Arex on December 30, 2017, 09:05:44 AM

Title: How extract Keyed strings from a mod?
Post by: Arex on December 30, 2017, 09:05:44 AM
I localize the game and mods into Russian.

Some of the mods don't contain Language folder. There is no problem, if all English strings (visible in game) are in Def folders. The strings are not difficult to extract and translate. However, some strings are contained inside Assemblies. In the usual case, the strings are listed in Keyed folder. But, as I wrote above, the mods don't contain Language folder.

Is there any way to extract Keyed strings from the mods? Or only mod developers can do it?
Title: Re: How extract Keyed strings from a mod?
Post by: dburgdorf on December 30, 2017, 10:40:14 AM
Text strings generated by a mod's C# code can only be translated if the modder has utilized the "Translate" method, in which case there will be entries in a default language file. If the mod doesn't have a "Keyed" language folder, then the text can't be modified or translated without editing and recompiling the code.
Title: Re: How extract Keyed strings from a mod?
Post by: Arex on December 30, 2017, 01:26:20 PM
It's a pity. Thanks for the clarification. I'll try to appeal to mod developers.
Title: Re: How extract Keyed strings from a mod?
Post by: Thirite on December 30, 2017, 03:11:35 PM
Hard coding strings meant to be read by the player is a horrible practice. :P