added the translation to the Russian language

This commit is contained in:
Aleksandr Avdeev 2024-07-05 12:11:22 +03:00
parent 837ecd6898
commit 40035bcb54
4 changed files with 37 additions and 16 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/.idea/

View File

@ -1,3 +1,4 @@
local S = minetest.get_translator("fachwerk")
-- mods/fachwerk/api.lua
-- =====================
-- See README.md for licensing and other information.
@ -6,7 +7,7 @@ function fachwerk.register_fachwerk(basename, texture, description, craft_from)
local group_def = {choppy = 2, oddly_breakable_by_hand = 2, cracky = 3}
minetest.register_node("fachwerk:" .. basename, {
description = "Timber-framed " .. description,
description = S("Timber-framed") .. " " .. description,
tiles = {texture .. "^fachwerk_blank.png"},
paramtype = "light",
paramtype2 = "facedir",
@ -15,7 +16,7 @@ function fachwerk.register_fachwerk(basename, texture, description, craft_from)
})
minetest.register_node("fachwerk:" .. basename .. "_1", {
description = "Timber-framed " .. description .. " Oblique Beam 1",
description = S("Timber-framed") .. " " .. description .. " " .. S("Oblique Beam 1"),
tiles = {
texture .. "^fachwerk_blank.png", -- top
texture .. "^fachwerk_blank.png", -- bottom
@ -32,7 +33,7 @@ function fachwerk.register_fachwerk(basename, texture, description, craft_from)
-- TODO: is this one really needed? the node above covers most of that already
minetest.register_node("fachwerk:" .. basename .. "_2", {
description = "Timber-framed " .. description .. " Oblique Beam 2",
description = S("Timber-framed") .. " " .. description .. " " .. S("Oblique Beam 2"),
tiles = {
texture .. "^fachwerk_blank.png", -- top
texture .. "^fachwerk_blank.png", -- bottom
@ -48,7 +49,7 @@ function fachwerk.register_fachwerk(basename, texture, description, craft_from)
})
minetest.register_node("fachwerk:" .. basename .. "_cross", {
description = "Timber-framed " .. description .. " Cross",
description = S("Timber-framed") .. " " .. description .. " " .. S("Cross"),
tiles = {texture .. "^fachwerk_cross.png"},
groups = group_def,
sounds = default.node_sound_stone_defaults()

18
locale/fachwerk.ru.tr Normal file
View File

@ -0,0 +1,18 @@
# textdomain: fachwerk
Timber-framed=Деревянный-каркас
Oblique Beam 1= Наклонная балка 1
Oblique Beam 2= Наклонная балка 2
Cross= Крест
Clay=Глина
Bricks=Кирпичи
Stone Brick=Каменный Кирпич
Cobble=Булыжник
Stone=Камень
Desert Stone=Камень пустыни
White Wool=Белая Шерсть
Grey Wool=Серая шерсть
Yellow Wool=Желтая шерсть
Wood=Древесина
Junglewood=Джунглевая древесина
Timber-framed Glass=Деревянный-каркас Стекло

View File

@ -1,3 +1,4 @@
local S = minetest.get_translator("fachwerk")
-- mods/fachwerk/nodes.lua
-- =======================
-- See README.md for licensing and other information.
@ -7,19 +8,19 @@
local additional_fachwerk_types = false
-- fachwerk.register_fachwerk(basename, texture, description, craft_from)
fachwerk.register_fachwerk("clay", "default_clay.png", "Clay", "default:clay")
fachwerk.register_fachwerk("brick", "default_brick.png", "Bricks", "default:brick")
fachwerk.register_fachwerk("stone_brick", "default_stone_brick.png", "Stone Brick", "default:stonebrick")
fachwerk.register_fachwerk("cobble", "default_cobble.png", "Cobble", "default:cobble")
fachwerk.register_fachwerk("stone", "default_stone.png", "Stone", "default:stone")
fachwerk.register_fachwerk("clay", "default_clay.png", S("Clay"), "default:clay")
fachwerk.register_fachwerk("brick", "default_brick.png", S("Bricks"), "default:brick")
fachwerk.register_fachwerk("stone_brick", "default_stone_brick.png", S("Stone Brick"), "default:stonebrick")
fachwerk.register_fachwerk("cobble", "default_cobble.png", S("Cobble"), "default:cobble")
fachwerk.register_fachwerk("stone", "default_stone.png", S("Stone"), "default:stone")
if additional_fachwerk_types == true then
fachwerk.register_fachwerk("desert_stone", "default_desert_stone.png", "Desert Stone", "default:desert_stone")
fachwerk.register_fachwerk("white", "wool_white.png", "White Wool", "wool:white")
fachwerk.register_fachwerk("grey", "wool_grey.png", "Grey Wool", "wool:grey")
fachwerk.register_fachwerk("yellow", "wool_yellow.png", "Yellow Wool", "wool:yellow")
fachwerk.register_fachwerk("wood", "default_wood.png", "Wood", "default:wood")
fachwerk.register_fachwerk("junglewood", "default_junglewood.png", "Junglewood", "default:junglewood")
fachwerk.register_fachwerk("desert_stone", "default_desert_stone.png", S("Desert Stone"), "default:desert_stone")
fachwerk.register_fachwerk("white", "wool_white.png", S("White Wool"), "wool:white")
fachwerk.register_fachwerk("grey", "wool_grey.png", S("Grey Wool"), "wool:grey")
fachwerk.register_fachwerk("yellow", "wool_yellow.png", S("Yellow Wool"), "wool:yellow")
fachwerk.register_fachwerk("wood", "default_wood.png", S("Wood"), "default:wood")
fachwerk.register_fachwerk("junglewood", "default_junglewood.png", S("Junglewood"), "default:junglewood")
end
--
@ -27,7 +28,7 @@ end
--
minetest.register_node("fachwerk:framed_glass", {
description = "Timber-framed Glass",
description = S("Timber-framed Glass"),
drawtype = "glasslike_framed_optional",
tiles = {"fachwerk_blank.png^default_glass_detail.png", "default_glass_detail.png"},
inventory_image = minetest.inventorycube("fachwerk_blank.png"),