Modulo:Country2Adj

El Vikinovaĵoj, libera retgazeto

Dokumentado por ĉi tiu modulo povas esti kreata ĉe Modulo:Country2Adj/dokumentado

--[[
------------------------------------------
--             Country2Adj
-- Модуль для возвращения прилагательного по стране. 
------------------------------------------
--]]

local Country2Adj={}

function Country2Adj.launch(cnt, swtch)
 local adj = ""	
 adj = Country2Adj.GetAdj(cnt, swtch)
 if(adj == nil or adj == "") then adj = nil end
 return adj
end	 

function Country2Adj.GetAdj(i, j)
	if(i == "Barato") then 
		if(j == "1") then return "barata" 
		elseif(j == "2") then return "barata" 
		else return "barata" end
	elseif(i ==  "Britio") then 
		if(j == "1") then return "brita" 
		elseif(j == "2") then return "brita" 
		else return "brita" end	
	elseif(i ==  "Ĉilio") then 
		if(j == "1") then return "ĉilia" 
		elseif(j == "2") then return "ĉilia" 
		else return "ĉilia" end	
	elseif(i == "Germanio") then 
		if(j == "1") then return "germana" 
		elseif(j == "2") then return "germana" 
		else return "germana" end	
	elseif(i == "Hispanio") then 
		if(j == "1") then return "hispana" 
		elseif(j == "2") then return "hispana" 
		else return "hispana" end
	elseif(i == "Rusio") then 
		if(j == "1") then return "rusia" 
		elseif(j == "2") then return "rusia" 
		else return "rusia" end
	elseif(i == "Soveta Unio") then 
		if(j == "1") then return "sovetia" 
		elseif(j == "2") then return "sovetia" 
		else return "sovetia" end
	elseif(i == "Мексика") then 
		if(j == "1") then return "мексиканский" 
		elseif(j == "2") then return "мексиканская" 
		else return "мексиканское" end
	elseif(i == "Польша") then 
		if(j == "1") then return "польский" 
		elseif(j == "2") then return "польская" 
		else return "польское" end
	elseif(i == "США") then 
		if(j == "1") then return "американский" 
		elseif(j == "2") then return "американская" 
		else return "американское" end
	elseif(i == "Турция") then 
		if(j == "1") then return "турецкий" 
		elseif(j == "2") then return "турецкая" 
		else return "турецкое" end
	elseif(i == "Uzbekio") then 
		if(j == "1") then return "uzbeka" 
		elseif(j == "2") then return "uzbeka"
		else return "uzbeka" end
	elseif(i == "Украина") then 
		if(j == "1") then return "украинский" 
		elseif(j == "2") then return "украинская" 
		else return "украинское" end
	elseif(i == "Франция") then 
		if(j == "1") then return "французский" 
		elseif(j == "2") then return "французская" 
		else return "французское" end
	elseif(i == "Швеция") then 
		if(j == "1") then return "шведский" 
		elseif(j == "2") then return "шведская" 
		else return "шведское" end
	elseif(i == "Япония") then 
		if(j == "1") then return "японский" 
		elseif(j == "2") then return "японская" 
		else return "японское" end
	else return "" end	
end 

return Country2Adj