10,731
edits
TheNightAvl (talk | contribs) No edit summary |
TheNightAvl (talk | contribs) No edit summary |
||
Line 23: | Line 23: | ||
language, pos = mw.ustring.match(args[1], "^([a-z]+)%s+([a-z]+)$") | language, pos = mw.ustring.match(args[1], "^([a-z]+)%s+([a-z]+)$") | ||
language = m_languages.find_by_code(language) | language = m_languages.find_by_code(language) | ||
pos = ( language ~= nil and (data[pos] or pos) ) or nil | pos = ( language ~= nil and (data["pos aliases"][pos] or pos) ) or nil | ||
else | else | ||
language = m_languages.find_by_code(args[1]) | language = m_languages.find_by_code(args[1]) | ||
pos = data[args["pos"]] or args["pos"] | pos = data["pos aliases"][args["pos"]] or args["pos"] | ||
end | end | ||