• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

Ch4phie

Recruit
Jul 3, 2018
1
0
Hi!

I have a trouble, that appeared while i was trying to translate some english mods to my own language. While doing so i accidentally found text that was containing not just simple text, but some script in it. Here it is:

self:SetTitle(T{AutoGatherTransport.StringIdBase + 32, "Auto unload at: "..(coord:x())..", "..(coord:y()) })

So, this part: "Auto unload at: "..(coord:x())..", "..(coord:y()) , i need to translate, but how can i do so? I tried to translate it without part with coordinates, but in-game this appeared w/o them. I tried to copy-past and still doesn't working. So, is this possible to translate?

.csv file was used for mod-translation.
 
Last edited:
Akarnokd should've used string.format...

string.format(T{AutoGatherTransport.StringIdBase + 32, "Auto unload at: %s, %s" },coord:x(),coord:y())
or maybe
string.format(_InternalTranslate(T{AutoGatherTransport.StringIdBase + 32, "Auto unload at: %s, %s" }),coord:x(),coord:y())
Not that sure, but one of 'em

Not much you can do, I did a post on that mod, so hopefully he'll update it.