godot
godot copied to clipboard
ItemList item text is not localized, unless set through code.
Tested versions
- Reproducible in v4.2.stable.mono.official [46dc27791]
System information
Godot v4.2.stable.mono - Windows 10.0.22621 - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 3070 Ti (NVIDIA; 31.0.15.4601) - AMD Ryzen 5 5600 6-Core Processor (12 Threads)
Issue description
ItemList items do not get localized. Can be worked around by calling itemList.AddItem(Tr("SOMETHING")); (or gdscript equivalent). But it doesn't seem like intended behavior to me.
Steps to reproduce
- Create .csv file with
keys,en,fi
SOMETHING,"English","Finnish"
And save it.
- In project > Localization select languages you want, eg. Finnish, English. and reference the automatically generated translation files for English and Finnish. You also have to set the locale in Project settings.
- Add a Label and give it the key SOMETHING in caps.
- Add ItemList and add entry to it with the text SOMETHING, again, in all CAPS.
Run the scene. The label is localized but the itemList isn't.
Minimal reproduction project (MRP)
N/A
It seems to have been fixed in version 4.3.dev5, can you confirm it again?
Closing as confirmed, if it has not please comment here and this can be reopened