[Question/Request] Script to translate Crowdin output to Factorio format

Enhance your gameplay with these tools. This category is also the right place for tools useful for modders.
Mod databases, calculators, cheatsheets, multiplayer, scripts, libs and other useful stuff that is not strictly in-game mods.
Post Reply
User avatar
valneq
Smart Inserter
Smart Inserter
Posts: 1149
Joined: Fri Jul 12, 2019 7:43 am
Contact:

[Question/Request] Script to translate Crowdin output to Factorio format

Post by valneq »

Hey there,

I happen to be involved with quite a lot of translation stuff on Factorio itself as well as some mods. I recently gained collaborator access to one of the mods I was helping to translate: the locales for Angel's mods (https://mods.factorio.com/mod/angelsaddons-newlocales)

With this we have a problem: Whenever there is some form of rich text embedding images or changing font settings, Crowdin surrounds the translation with double quotes. However, Factorio just prints everything after the equals sign, resulting in very ugly translations, as you can see in the Angel's Refining mod settings here:
crowdin_quotes.jpg
crowdin_quotes.jpg (63.94 KiB) Viewed 1910 times
The quotes are automatically added by Crowdin, so there is no way that the translators can take care of it.

Does any one know of an existing script to strip the resulting files from these unnecessary double quotes?
The Factorio devs for sure have something like that, but I imagine that many mod authors have to deal with the same issue.
I could start developing my own script to do that. But if anyone else did it already, I would not need to debug and troubleshoot my poor scripting foo.

User avatar
kirazy
Filter Inserter
Filter Inserter
Posts: 416
Joined: Tue Mar 06, 2018 12:18 am
Contact:

Re: [Question/Request] Script to translate Crowdin output to Factorio format

Post by kirazy »

You may be able to have the project admins work with Crowdin to resolve the quote issue, because the Factorio Mod Localization project had a similar issue and was able to resolve it by working with Crowdin support: https://github.com/dima74/factorio-mods ... n/issues/2

User avatar
valneq
Smart Inserter
Smart Inserter
Posts: 1149
Joined: Fri Jul 12, 2019 7:43 am
Contact:

Re: [Question/Request] Script to translate Crowdin output to Factorio format

Post by valneq »

Thanks for that info!

Post Reply

Return to “Tools”