มอดูล:number list/data/tg
หน้าตา
ข้อผิดพลาด Lua ใน มอดูล:scripts/data บรรทัดที่ 3620: attempt to call field '?' (a nil value)
local export = { numbers = {} }
local numbers = export.numbers
numbers[0] = {
cardinal = "сифр",
}
numbers[1] = {
cardinal = "як",
ordinal = { "аввал", "якум" },
}
numbers[2] = {
cardinal = "ду",
ordinal = "дуюм",
}
numbers[3] = {
cardinal = "се",
ordinal = "сеюм",
}
numbers[4] = {
cardinal = { "чор", "чаҳор<q:dated>" },
ordinal = { "чорум", "чаҳорум<q:dated>" },
}
numbers[5] = {
cardinal = "панҷ",
ordinal = "панҷум",
}
numbers[6] = {
cardinal = "шаш",
ordinal = "шашум",
}
numbers[7] = {
cardinal = "ҳафт",
ordinal = "ҳафтум",
}
numbers[8] = {
cardinal = "ҳашт",
ordinal = "ҳаштум",
}
numbers[9] = {
cardinal = "нуҳ",
ordinal = "нуҳум",
}
numbers[10] = {
cardinal = "даҳ",
ordinal = "даҳум",
}
numbers[11] = {
cardinal = "ёздаҳ",
ordinal = "ёздаҳум",
}
numbers[12] = {
cardinal = "дувоздаҳ",
ordinal = "дувоздаҳум",
}
numbers[13] = {
cardinal = "сенздаҳ",
ordinal = "сенздаҳум",
}
numbers[14] = {
cardinal = "чордаҳ",
ordinal = "чордаҳум",
}
numbers[15] = {
cardinal = "понздаҳ",
ordinal = "понздаҳум",
}
numbers[16] = {
cardinal = "шонздаҳ",
ordinal = "шонздаҳум",
}
numbers[17] = {
cardinal = "ҳабдаҳ",
ordinal = "ҳабдаҳум",
}
numbers[18] = {
cardinal = "ҳаждаҳ",
ordinal = "ҳаждаҳум",
}
numbers[19] = {
cardinal = "нуздаҳ",
ordinal = "нуздаҳум",
}
local function unpack_ipairs(t)
local i = 0
return function()
i = i + 1
if t[i] then
return i, unpack(t[i])
end
end
end
for i, tens_cardinal in unpack_ipairs({
{ "бист" },
{ "сӣ" },
{ "чил" },
{ "панҷох" },
{ "шаст" },
{ "ҳафтод" },
{ "ҳаштод" },
{ "навад" },
}) do
local tens = (i + 1) * 10
numbers[tens] = {
cardinal = tens_cardinal,
}
local prefix = (tens_cardinal .. "у")
for ones = 1, 9 do
local number = {}
numbers[tens + ones] = number
local ones_cardinal = {}
local temp = numbers[ones].cardinal
if type(temp) == "string" then
table.insert(ones_cardinal, temp)
elseif type(temp) == "table" then
ones_cardinal = numbers[ones].cardinal
end
local cardinals = {}
for j, o_cardinal in ipairs(ones_cardinal) do
if i == 2 then
table.insert(cardinals, "сию " .. ones_cardinal[j])
else
table.insert(cardinals, prefix .. " " .. ones_cardinal[j])
end
end
number.cardinal = cardinals
end
end
numbers[100] = {
cardinal = "сад",
ordinal = "садум",
}
numbers[200] = {
cardinal = "дусад",
ordinal = "дусадум",
}
numbers[300] = {
cardinal = "сесад",
ordinal = "сесадум",
}
numbers[400] = {
cardinal = "чорсад",
ordinal = "чорсадум",
}
numbers[500] = {
cardinal = "панҷсад",
ordinal = "панҷсадум",
}
numbers[600] = {
cardinal = "шашсад",
ordinal = "шашсадум",
}
numbers[700] = {
cardinal = "ҳафтсад",
ordinal = "хафтсадум",
}
numbers[800] = {
cardinal = "ҳаштсад",
ordinal = "ҳаштсадум",
}
numbers[900] = {
cardinal = "нӯҳсадум",
ordinal = "навадум",
}
numbers[1000] = {
cardinal = "ҳазор",
ordinal = "ҳазорум",
}
numbers[1000000] = {
cardinal = "милён",
}
numbers[1000000000] = {
cardinal = "миллиард",
}
return export