jp-ganis / JPS

Protected LUA DPS Addon
32 stars 46 forks source link

Req. and question about translation #432

Closed shikulja closed 9 years ago

shikulja commented 9 years ago

req. need more strings GUI, options panel, text messages. and how to add to jplocal from Rotations spellnames?

i add to transl table

            -- Paladin spells
    ["Execution Sentence"] = "Смертный приговор"
    ["Avenging Wrath"] = "Гнев карателя"
    ["Rebuke"] = "Укор"
    ["Fist of Justice"] = "Кулак правосудия"
    ["Seal of Truth"] = "Печать правды"
    ["Templar's Verdict"] = "Вердикт храмовника"

and in paladin_ret_pvp.lua local L = MyLocalizationTable { L["Rebuke"], jps.shouldKick(rangedTarget) , rangedTarget },

because the English names of the spells do not work in rotation on Russian server

but error- Message: ..\AddOns\JPS\jplocal.lua line 162: '}' expected (to close '{' at line 159) near '['

kirk24788 commented 9 years ago

Well...I guess you made a mistake in the jplocal.lua in Line 162 ;) For one you are missing commas, if you have something like this it should work:

...
    elseif (GetLocale() == "ruRU") then
        MyLocalizationTable = setmetatable({
               ["Execution Sentence"] = "Смертный приговор",
               ["Avenging Wrath"] = "Гнев карателя",
               ["Rebuke"] = "Укор",
               ["Fist of Justice"] = "Кулак правосудия",
               ["Seal of Truth"] = "Печать правды",
               ["Templar's Verdict"] = "Вердикт храмовника",
        } , {__index = function(t, index) return index end})
    else
...