Modul:pa-translit
A modult a Modul:pa-translit/doc lapon tudod dokumentálni
local export = {}
function export.tr(text, lang, sc, debug_mode)
local out_text
if (sc == 'Guru') then
out_text = require('Module:Guru-translit').tr(text, lang, sc, debug_mode)
elseif (sc == 'Shah' or 'pa-Arab') then
out_text = require('Module:pa-Arab-translit').tr(text, lang, sc, debug_mode)
elseif (sc == 'Deva') then
out_text = require('Module:hi-translit').tr(text, lang, sc, debug_mode)
-- out_text = nil
else
local namespace = mw.title:getCurrentTitle().nsText
if namespace == "Category" then
out_text = nil
else
error('Invalid script for Punjabi language.')
end
end
return out_text
end
return export