2,788
edits
No edit summary |
No edit summary |
||
Line 34: | Line 34: | ||
function export.show_list(frame) | function export.show_list(frame) | ||
local args = frame.args | local args = frame.args | ||
local | local lang = require("Module:languages").get_by_code(args["lang"]) | ||
local pos = args["pos"] | local pos = args["pos"] | ||
local genders = {} | local genders = {} | ||
local i = 1 | local i = 1 | ||
Line 46: | Line 43: | ||
i = i + 1 | i = i + 1 | ||
end | end | ||
local text, cats = export.format_genders( | local text, cats = export.format_genders(lang, pos, genders) | ||
return text .. cats | return text .. cats | ||
end | end | ||
function export.format_genders( | function export.format_genders(language, pos, genders) | ||
local parts = {} | local parts = {} | ||
local groups = {} | local groups = {} |