Difference between revisions 18626540 and 18626541 on frwiktionary

local languages = mw.loadData("Module:languages")
local export = {}

-- transliterate the text, if possible
function export.translit(lang, text)
    -- TODO: the table's information should be moved to [[Module:languages]]
    local translit_modules = {
        ["ae"] = "Module:Avst-translit",
(contracted; show full)            end
        end
        
        if sort_key then
            -- Gather some statistics regarding sort keys
            if mw.ustring.lower(sort_key) == sort_base then
                table.insert(categories, "Sort key tracking/redundant")
            else
if lang ~= "cmn" and lang ~= "ja" then
                table.insert(categories, "Sort key tracking/needed")
            end
        else
            sort_key = sort_base
        end
        
        -- If the resulting key is the same as the wiki software's default, remove it
(contracted; show full)        i = i + 1
        cat = args[i]
    end
    
    return export.format_categories(categories, lang, sort_key)
end

return export