[Video Tutorial] String Localization and Special Characters
Link to the video
Hello everyone, I'm excited to announce the next installment of my video series on ESO addon development for SimpleClock. This video goes over how to localize your strings using the lang/ folder and GetString() to call different localized translations of strings. We also handle unexpected output from os.date(), which we use to populate the clock that the user sees. I'm looking forward to seeing what you produce with these building blocks! If the information in the video helped you, let me know! I'd love to see what you have created with the information that I've presented. Link to the video I hope to see you ingame! - @moshulu |
Thank you, I've made a sticky thread for video tutorials and added yours there:
https://www.esoui.com/forums/showthread.php?t=10768 |
@Baertram, thank you very much for your support! I have another few videos lined up - is it okay to update the sticky thread when they come out, or would you (or another mod) have to do that?
|
Put them as answer below the sticky thread and I'll add them to the main post then.
thanks |
btw your video about the GetString constants is not correct! It works but is not the best way to do it!!!
Instead of copy&paste the strings into your fr.lua file and using ZO_CreateStringId again, which will recreate the same constant: You just need to reuse the already created stringIds (from your en.lua via ZO_CreateStringId) and ONLY add a new version 2 with the new text via function: Code:
SafeAddString(stringId, text, version+1) Lua Code:
|
All times are GMT -6. The time now is 10:58 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI