How to combine simple text with localized text

Place to get help with not working mods / modding interface.
User avatar
WIZ4
Fast Inserter
Fast Inserter
Posts: 209
Joined: Thu Apr 07, 2016 1:36 pm
Contact:

How to combine simple text with localized text

Post by WIZ4 »

I want to unify the text with the localized text, how do I do this?
For example, this work:
Screenshot_5.png
Screenshot_5.png (101.06 KiB) Viewed 1301 times
This not work:
Screenshot_5.png
Screenshot_5.png (112.63 KiB) Viewed 1301 times
Desired behavior:
"Игроки text"
How can I do it?
My native language is russian. Sorry if my messages are difficult to read.
User avatar
DaveMcW
Smart Inserter
Smart Inserter
Posts: 3749
Joined: Tue May 13, 2014 11:06 am
Contact:

Re: How to combine simple text with localized text

Post by DaveMcW »

ru.cfg

Code: Select all

[gui]
Players="Игроки"
PlayersText="Игроки __1__"
Lua

Code: Select all

/c game.player.print{"gui.PlayersText", text}
More examples: http://lua-api.factorio.com/latest/Conc ... isedString
User avatar
WIZ4
Fast Inserter
Fast Inserter
Posts: 209
Joined: Thu Apr 07, 2016 1:36 pm
Contact:

Re: How to combine simple text with localized text

Post by WIZ4 »

DaveMcW wrote:ru.cfg

Code: Select all

[gui]
Players="Игроки"
PlayersText="Игроки __1__"
Lua

Code: Select all

/c game.player.print{"gui.PlayersText", text}
More examples: http://lua-api.factorio.com/latest/Conc ... isedString
It helped me, thanks!
My native language is russian. Sorry if my messages are difficult to read.
Post Reply

Return to “Modding help”