coolmodi / SpellCalc

A WoW classic addon providing information for spells, like actual damage done, crit and hit chance, scaling etc.
43 stars 8 forks source link

Error with labels #37

Closed sebbi08 closed 2 years ago

sebbi08 commented 2 years ago

The labels show for my the technical labels like

DMG_PER_MANA_SHORT

i tired to copy the enUS.lua and rename it to deDE.ua and change the parameter inside the file but it did not work how can i add a translation

coolmodi commented 2 years ago

You need to change local L = _addon:AddLocalization("enUS", true); to local L = _addon:AddLocalization("deDE"); inside deDE.lua. Then you need to add i18n/deDE.lua to the SpellCalc.toc file so it's loaded. It should work, but I never actually tested it or gave it much though.

I also started to use another system at some point and never updated the enUS.lua file, so it's not complete and some of the strings inside may not be used anymore. I can update it if I find the time before release :D

sebbi08 commented 2 years ago

ah i forgot the SpellCalc.toc thx

coolmodi commented 2 years ago

Changed the system for translations a bit in the new version, should be more useful now.