Localization Help
So I've got the jist on *how* to localize an addon. My question, and request for assistance, is regarding *what* needs to be localized. Is it just any text that I'm presenting within the addon? It's primarily for data collection and doesn't manipulate much within the game aside from collecting raid boss names and player names. If there's a good detailed guide anyone is aware of that would be great.
|
There are already some global localized strings from blizzard you can use:
https://github.com/tekkub/wow-global.../GlobalStrings You dont need to add these files to your project. The variables are existing in the WOW API. If you want to support more languages you need to implement the translations yourself. You do not need to translate Player Names. In general I think you dont need to translate anything at all since most of the players do speak english I would allege. But if you want to provide quality you should at least translate descriptions, guides, introductions, etc. |
Some of the addon repositories and package managers provide localization support. I have found that (if you allow it) anonymous (to me) people will actually do the translations for you.
|
I've found individuals interested in helping with translations. I'm simply not certain what within the addon needs to be translated. It's clearly not working in other localizations.
|
Quote:
|
Quote:
Search the addons you have installed for ones with a Locale sub-folder that contains multiple files with names like Locale-enUS.lua, Locale-deDE.lua, etc. You will one of them (usually -enUS) will contain an array (usually L) where each key is set to true. In the other files, the keys will be identical, but the values will be the translation. You can then look at the code for places where, for example, L["word"] or L["this is a phrase"] are used. These will be translated using the various Locale-xxYY.lua files. |
How to localize an addon: https://phanx.net/addons/tutorials/localize
What to localize: any text the user will read. |
If your addon does not work when not localized, this means that your code is looking for text strings that are in your locale only.
For example, Lua Code:
Lua Code:
|
All times are GMT -6. The time now is 10:40 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI