Ludeon Forums

RimWorld => Mods => Translations => Topic started by: Tynan on July 18, 2018, 07:42:06 AM

Title: New translation cleaner tool
Post by: Tynan on July 18, 2018, 07:42:06 AM
We just added a tool to the latest unstable build: The translation cleaner.

You can access it on the main menu in the translation info window on the bottom right, when any non-English localization is selected.

It does various things:

The tool explains itself in-game when you click the button to use it.

Every translation team should be using this! At first if just one member of each team runs the tool and pushes the results to GitHub, most members may be able to translate without the game at all, or at least without integrating their translation files into the game.

Once you run the tool, it'll be very easy to find missing data by just searching for the string TODO on all the translation files, using either Visual Studio Code or any other program that can do a text search on all files in a folder.

Let me know how it works!
Title: Re: New translation cleaner tool
Post by: Haplo on July 18, 2018, 12:22:16 PM
I've done the german language with it and have to say: this is a great tool!
This makes translating much easier. Thank you very much ;D
Title: Re: New translation cleaner tool
Post by: Moleculor on July 18, 2018, 04:44:39 PM
I'm having a hard time finding and selecting this (https://github.com/Ludeon/RimWorld-Pirate) language.
Title: Re: New translation cleaner tool
Post by: mecatxis on July 19, 2018, 03:51:18 AM
Yes!

It is a must have tool! Thank you! I will check it ASAP...
Title: Re: New translation cleaner tool
Post by: Tynan on July 20, 2018, 10:43:22 AM
Quote from: Moleculor on July 18, 2018, 04:44:39 PM
I'm having a hard time finding and selecting this (https://github.com/Ludeon/RimWorld-Pirate) language.

It's not included in the main build until it's a bit more fleshed out.
Title: Re: New translation cleaner tool
Post by: Hellioob on July 23, 2018, 07:27:22 AM
Someone can help me to update Bulgarian language! https://github.com/Ludeon/RimWorld-Bulgarian

Can anyone update files and send them to me?

Thanks in advance!
Title: Re: New translation cleaner tool
Post by: Elevator on July 30, 2018, 09:51:25 AM
Cleaner tool messes up with end-of-line symbols.
After line <?xml version="1.0" encoding="UTF-8"?> it places LF instead of CR+LF.
Title: Re: New translation cleaner tool
Post by: ison on July 30, 2018, 10:10:04 AM
Quote from: Elevator on July 30, 2018, 09:51:25 AM
Cleaner tool messes up with end-of-line symbols.
After line <?xml version="1.0" encoding="UTF-8"?> it places LF instead of CR+LF.

Hmm, maybe it would be better to use LF consistently everywhere instead of using CR+LF here. Would it cause any problems for you? Since such generated file is most likely going to be pushed to a repo, maybe it's better to keep it platform-independant? This way using this tool on both Windows and Linux will give the same files.
Title: Re: New translation cleaner tool
Post by: Haplo on July 30, 2018, 04:28:20 PM
In regards to the tool: this problem (https://ludeon.com/forums/index.php?topic=42743.0) is still there in 1.0.1980..
Title: Re: New translation cleaner tool
Post by: ison on July 31, 2018, 07:21:36 AM
Quote from: Haplo on July 30, 2018, 04:28:20 PM
In regards to the tool: this problem (https://ludeon.com/forums/index.php?topic=42743.0) is still there in 1.0.1980..

Fixed, thanks, sorry for that.
Title: Re: New translation cleaner tool
Post by: Haplo on July 31, 2018, 03:29:13 PM
Thank you very much ;D
Title: Re: New translation cleaner tool
Post by: Elevator on August 03, 2018, 06:35:42 PM
QuoteHmm, maybe it would be better to use LF consistently everywhere instead of using CR+LF here
I don't think that if Cleanup tool generate LF everywhere it will be a problem. The same is for CR+LF. I believe most translators use advanced text editors that work well with both variants. Editorconfig tool can help with that.
Title: Re: New translation cleaner tool
Post by: publicuser on October 03, 2018, 04:35:58 AM
Will the tool include in 1.0 stable build, and can it translate mod?
Title: Re: New translation cleaner tool
Post by: ison on December 06, 2018, 08:57:37 AM
Unfortunately it doesn't handle mods.