ElEditors, Interface administrators, Administrators
85,550
edits
m (Add i18n locale support) Tag: Reverted |
m (add i18n) |
||
(One intermediate revision by the same user not shown) | |||
Line 46: | Line 46: | ||
local STR = { | local STR = { | ||
LIGHT = | LIGHT = 'Light', | ||
CRITICAL = | CRITICAL = 'Critical', | ||
REVERSED = | REVERSED = 'Reversed', | ||
HEAVY = | HEAVY = 'Heavy', | ||
HASTE = | HASTE = 'Haste', | ||
REGEN1 = | REGEN1 = 'Regenerating (1)', | ||
REGEN2 = | REGEN2 = 'Regenerating (2)', | ||
KB1 = | KB1 = 'Killing Blow (1)', | ||
KB2 = | KB2 = 'Killing Blow (2)', | ||
RUTHLESS = | RUTHLESS = 'Ruthless', | ||
POWERFUL = | POWERFUL = 'Powerful', | ||
USEFUL = | USEFUL = 'Useful', | ||
SEC = | SEC = 'Seconds', | ||
MP = | MP = 'MP', | ||
ECP = | ECP = 'ECP', | ||
PERSISTENT = | PERSISTENT = 'Persistent', | ||
PERSISTENT2 = | PERSISTENT2 = 'Persistent2' | ||
} | } | ||
Line 161: | Line 161: | ||
-- Loop through 2 input traits. | -- Loop through 2 input traits. | ||
for trait_count, trait_name in ipairs(traits) do | for trait_count, trait_name in ipairs(traits) do | ||
local th = tr1:tag('th'):wikitext(trait_name:gsub(STR. | local th = tr1:tag('th'):wikitext(trait_name:gsub(translate(STR.PERSISTENT) .. 2, translate(STR.PERSISTENT)) .. ' ' .. skill); | ||
local th_effect; | local th_effect; | ||
local th_skilltext; | local th_skilltext; | ||
Line 172: | Line 172: | ||
end | end | ||
if indexOf(trait_name, detail) then | if indexOf(trait_name, detail) then | ||
local th_detail = tr2:tag('th'):wikitext(prop[detail_key]); | local th_detail = tr2:tag('th'):wikitext(translate(prop[detail_key])); | ||
th:attr('colspan', tonumber(th:getAttr('colspan') or 1) + 1) | th:attr('colspan', tonumber(th:getAttr('colspan') or 1) + 1) | ||
end | end | ||
Line 233: | Line 233: | ||
suffix = STR.SEC | suffix = STR.SEC | ||
end | end | ||
suffix = suffix and (' ' .. suffix) or '' | |||
local base_detail = args[short_detail_improved .. modeSuffix] | local base_detail = args[short_detail_improved .. modeSuffix] |