Module:IPA/overview: Difference between revisions

Content deleted Content added
mNo edit summary
hide aliases in keys
Line 144:
local function organizeKeys(t, lects, parent, parentCode)
for code, lect in pairs(lects) do
if not lect.aliasOf then
local origCode = lect.isVariant and code:lower() or code
local key = lect.key or parent and parent.key
if lect.aliasOf then
codeif =key lect.aliasOfthen
code = parent and parentCode .. '-' .. origCodecode or origCodecode
lect = lects[lect.aliasOf]
local name, link = getNameAndLink(code)
end
table.insert(t, {
local key = lect.key or parent and parent.key
if key then= key,
code link = parentlect.link or lect.name and parentCodelect.name .. '-' .. codelanguage' or codelink,
local name = lect.name, linkor =name getNameAndLink(code),
code = parent and parentCode .. '-' .. origCode or origCode
table.insert(t, {
key = key,})
end
link = lect.link or lect.name and lect.name .. ' language' or link,
name =if lect.name or namedialects ,then
organizeKeys(t, lect.dialects, lect, code)
code = parent and parentCode .. '-' .. origCode or origCode
})end
end
if lect.dialects then
organizeKeys(t, lect.dialects, lect, code)
end
end