[✅] - [Improvement] Localization system doesn't work

Hoochie
Hoochie · 27 days ago

Hello!
Thanks for the mod!
It looks like localization isn't working and is hardcoded. The files from the localization folder aren't being read.

LordXaosa · 27 days ago

Hello!

Thank you for your feedback!

Could you please clarify what localization do you use? Currently English and Russian language available. Seems that Russian works fine:

image.png

LordXaosa · 27 days ago

Updated 1.0.1, added 30+ more translations.
Hope it helps. Enjoy!

👍 1
Hoochie
Hoochie · 27 days ago

Try changing something in the localization file — the changes don't get applied.

LordXaosa · 27 days ago

Please provide screenshots with mod and game versions and what locale do you use? Also please give a screenshot of problem in game.

Hoochie
Hoochie · 27 days ago

image.pngimage.png

For example, I make a change to the file:

[
    "GridBattery.Buildings.T1.Description",
    "Industrial lead-acid battery — a classic buffer for the power grid. Allows storing electricity and returning it to the grid during peak loads.<br><br>Battery specifications:<br>• Capacity: 100 MW·s.<br>• Charging power: 250 kW.<br>• Discharging power: 1 MW.<br>• Charging efficiency: 80%.<br>• Spare parts maintenance, Tier I: 0.1 – 1 units per month, depending on actual load."
],
Hoochie
Hoochie · 27 days ago

Is there a way to make it so the files are read from a folder with localization files? Or do you not want to bother with it?
I'm not insisting, just clarifying. It seems the files are there, but you can't actually change them — so the user can't edit the translation and send it to the developer for later correction.

LordXaosa · 27 days ago

You can edit them by your own and send them to me. Seems like you have to send it anyway so I have to upload new version. I can make them read from file system but is it really necessary?

Hoochie
Hoochie · 27 days ago

No, no need, it's just a bit more convenient this way so I can preview the translation beforehand (right now I can't check because the files aren't being read), and only then send it :)

I'll send the translation for review a bit later, thanks! 👍

LordXaosa · 26 days ago

I've done json loading at 1.0.2, please update.

👍 1
167
Showing 1–12 of 12