Module:HeroData: Difference between revisions

Sur (talk | contribs)
m if unable to find postfix key, use the key
Sur (talk | contribs)
m if lang is missing a postfix, use no postfix
Line 172: Line 172:
postfix = lang_module._get_string(postfix)
postfix = lang_module._get_string(postfix)
end
end
-- if unable to be localized, show the postfix key
-- if a language is missing the postfix, use no postfix
if (postfix == nil) then
if (postfix == nil) then
postfix = stat_data["postfix"]
postfix = ""
end
end
Line 272: Line 272:
else
else
postfix = lang_module._get_string(postfix)
postfix = lang_module._get_string(postfix)
end
-- if a language is missing the postfix, use no postfix
if (postfix == nil) then
postfix = ""
end
end