From 286d666e1e4c8ea24dcf15193ed0823ed3c162bf Mon Sep 17 00:00:00 2001 From: James Whitehead II Date: Tue, 2 Jan 2007 15:32:34 +0000 Subject: [PATCH] * Added French localisation * Localised the spell named for the range check * Removed localisation on debuff types, since those are English on all clients --- Localization.enUS.lua | 8 +++--- Localization.frFR.lua | 74 +++++++++++++++++++++++++++++++++++++++++++++++++ PerfectRaid.toc | 3 ++ PerfectRaid_Buffs.lua | 10 +++---- PerfectRaid_Range.lua | 9 +++--- 5 files changed, 91 insertions(+), 13 deletions(-) create mode 100644 Localization.frFR.lua diff --git a/Localization.enUS.lua b/Localization.enUS.lua index a0edb74..0730d5b 100644 --- a/Localization.enUS.lua +++ b/Localization.enUS.lua @@ -11,9 +11,7 @@ PerfectRaidLocals = { ["Blessing of Salvation"] = "Blessing of Salvation", ["Blessing of Sanctuary"] = "Blessing of Sanctuary", ["Blessing of Wisdom"] = "Blessing of Wisdom", - ["Curse"] = "Curse", ["Dead"] = "Dead", - ["Disease"] = "Disease", ["Divine Spirit"] = "Divine Spirit", ["Fear Ward"] = "Fear Ward", ["Ghost"] = "Ghost", @@ -24,12 +22,14 @@ PerfectRaidLocals = { ["Greater Blessing of Salvation"] = "Greater Blessing of Salvation", ["Greater Blessing of Sanctuary"] = "Greater Blessing of Sanctuary", ["Greater Blessing of Wisdom"] = "Greater Blessing of Wisdom", + ["Healing Touch"] = "Healing Touch", + ["Healing Wave"] = "Healing Wave", + ["Holy Light"] = "Holy Light", ["Innervate"] = "Innervate", - ["Magic"] = "Magic", + ["Lesser Heal"] = "Lesser Heal", ["Mark of the Wild"] = "Mark of the Wild", ["Mortal Strike"] = "Mortal Strike", ["Offline"] = "Offline", - ["Poison"] = "Poison", ["Power Infusion"] = "Power Infusion", ["Power Word: Fortitude"] = "Power Word: Fortitude", ["Power Word: Shield"] = "Power Word: Shield", diff --git a/Localization.frFR.lua b/Localization.frFR.lua new file mode 100644 index 0000000..b0c6e68 --- /dev/null +++ b/Localization.frFR.lua @@ -0,0 +1,74 @@ +--Localization.frFR.lua +if GetLocale() ~= "frFR" then return end + +PerfectRaidLocals = { + ["Adding defaults to new profile \"%s\""] = "Ajout des options par d\195\169faut au nouveau profil \"%s\"", + ["Aggro"] = "Aggro", + ["Arcane Brilliance"] = "Illumination des arcanes", + ["Arcane Intellect"] = "Intelligence des arcanes", + ["Blessing of Kings"] = "B\195\169n\195\169diction des rois", + ["Blessing of Light"] = "B\195\169n\195\169diction de lumi\195\168re", + ["Blessing of Might"] = "B\195\169n\195\169diction de puissance", + ["Blessing of Salvation"] = "B\195\169n\195\169diction de salut", + ["Blessing of Sanctuary"] = "B\195\169n\195\169diction du sanctuaire", + ["Blessing of Wisdom"] = "B\195\169n\195\169diction de sagesse", + ["Dead"] = "Mort", + ["Divine Spirit"] = "Esprit divin", + ["Fear Ward"] = "Gardien de peur", + ["Ghost"] = "Fant\195\180me", + ["Gift of the Wild"] = "Don du fauve", + ["Greater Blessing of Kings"] = "B\195\169n\195\169diction des rois sup\195\169rieure", + ["Greater Blessing of Light"] = "B\195\169n\195\169diction de lumi\195\168re sup\195\169rieure", + ["Greater Blessing of Might"] = "B\195\169n\195\169diction de puissance sup\195\169rieure", + ["Greater Blessing of Salvation"] = "B\195\169n\195\169diction de salut sup\195\169rieure", + ["Greater Blessing of Sanctuary"] = "B\195\169n\195\169diction du sanctuaire sup\195\169rieure", + ["Greater Blessing of Wisdom"] = "B\195\169n\195\169diction de sagesse sup\195\169rieure", + ["Healing Touch"] = "Toucher gu\195\169risseur", + ["Healing Wave"] = "Vague de soins", + ["Holy Light"] = "Lumi\195\168re sacr\195\169e", + ["Innervate"] = "Innervation", + ["Lesser Heal"] = "Soins inf\195\169rieurs", + ["Mark of the Wild"] = "Marque du fauve", + ["Mortal Strike"] = "Frappe mortelle", + ["Offline"] = "Hors ligne", + ["Power Infusion"] = "Infusion de puissance", + ["Power Word: Fortitude"] = "Mot de pouvoir\194\160: Robustesse", + ["Power Word: Shield"] = "Mot de pouvoir\194\160: Bouclier", + ["Prayer Spirit"] = "Pri\195\168re d'Esprit", + ["Prayer of Fortitude"] = "Pri\195\168re de robustesse", + ["Prayer of Shadow Protection"] = "Pri\195\168re de protection contre l'Ombre", + ["Regrowth"] = "R\195\169tablissement", + ["Rejuvenation"] = "R\195\169cup\195\169ration", + ["Renew"] = "R\195\169novation", + ["STATUS_ARCANEINT"] = "Int", + ["STATUS_BLESSINGKINGS"] = "BdR", + ["STATUS_BLESSINGLIGHT"] = "BdL", + ["STATUS_BLESSINGMIGHT"] = "BdP", + ["STATUS_BLESSINGSALVATION"] = "BdS", + ["STATUS_BLESSINGSANCTUARY"] = "BdSn", + ["STATUS_BLESSINGWISDOM"] = "BdSg", + ["STATUS_CURSE"] = "Cu", -- Maladie + ["STATUS_DISEASE"] = "Di", -- Malediction, "Ma" for three debuff :/ + ["STATUS_DIVINESPIRIT"] = "Esp", + ["STATUS_FEARWARD"] = "GdP", + ["STATUS_FORT"] = "E", + ["STATUS_INNERVATE"] = "Inn", + ["STATUS_MAGIC"] = "Ma", + ["STATUS_MORTALSTRIKE"] = "Fm", + ["STATUS_MOTW"] = "M", + ["STATUS_POISON"] = "Po", + ["STATUS_POWERINFUSION"] = "IdP", + ["STATUS_PWS"] = "B", + ["STATUS_REGROWTH"] = "Rt", + ["STATUS_REJUV"] = "Rc", + ["STATUS_RENEW"] = "Rn", + ["STATUS_SHADOWPROT"] = "PO", + ["STATUS_SOULSTONE"] = "PdA", + ["STATUS_THORNS"] = "Ep", + ["STATUS_WEAKENEDSOUL"] = "Aa", + ["Shadow Protection"] = "Protection contre l'Ombre", + ["Soulstone Resurrection"] = "R\195\169surrection de Pierre d'\195\162me", + ["Thorns"] = "Epines", + ["Weakened Soul"] = "Ame affaiblie", +} + diff --git a/PerfectRaid.toc b/PerfectRaid.toc index 093f166..ecdc54e 100644 --- a/PerfectRaid.toc +++ b/PerfectRaid.toc @@ -7,7 +7,10 @@ Dongle.lua DongleUtils.lua + Localization.enUS.lua +Localization.frFR.lua + PerfectRaid.xml PerfectRaid.lua diff --git a/PerfectRaid_Buffs.lua b/PerfectRaid_Buffs.lua index 01fdf25..44cc031 100644 --- a/PerfectRaid_Buffs.lua +++ b/PerfectRaid_Buffs.lua @@ -826,31 +826,31 @@ Buffs.defaults = { disptext = L["STATUS_MORTALSTRIKE"], color = "FF1111", }, - -- Debuffs + -- Debuffs. These should not be localized. { conds = "All", - buffname = L["Curse"], + buffname = "Curse", disptext = L["STATUS_CURSE"], color = "9900FF", disabled = (class ~= "MAGE" and class ~= "DRUID") }, { conds = "All", - buffname = L["Poison"], + buffname = "Poison", disptext = L["STATUS_POISON"], color = "009900", disabled = (class ~= "PALADIN" and class ~= "DRUID") }, { conds = "All", - buffname = L["Disease"], + buffname = "Disease", disptext = L["STATUS_DISEASE"], color = "996600", disabled = (class ~= "PRIEST" and class ~= "PALADIN") }, { conds = "All", - buffname = L["Magic"], + buffname = "Magic", disptext = L["STATUS_MAGIC"], color = "3399FF", disabled = (class ~= "PRIEST" and class ~= "PALADIN") diff --git a/PerfectRaid_Range.lua b/PerfectRaid_Range.lua index 21e1136..cd26b12 100644 --- a/PerfectRaid_Range.lua +++ b/PerfectRaid_Range.lua @@ -31,6 +31,7 @@ local Range = PerfectRaid:NewModule("PerfectRaid-Range") local frames, rangespell, rate, alpha +local L = PerfectRaidLocals function Range:Initialize() PerfectRaid.defaults.profile.RangeCheck = true @@ -46,10 +47,10 @@ function Range:Enable() if not PerfectRaid.defaults.profile.RangeCheck then return end local class = select(2, UnitClass("player")) local spells = { - DRUID = "Healing Touch", - SHAMAN = "Healing Wave", - PRIEST = "Lesser Heal", - PALADIN = "Holy Light", + DRUID = L["Healing Touch"], + SHAMAN = L["Healing Wave"], + PRIEST = L["Lesser Heal"], + PALADIN = L["Holy Light"], } rangespell = spells[class] -- 1.7.9.5