From 2bcb45eb5d25a635c24206a9f8a19a515938507a Mon Sep 17 00:00:00 2001 From: Adrian L Lange Date: Thu, 25 Feb 2010 23:01:38 +0100 Subject: [PATCH] Add russian localization --- Molinari.lua | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Molinari.lua b/Molinari.lua index 5da48cc..133fad5 100644 --- a/Molinari.lua +++ b/Molinari.lua @@ -1,3 +1,10 @@ +local ARMORTYPE +if(GetLocale() == 'ruRU') then + ARMORTYPE = 'Доспехи' -- DIAF Blizzard +else + ARMORTYPE = ARMOR +end + local button = CreateFrame('Button', 'Molinari', UIParent, 'SecureActionButtonTemplate, AutoCastShineTemplate') button:RegisterForClicks('LeftButtonUp') button:SetAttribute('*type*', 'macro') @@ -39,7 +46,7 @@ end local function Disenchantable(item) local _, _, quality, _, _, type = GetItemInfo(item) - if ((type == ARMOR or type == ENCHSLOT_WEAPON) and quality > 1 and quality < 5) then + if((type == ARMORTYPE or type == ENCHSLOT_WEAPON) and quality > 1 and quality < 5) then return disenchanting, 0.5, 0.5, 1 end end -- 1.7.9.5