I have a CSV file for localization pourposes, and I use codes like this "A1001", "A1002", etc...
So I want to concatenate two strings with an integer, so i put the code like this
value = 3
$Label.text = "A1001" + str(value) + "A1002"
In my CVS the A1001 would mean "There are " and A1002 would be " enemies left."
And instead of displaying the localized text like with the other text, it displays this
A10013A1002
I would like it to return "There are 3 enemies left."
I would like to know how to concatenate strings with localized text.
PS. Single localized text works perfectly, the issue only arises when concatenating.
Extra:
I also tried with string formating, adding in the CSV file A1001 = There are %s enemies left. And then in the code:
value = 3
var text_display : String = "A1001"
$Label.text = text_display % value
But it returns "not all arguments converted during string formatting in operator '%'.