Module:pa-translit

Definition from Wiktionary, the free dictionary
Jump to navigation Jump to search

This module is no longer used. It formerly handled Punjabi transliteration, but it has been replaced with Module:translit-redirect.


Crystal Clear filesystem trashcan full.png This module page has been nominated for deletion(+)
Please see that page for discussion and justifications. Feel free to edit this module page as normal, though do not remove the {{rfd}} until the debate has finished.

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