Question about language support
Hey there everyone! So I am not a "real" mod author or creator. Basically I have a handful of mods that I took over and kept them "alive" by updating the API number and the libs associated with them.
My question is about a specific addon I am looking at. Combat Indicator (Updated) - http://www.esoui.com/downloads/info1...orUpdated.html In the comments section, someone has said that they created a french translation but I have NO CLUE what to do with it. Do I create a separate file and have it linked to the main lua file? Quote:
Quote:
|
1 Attachment(s)
You just add it in the PL_CombatIndicator_Static.lua file after the English texts.
As for the error for Russian players, that is actually a problem for all custom localizations. There is a small bug in how the addon decides it should use English as a fallback for unsupported languages. A potential fix would look like this: Lua Code:
I attached the file with the necessary modifications and also added a German translation, but didn't test it. Feel free to use that. :) EDIT: actually you should replace "if str == nil then" with "if not str then", since "local str = t[lang] ~= nil and t[lang][k]" will result in str being "false" if the table doesn't exist and that way you check for both "nil" and "false". |
Quote:
|
I just checked the version you updated and saw that you didn't do what I wrote when I edited my first post right after I posted it. You might want to do that, otherwise the fix for the unofficial translations won't work. ;)
|
Quote:
|
All times are GMT -6. The time now is 05:44 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI