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:
[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. |
This is not possible. When you use SetCVar to change the language, it reloads the ui and uses a different set of files for the language stuff. So when you're not in the language you can't access that stuff. Thus, the only other way would be to hardcode it, but that might not be feasible if you need many different item names.
|
Thank you very much. :)
I will give up and think in the direction to do hard coding |
If you're thinking of hard coding every item's name, just know you're going to need to break it into multiple sub-tables or you run the risk of lua issues due to how ZOS has it setup and that it'll be very unwieldy.
|
Quote:
|
As my other "colleagues" said it, please don't do this. too complicated and I don't even talk about translation issues.
|
Thank you for your advice. :)
I will save only weapons, armor and accessories in the data. And, I will try to destroy older data that is not being used. Next, the item name was changed in past, I also think about its response. And what is ZOS? :confused: |
ZOS = Developer of the lua code of ESO = Zenimax Online Studios
|
All times are GMT -6. The time now is 09:24 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI