Download
(3Kb)
Download
Updated: 03-08-10 05:18 PM
Pictures
File Info
Updated:03-08-10 05:18 PM
Created:02-24-10 05:38 PM
Downloads:2,085
Favorites:10
MD5:

ChatRaidIconTranslator

Version: v1.2.1
by: Mokhtar [More]

In a multilingual raid, allows a player who uses a different locale than the message sender to still see raid icons in chat as icon and not as non-localized text.
Moreover when you send a chat message it translates your locale-dependant aliases ({skull}, {cross} etc..) in the general form ({rt1-8}) so that everybody can see them.

Available translations for now : English, German (thanks W4andy), Korean (thanks Toodirty), Chinese + Taiwan (thanks Digmouse) and French

v1.2.1 :
- Removed AceHook dependancy

v1.2 :
- Added Korean translation
- Added Chinese + Taiwan translation

v1.1 :
- Added reverse support (when sending message, ensures everyone can see symbols by replacing locale-dependant aliases by rt1-8)
- Added german translation
- Added support for raid warning popping on screen
Optional Files (0)


Post A Reply Comment Options
Unread 03-05-10, 11:51 AM  
ckaotik
A Fallenroot Satyr
 
ckaotik's Avatar
AddOn Author - Click to view AddOns

Forum posts: 29
File comments: 168
Uploads: 5
Originally posted by Mokhtar
I will have to check the API but I imagine it is possible...
Works like a charm, thank you
__________________
It all starts to make a creepy kind of sense. Avatar
Report comment to moderator  
Reply With Quote
Unread 03-01-10, 05:17 PM  
Mokhtar
A Fallenroot Satyr
AddOn Author - Click to view AddOns

Forum posts: 22
File comments: 26
Uploads: 7
If someone can confirm it works on chinese / taiwanese / korean translation it would be great. I normally saved in UTF8 but I am not familiar with the encoding problematics...
Report comment to moderator  
Reply With Quote
Unread 03-01-10, 03:44 AM  
Mokhtar
A Fallenroot Satyr
AddOn Author - Click to view AddOns

Forum posts: 22
File comments: 26
Uploads: 7
Originally posted by nightcracker
I'm sorry, but WHAT THE FUCK?

You are using the Ace lib for TWO simple hooks
Just use this function and your done:

Code:
local function hook(tobehooked, func)
     local old = _G[tobehooked]
     _G[tobehooked] = function(...)
          old(func(...))
     end
end
Yes, clearly I am retarded to use a library to hook a (btw secure) function, I don't want to know the ins and outs of hooking a function, maybe the fact that it is secure is not impactant at all, I don't know and I am not interested in knowing, hence the use of AceHook that handles it without me having to know...
Moreover it's hardly as if I used a highly exotic library, chances are 95% of the people that will use this addon already have Ace3 somewhere and embedded in there is AceHook...

You may know better than me (actually you probably do), I am only a simple dev that tries and provides what I deem as missing functionnalities. If you really want to teach me something, do not belittle me at the same time, it's not a good teaching technique.
Last edited by Mokhtar : 03-01-10 at 03:53 AM.
Report comment to moderator  
Reply With Quote
Unread 03-01-10, 12:08 AM  
nightcracker
A Molten Giant
 
nightcracker's Avatar
AddOn Author - Click to view AddOns

Forum posts: 716
File comments: 428
Uploads: 22
I'm sorry, but WHAT THE FUCK?

You are using the Ace lib for TWO simple hooks
Just use this function and your done:

Code:
local function hook(tobehooked, func)
     local old = _G[tobehooked]
     _G[tobehooked] = function(...)
          old(func(...))
     end
end
__________________
Three things are certain,
Death, taxes and site not found,
You, victim of one.
Report comment to moderator  
Reply With Quote
Unread 02-28-10, 11:30 PM  
digmouse
A Fallenroot Satyr
AddOn Author - Click to view AddOns

Forum posts: 26
File comments: 65
Uploads: 2
Simp.Chinese
addon.translations["zhCN"] = {
["{星星}"]="rt1",
["{圆形}"]="rt2",
["{coin}"]="rt2",
["{菱形}"]="rt3",
["{三角}"]="rt4",
["{月亮}"]="rt5",
["{方块}"]="rt6",
["{cross}"]="rt7",
["{x}"]="rt7",
["{骷髅}"]="rt8",
}

