2,788
edits
No edit summary |
No edit summary |
||
Line 38: | Line 38: | ||
if data.from then | if data.from then | ||
local from_lang = m_languages.find_by_code(data.from) | local from_lang = m_languages.find_by_code(data.from) | ||
local from_name = (from_lang and from_lang.name or data.from) | local from_name = (from_lang and ("[[" .. from_lang.link .. "|" .. from_lang.name .. "]]") or data.from) | ||
table.insert(out, "from " .. from_name) | table.insert(out, "from " .. from_name) | ||
cat = cat .. "[[Category:" .. data.language.name .. " " .. data.type .. "s from " .. from_name .. "]]" | cat = cat .. "[[Category:" .. data.language.name .. " " .. data.type .. "s from " .. from_name .. "]]" |