View Single Post
01/15/18, 06:07 PM   #1
Marify
 
Marify's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2017
Posts: 27
Get ItemName in multiple languages

Hi

[Goal]
I want to acquire an ItemName in multiple languages without reloading the UI.


[Details]
I want to retrieve the name in English and Japanese by calling ItemName()
UI will be reloaded when calling SetCVar().

Do you know how to acquire a name by another means?

Lua Code:
  1. -- get English
  2. SetCVar("language.2", "en")
  3. d("ItemName(en)=" .. GetItemName(bagId, slotIndex))
  4.  
  5. -- get Japanese
  6. SetCVar("language.2", "jp")
  7. d("ItemName(jp)=" .. GetItemName(bagId, slotIndex))

[Other]
Usually, when you play, /script SetCVar ("language.2", "en")
Enter language to switch languages. (Audio is Japanese)

So, I think that the system contains English item names.
  Reply With Quote