Модуль:Country2Adj
Этому модулю не хватает документации. |
--[[
------------------------------------------
-- 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 == "Великобритания") 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 == "Мексика") 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 == "Турция") 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 == "Япония") then
if(j == "1") then return "японский"
elseif(j == "2") then return "японская"
else return "японское" end
else return "" end
end
return Country2Adj