Inventory Engine integration - localize item names and descriptions

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
arcanzu
Posts: 2
Joined: Sat Sep 18, 2021 3:58 pm

Inventory Engine integration - localize item names and descriptions

Post 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?
User avatar
Tony Li
Posts: 22158
Joined: Thu Jul 18, 2013 1:27 pm

Re: Inventory Engine integration - localize item names and descriptions

Post 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.
arcanzu
Posts: 2
Joined: Sat Sep 18, 2021 3:58 pm

Re: Inventory Engine integration - localize item names and descriptions

Post by arcanzu »

Thank you, it worked.
User avatar
Tony Li
Posts: 22158
Joined: Thu Jul 18, 2013 1:27 pm

Re: Inventory Engine integration - localize item names and descriptions

Post by Tony Li »

Happy to help! I'll add this clarification to the manual in the next release.
Post Reply