Trad.Chinese
addon.translations["zhTW"] = {
["{星星}"]="rt1",
["{圈圈}"]="rt2",
["{coin}"]="rt2",
["{鑽石}"]="rt3",
["{三角}"]="rt4",
["{月亮}"]="rt5",
["{方形}"]="rt6",
["{十字}"]="rt7",
["{x}"]="rt7",
["{頭顱}"]="rt8",
}

make sure the locale file is saved in UTF-8
__________________
Does not matter anymore.
Last edited by digmouse : 02-28-10 at 11:43 PM.
Report comment to moderator  
Reply With Quote
Unread 02-26-10, 04:28 AM  
toodirty
A Kobold Labourer

Forum posts: 0
File comments: 4
Uploads: 0
korean translation

addon.translations["koKR"] = {
["{별}"]="rt1",
["{동그라미}"]="rt2",
["{원}"]="rt2",
["{다이아몬드}"]="rt3",
["{세모}"]="rt4",
["{달}"]="rt5",
["{네모}"]="rt6",
["{엑스}"]="rt7",
["{가위표}"]="rt7",
["{해골}"]="rt8",
}
Report comment to moderator  
Reply With Quote
Unread 02-25-10, 06:46 PM  
Mokhtar
A Fallenroot Satyr
AddOn Author - Click to view AddOns

Forum posts: 22
File comments: 26
Uploads: 7
OK done, v 1.1 up
Report comment to moderator  
Reply With Quote
Unread 02-25-10, 07:09 AM  
Mokhtar
A Fallenroot Satyr
AddOn Author - Click to view AddOns

Forum posts: 22
File comments: 26
Uploads: 7
Originally posted by ckaotik
Do you plan on having it work the other way around, too? What I mean:
In a perfect world, everyone in a raid would use this addon und we would all be happy and understand the raid symbols.
But as far as I dare to say, nothing is perfect out there So will you add a "reverse" feature that takes what you're going to type (e.g. "Kill {skull} first!") and transforms it into the rt-form (in this case "Kill {rt8} first!") *before* sending it? Similar to those auto complete chat addons? That way you can make sure that if at least YOU use the mod, everyone will see the proper icon
I will have to check the API but I imagine it is possible...

@W4andy : thanks, I will add that
Last edited by Mokhtar : 02-25-10 at 07:10 AM.
Report comment to moderator  
Reply With Quote
Unread 02-25-10, 05:52 AM  
ckaotik
A Fallenroot Satyr
 
ckaotik's Avatar
AddOn Author - Click to view AddOns

Forum posts: 29
File comments: 168
Uploads: 5
Do you plan on having it work the other way around, too? What I mean:
In a perfect world, everyone in a raid would use this addon und we would all be happy and understand the raid symbols.
But as far as I dare to say, nothing is perfect out there So will you add a "reverse" feature that takes what you're going to type (e.g. "Kill {skull} first!") and transforms it into the rt-form (in this case "Kill {rt8} first!") *before* sending it? Similar to those auto complete chat addons? That way you can make sure that if at least YOU use the mod, everyone will see the proper icon
__________________
It all starts to make a creepy kind of sense. Avatar
Report comment to moderator  
Reply With Quote
Unread 02-25-10, 04:47 AM  
w4andy
A Kobold Labourer

Forum posts: 1
File comments: 4
Uploads: 0
nice addon

german translation
Code:
addon.translations["deDE"] = {
	["{stern}"]="rt1",
	["{kreis}"]="rt2",
	["{diamant}"]="rt3",
	["{dreieck}"]="rt4",
	["{mond}"]="rt5",
	["{quadrat}"]="rt6",
	["{kreuz}"]="rt7",
	["{x}"]="rt7",
	["{totenschädel}"]="rt8",
}
Report comment to moderator  
Reply With Quote
Unread 02-25-10, 01:25 AM  
Mokhtar
A Fallenroot Satyr
AddOn Author - Click to view AddOns

Forum posts: 22
File comments: 26
Uploads: 7
{rt1} to {rt8} is available in every language.
And I make use of that in my mod
The thing with rt1/8 is that the guy who types it has to know what each number stands for. I prefer to not rely on any knowledge/intelligence on the other side and compensate for it in an addon...
Last edited by Mokhtar : 02-25-10 at 07:10 AM.
Report comment to moderator  
Reply With Quote
Unread 02-24-10, 06:43 PM  
dr_AllCOM3
A Cyclonian
 
dr_AllCOM3's Avatar
AddOn Author - Click to view AddOns

Forum posts: 40
File comments: 275
Uploads: 11
{rt1} to {rt8} is available in every language.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: