Module:translations: Difference between revisions

ਕੋਈ ਸੋਧ ਸਾਰ ਨਹੀਂ
No edit summary
No edit summary
Line 5: Line 5:


function export.show(frame)
function export.show(frame)
---PLEASE DELETE THIS SOON
if frame:getParent().args[2] == nil then return "[[Category:Translations to update]]" end
local function sort_function(a, b)
local function sort_function(a, b)
return a.name < b.name
return a.name < b.name
Line 15: Line 18:
local title = args[2] or args["title"] or args["t"]
local title = args[2] or args["title"] or args["t"]
if title then title = string.gsub(title, "%s+$", "") end
if title then title = string.gsub(title, "%s+$", "") end
if args[2] == nil then return "[[Category:Translations to update]]" end
for k, v in pairs(args) do
for k, v in pairs(args) do
if type(k) == "string" and type(v) == "string" then
if type(k) == "string" and type(v) == "string" then