Page 1 of 1

Inventory Engine integration - localize item names and descriptions

Posted: Sat Sep 18, 2021 5:05 pm
by arcanzu
Hi, I am currently trying to localize items from Corgi with Inventory engine and can't make it work.
Documentation says it like this:
To localize Inventory Engine's inventory details text:

Replace the InventoryDetails script (on the InventoryCanvasGroup / InventoryDetails GameObject) with LocalizeInventoryDetails.
Add any text that you want to localize, such as item names and descriptions, to the text table assigned to the Dialogue Manager.
I did that, created a new text table with my two languages and assigned it to dialogue manager. I am not sure about text tables, what should they look like? May I ask for an example?
This doesn't work:
Image

Code in LocalizedInventoryDetails looks like this:

Code: Select all

Title.text = DialogueManager.GetLocalizedText(item.ItemName);
What fields do I need to have in this table for it to work? Maybe I missed something?

Re: Inventory Engine integration - localize item names and descriptions

Posted: Sat Sep 18, 2021 5:25 pm
by Tony Li
Hi,

The field name in the text table should be the item's actual name, such as "Apple". Then set the En translation to "Apple" and the Ru translation to "яблоко".

Make sure to assign your text table to the Dialogue Manager GameObject's Localization Settings > Text Table field.

Re: Inventory Engine integration - localize item names and descriptions

Posted: Sun Sep 19, 2021 5:07 am
by arcanzu
Thank you, it worked.

Re: Inventory Engine integration - localize item names and descriptions

Posted: Sun Sep 19, 2021 8:16 am
by Tony Li
Happy to help! I'll add this clarification to the manual in the next release.