RimWorld

RimWorld

Not enough ratings
Mod translation tool by Kkokoros!
   
Award
Favorite
Favorited
Unfavorite
Mod, 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6
File Size
Posted
Updated
229.853 KB
8 Feb @ 8:18am
6 Aug @ 7:26am
5 Change Notes ( view )

Subscribe to download
Mod translation tool by Kkokoros!

Description
github[github.com]
Are you tired of creating translations for your mods?
Ye me too.
Do you get frustrated when you do everything correctly but it doesn't work the way you wanted?
Ye me too.
Do you get angry at the files when you have to sort everything instead of opening it in a single file and using something to translate (like Google Translator)?
Ye especially me.

Well, now you can use something like Google Sheets to edit your localizations!
You just need a single CSV or TSV file!
The workflow is simple!

You need a CSV or TSV file... yes, that's it!
You can find a video explaining on the steam page how to use this mod but also you can edit the file on your own.
First, two lines are for language codes and integration into RimWorld structure.
The third line and other are where the work begins!
Let's look at an example file from my other mod! A wooden arm!

<HediffDef ParentName="KokuaddedProsteticBasic">
<defName>KokuWoodenArm</defName>
<label>wooden shoulder-arm</label>
<labelNoun>a wooden arm</labelNoun>
<description>An installed wooden arm.</description>
...
</HediffDef>

We can see this stuff right there! Now, to turn this into the correct format, we need to take the "FamilyName" of this def and a "ChildName".
The FamilyName is the name, it is "HediffDef," and the ChildName is "KokuWoodenArm." So to translate a specific string, we need to provide this format:
FamilyName&ChildName.SubName. Therefore, for this one, it is HediffDef&KokuWoodenArm.label.

\t = tab

So the file should look like this:
Key\t
Language Name En\t
HediffDef&KokuWoodenArm.label\t

Now, translate it to two languages. I choose English and Polish!
Key\ten\tpl
Language Name En\tEnglish\tPolish
HediffDef&KokuWoodenArm.label\tWooden arm\tDrewniane ramię
...

When you are done with translations, you should open RimWorld and go to settings. Then correctly fill in the fields and click a button. When you are done, restart the game and see everything done!
If you got lost, see the video to know how it works!

For now, it works with DefInjected only.
[ko-fi.com]
15 Comments
Kkokoros  [author] 6 Aug @ 7:30am 
However, if the def has a parent def with a label to translate it won't be gathered automatically. Also keyed translations aren't added yet.
Kkokoros  [author] 6 Aug @ 7:28am 
Alright, I updated it and should work as intended.
the top gets things translated
the middle gathers defs and already translated stuff.
the bottom gathers only the defs.
Kkokoros  [author] 5 Aug @ 8:30am 
I'm close to finishing the translation bug and the Automatic add on click. It will take me some more time becouse I just figured out the issue and had to rework the code complitely from the scratch. Now I will be able to fix and add stuff more easly.
Latica 1 Aug @ 4:23am 
oh ok ty for you work
Kkokoros  [author] 1 Aug @ 12:47am 
Also It has Keyed translations which I have not yet added
Kkokoros  [author] 1 Aug @ 12:40am 
I will fix it shortly
Kkokoros  [author] 1 Aug @ 12:39am 
The mod has different files for each version. My translation tool only looked inside Defs folder. That's an oversight on my part I will add it shortly. However the mod should be translated half of the time in that case.
Latica 31 Jul @ 9:28pm 
Used this to translate https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2910546545&searchtext=arknights but for some reason it doesnt work. translated its framework too idk what i am doing Xd
Kkokoros  [author] 29 Jul @ 10:58am 
I will finish it in a week.
神马终日行 28 Jul @ 7:22pm 
@Kkokoros yes