Local name of item

Place to get help with not working mods / modding interface.
User avatar
Filmos
Manual Inserter
Manual Inserter
Posts: 4
Joined: Sun Jul 31, 2016 4:30 pm
Contact:

Local name of item

Post by Filmos »

Hi,
I'm making a mod and I want to ask if there is any option to get local item name (the one after translation, doesn't need to detect player's language setting, but I don't want just .name) at the "data-final-fixes" stage.
I really need that and I will be very grateful for any help.
Rseding91
Factorio Staff
Factorio Staff
Posts: 14817
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: Local name of item

Post by Rseding91 »

No, if you're printing to the console you can use the localised name from the item prototype which will translate to the actual name when printed.

Other than that, there's no way to get the translated name as that would be different on different languages and result in different code being run on each peer in a multiplayer game resulting in desyncs.
If you want to get ahold of me I'm almost always on Discord.
User avatar
Filmos
Manual Inserter
Manual Inserter
Posts: 4
Joined: Sun Jul 31, 2016 4:30 pm
Contact:

Re: Local name of item

Post by Filmos »

And isn't there any way to get only English translations?
Post Reply

Return to “Modding help”