Reverse-Localized Hyperlinks
Ok. here is the issue.
I use the English client when i play WoW. Some of my guildmembers are from Italy and they started using the ITA client. Every time some of them put links in guildchat then the link-text will ofc will be italian and i will have no idea what they are talking about. I was dabbling with the idea of making a small addon that will parse the links in chat and then lookup the item using the clients local cache, however i wanted to check first if someone knows if there is any existing addon out there that does this already before i started work? |
If you click the link what item tooltip is shown? English or Italian?
Maybe one of the hoverlink addons would be a suitable workaround? |
Ok, so when you just see the link in chat it uses the Italian title.
When you click on the link you will see the info in english (i.e your localized language). Not much of an issue then i guess. |
Something like this should work:
Code:
local function TranslateLinks(_, _, message, ...) You could easily extend it to handle other types of links, though I'm not sure there's a clean way (eg. not tooltip scanning) to get information about quests by their questID, and maybe some other link types. |
+1 for Phanx for posting a almost complete solution.
|
If you're using it, feel free to post a more "complete" version for others to use. ;)
|
Quote:
I've now uploaded a new addon called "LinkTranslator" to curseforge and wowinterface. It simply translates [itemlinks] to the language that you are using ingame. So instead of seeing [La spada di impotnente la grande calzone] you will see [The Sword of Awesome] (if you're running the english client) Curse: www.curse.com/addons/wow/linktranslator Curseforge: wow.curseforge.com/addons/linktranslator/ WowInterface: http://www.wowinterface.com/download...o.php?id=22069 Phanx is da man! |
How the hell did you turn the 663 bytes of code I posted into the 55 kilobytes of your addon? That's an 8400% increase in code size... I glanced at the code and found it nearly unreadable, with everything passing through long function chains and split up over 5 files. What is this, I don't even...
|
All times are GMT -6. The time now is 08:20 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI