Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 

ESOUI » Developer Discussions » Tutorials & Other Helpful Info » Get ItemName in multiple languages


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off