模块:Pa-translit

維基詞典,自由的多語言詞典
跳到导航 跳到搜索

This module formerly handled Punjabi transliteration, but it has been replaced with Module:translit-redirect.


[[Category:棄用模塊]


-- Transliteration for Punjabi 旁遮普語轉譯

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 == 'Deva') then
		out_text = require('Module:hi-translit').tr(text, lang, sc, debug_mode)
	elseif (sc == 'Arab' or sc == 'pa-Arab') then
	--	out_text = require('Module:pa-Arab-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