Localization changes in 0.11
Posted: Sun Nov 02, 2014 1:05 am
I'm having issues with the new changes to the way localization works in 0.11. I can use localized text in game but I can't treat it like a string. For instance, if i want to concatenate a localized item name with another string I get an error. To see this in action run:
You will get an "Unable to concatenate a table" error. if you do:
You get "item-name.iron-axe test". This is the same as if you use {"some-name"} in your lua code. Thoughts? Tips? Does any one know what i am missing or doing wrong?
Edit: I am going to add here this is not possible because it will break determinism. If you concatenate a string on 2 different machine with different languages you will get different results, causing desync.
Code: Select all
game.player.print(game.getlocaliseditemname("iron-axe") .. " test")
Code: Select all
game.player.print(game.getlocaliseditemname("iron-axe")[1] .. " test")
Edit: I am going to add here this is not possible because it will break determinism. If you concatenate a string on 2 different machine with different languages you will get different results, causing desync.