1
0
mirror of https://github.com/mt-mods/homedecor_modpack.git synced 2024-12-22 16:10:18 +01:00

MT5 translation for homedecor_misc

- Add screwdriver to optional_depends
- Fix luacheck warnings
- Fix indentation
This commit is contained in:
Louis Royer 2020-08-05 00:07:13 +02:00
parent e3ec030468
commit 92649fad62
13 changed files with 583 additions and 134 deletions

View File

@ -1,8 +0,0 @@
homedecor_common
default
basic_materials
unifieddyes
building_blocks?
technic?
bucket?
signs_lib?

View File

@ -7,7 +7,9 @@
-- The code for ovens, nightstands, refrigerators are basically modified
-- copies of the code for chests and furnaces.
local S = homedecor.gettext
local S = minetest.get_translator("homedecor_misc")
homedecor_misc = {}
homedecor.register("ceiling_paint", {
description = S("Textured Ceiling Paint"),
@ -284,7 +286,7 @@ homedecor.register("pool_table", {
collision_box = pooltable_cbox,
expand = { forward="placeholder" },
sounds = default.node_sound_wood_defaults(),
on_rotate = screwdriver.disallow
on_rotate = minetest.get_modpath("screwdriver") and screwdriver.disallow or nil,
})
minetest.register_alias("homedecor:pool_table_2", "air")
@ -308,7 +310,7 @@ homedecor.register("piano", {
collision_box = piano_cbox,
expand = { right="placeholder" },
sounds = default.node_sound_wood_defaults(),
on_rotate = screwdriver.disallow
on_rotate = minetest.get_modpath("screwdriver") and screwdriver.disallow or nil,
})
minetest.register_alias("homedecor:piano_left", "homedecor:piano")
@ -383,7 +385,7 @@ homedecor.register("tool_cabinet", {
"homedecor_tool_cabinet_misc.png",
},
inventory_image = "homedecor_tool_cabinet_inv.png",
on_rotate = screwdriver.rotate_simple,
on_rotate = minetest.get_modpath("screwdriver") and screwdriver.rotate_simple or nil,
groups = { snappy=3 },
selection_box = homedecor.nodebox.slab_y(2),
expand = { top="placeholder" },
@ -395,8 +397,9 @@ homedecor.register("tool_cabinet", {
minetest.register_alias("homedecor:tool_cabinet_bottom", "homedecor:tool_cabinet")
minetest.register_alias("homedecor:tool_cabinet_top", "air")
homedecor.banister_materials = {
{ "wood",
homedecor_misc.banister_materials = {
{
"wood",
S("wood"),
"default_wood.png",
"default_wood.png",
@ -405,7 +408,8 @@ homedecor.banister_materials = {
"",
""
},
{ "white_dark",
{
"white_dark",
S("dark topped"),
homedecor.white_wood,
homedecor.dark_wood,
@ -414,7 +418,8 @@ homedecor.banister_materials = {
"dye:brown",
"dye:white"
},
{ "brass",
{
"brass",
S("brass"),
homedecor.white_wood,
"homedecor_generic_metal_brass.png",
@ -423,7 +428,8 @@ homedecor.banister_materials = {
"",
"dye:white"
},
{ "wrought_iron",
{
"wrought_iron",
S("wrought iron"),
"homedecor_generic_metal_wrought_iron.png",
"homedecor_generic_metal_wrought_iron.png",
@ -438,7 +444,7 @@ for _, side in ipairs({"diagonal_left", "diagonal_right", "horizontal"}) do
local sidedesc = side:match("^diagonal") and S("diagonal") or S("horizontal")
for _, mat in ipairs(homedecor.banister_materials) do
for _, mat in ipairs(homedecor_misc.banister_materials) do
local name, matdesc, tile1, tile2 = unpack(mat)
local nodename = "banister_"..name.."_"..side
@ -534,7 +540,7 @@ homedecor.register("spiral_staircase", {
},
groups = {cracky = 1},
sounds = default.node_sound_wood_defaults(),
on_rotate = screwdriver.rotate_simple,
on_rotate = minetest.get_modpath("screwdriver") and screwdriver.rotate_simple or nil,
after_place_node = function(pos, placer, itemstack, pointed_thing)
local fdir = minetest.dir_to_facedir(placer:get_look_dir())
local leftx = homedecor.fdir_to_left[fdir+1][1]
@ -632,8 +638,6 @@ homedecor.register("dartboard", {
--
-- Mostly my own code; overall template borrowed from game default
local S = homedecor.gettext
minetest.register_craft( {
output = "homedecor:flower_pot_terracotta",
recipe = {
@ -677,7 +681,6 @@ minetest.register_craft( {
recipe = {
{ "", "dye:white", "" },
{ "default:steel_ingot", "default:stone", "default:steel_ingot" },
},
})
@ -971,13 +974,13 @@ minetest.register_craft( {
recipe = { { "homedecor:flower_pot_terracotta" } }
})
for i in ipairs(homedecor.banister_materials) do
for i in ipairs(homedecor_misc.banister_materials) do
local name = homedecor.banister_materials[i][1]
local topmat = homedecor.banister_materials[i][5]
local vertmat = homedecor.banister_materials[i][6]
local dye1 = homedecor.banister_materials[i][7]
local dye2 = homedecor.banister_materials[i][8]
local name = homedecor_misc.banister_materials[i][1]
local topmat = homedecor_misc.banister_materials[i][5]
local vertmat = homedecor_misc.banister_materials[i][6]
local dye1 = homedecor_misc.banister_materials[i][7]
local dye2 = homedecor_misc.banister_materials[i][8]
minetest.register_craft({
output = "homedecor:banister_"..name.."_horizontal 2",

View File

@ -0,0 +1,45 @@
# textdomain: homedecor_misc
### init.lua ###
Banister for Stairs (@1, @2)=Treppengeländer (@1, @2)
Blue Geranium=Blaue Geranie
Bonsai=Bonsai
Brass Pole=Messingstange
Cactus=Kaktus
Cardboard box=Karton
Cardboard box (big)=Karton (groß)
DVD/CD cabinet=DVD-/CD-Regal
Dartboard=Dartscheibe
Drop-Ceiling Tile=Abgehängte Deckenkachel
Fishtank=Aquarium
Fishtank (lighted)=Beleuchtetes Aquarium
Flower Pot (@1)=Blumentopf (@1)
Japanese tatami=Japanische Tatami
Japanese wall=Japanische Wand
Japanese wall (bottom)=Japanische Wand (unten)
Japanese wall (top)=Japanische Wand (oben)
Metal tool cabinet and work table=Metallwerkzeugschrank und Arbeitstisch
Piano=Klavier
Pool Table=Billardtisch
Potted flower (@1)=Eingetopfte Blume (@1)
Rose=Rose
Rug (@1)=Teppich (@1)
Skateboard=Skateboard
Small Flower Pot=Kleiner Blumentopf
Sport bench=Fitnessgerät
Textured Ceiling Paint=Deckenfarbe
Trophy=Trophäe
Tulip=Tulpe
Viola=Veilchen
White Dandelion=Weißer Löwenzahn
Wrought Iron Pole=Schmiedeeiserne Stange
Yellow Dandelion=Gelber Löwenzahn
brass=Messing
dark topped=dunkler Handlauf
diagonal=diagonal
horizontal=horizontal
not enough space=nicht genügend Platz
wood=Holz
wrought iron=Schmiedeeisen

View File

@ -0,0 +1,45 @@
# textdomain: homedecor_misc
### init.lua ###
Banister for Stairs (@1, @2)=Barandilla para escaleras (@1, @2)
Blue Geranium=Geranio azul
Bonsai=Bonsai
Brass Pole=Poste de latón
Cactus=Cacto
Cardboard box=Caja de cartón
Cardboard box (big)=Caja de cartón (grande)
DVD/CD cabinet=Gabinete de CDs/DVDs
Dartboard=Diana
Drop-Ceiling Tile=Azulejo de techo
Fishtank=Estanque para peces
Fishtank (lighted)=Estanque para peces (iliminado)
Flower Pot (@1)=Maceta (@1)
Japanese tatami=Tatami
Japanese wall=Pared japonesa
Japanese wall (bottom)=Pared japonesa (parte más baja)
Japanese wall (top)=Pared japonesa (parte más alta)
Metal tool cabinet and work table=Mesa de trabajo y gabinete en hierro
Piano=Piano
Pool Table=Mesa de pool
Potted flower (@1)=Flor en maceta (@1)
Rose=Rosa
Rug (@1)=Tapete (@1)
Skateboard=Patineta
Small Flower Pot=Maceta pequeña
Sport bench=Banco deportivo
Textured Ceiling Paint=Pintura de techo con textura
Trophy=Trofeo
Tulip=Tulipán
Viola=Viola
White Dandelion=Diente de león blanco
Wrought Iron Pole=Poste de hierro forjado
Yellow Dandelion=Diente de león amarillo
brass=latón
dark topped=mesada oscura
diagonal=diagonal
horizontal=horizontal
not enough space=no hay suficiente espacio
wood=madera
wrought iron=hierro forjado

View File

@ -0,0 +1,45 @@
# textdomain: homedecor_misc
### init.lua ###
Banister for Stairs (@1, @2)=Rampe d'escalier (@1, @2)
Blue Geranium=Géranium bleu
Bonsai=Bonsaï
Brass Pole=Perche en étain
Cactus=Cactus
Cardboard box=Carton d'emballage
Cardboard box (big)=Carton d'emballage (grand)
DVD/CD cabinet=Meuble DVD/CD
Dartboard=Jeu de fléchettes
Drop-Ceiling Tile=Plaque de plafond
Fishtank=Aquarium
Fishtank (lighted)=Aquarium (éclairé)
Flower Pot (@1)=Pot de fleur (@1)
Japanese tatami=Tatami
Japanese wall=Mur japonais
Japanese wall (bottom)=Mur japonais (bas)
Japanese wall (top)=Mur japonais (haut)
Metal tool cabinet and work table=Établi pour le travail du métal
Piano=Piano
Pool Table=Billard
Potted flower (@1)=Fleur en pot (@1)
Rose=Rose
Rug (@1)=Tapis (@1)
Skateboard=Planche à roulettes
Small Flower Pot=Petit pot de fleurs
Sport bench=Banc de musculation
Textured Ceiling Paint=Peinture pour plafonds
Trophy=Trophée
Tulip=Tulipe
Viola=Violette
White Dandelion=Pissenlit blanc
Wrought Iron Pole=Perche en fer forgé
Yellow Dandelion=Pissenlit jaune
brass=laiton
dark topped=dessus foncé
diagonal=diagonal
horizontal=horizontal
not enough space=pas assez d'espace
wood=bois
wrought iron=fer forgé

View File

@ -0,0 +1,45 @@
# textdomain: homedecor_misc
### init.lua ###
Banister for Stairs (@1, @2)=
Blue Geranium=
Bonsai=
Brass Pole=Palo di ottone
Cactus=
Cardboard box=
Cardboard box (big)=
DVD/CD cabinet=
Dartboard=
Drop-Ceiling Tile=Piastrella del controsoffitto
Fishtank=
Fishtank (lighted)=
Flower Pot (@1)=
Japanese tatami=
Japanese wall=
Japanese wall (bottom)=
Japanese wall (top)=
Metal tool cabinet and work table=
Piano=
Pool Table=Tavolo
Potted flower (@1)=
Rose=
Rug (@1)=
Skateboard=
Small Flower Pot=Vaso per fiori di plastica nera
Sport bench=
Textured Ceiling Paint=Vernice con trama per il soffitto
Trophy=
Tulip=
Viola=viola
White Dandelion=
Wrought Iron Pole=Palo di ferro battuto
Yellow Dandelion=
brass=
dark topped=
diagonal=
horizontal=
not enough space=
wood=
wrought iron=Palo di ferro battuto

View File

@ -0,0 +1,45 @@
# textdomain: homedecor_misc
### init.lua ###
Banister for Stairs (@1, @2)=Selusur Tangga (@1, @2)
Blue Geranium=Geranium Biru
Bonsai=Bonsai
Brass Pole=Tiang Loyang
Cactus=Kaktus
Cardboard box=Kotak Kadbod (Kecil)
Cardboard box (big)=Kotak Kadbod (Besar)
DVD/CD cabinet=Kabinet DVD/CD
Dartboard=Papan Damak
Drop-Ceiling Tile=Kepingan Siling
Fishtank=Tangki Ikan
Fishtank (lighted)=Tangki Ikan (Bercahaya)
Flower Pot (@1)=Pasu Bunga (@1)
Japanese tatami=Tatami Jepun
Japanese wall=Dinding Jepun
Japanese wall (bottom)=Dinding Jepun (Bawah)
Japanese wall (top)=Dinding Jepun (Atas)
Metal tool cabinet and work table=Kabinet Alatan Logam dan Meja Kerja
Piano=Piano
Pool Table=Meja Pool
Potted flower (@1)=Pasu Berbunga (@1)
Rose=Ros
Rug (@1)=Ambal (@1)
Skateboard=Papan Luncur
Small Flower Pot=Pasu Bunga Kecil
Sport bench=Bangku Angkat Berat
Textured Ceiling Paint=Cat Siling Bertekstur
Trophy=Trofi
Tulip=Tulip
Viola=Violet
White Dandelion=Dandelion Putih
Wrought Iron Pole=Tiang Besi Tempaan
Yellow Dandelion=Dandelion Kuning
brass=Loyang
dark topped=atasan gelap
diagonal=pepenjuru
horizontal=mendatar
not enough space=Tidak cukup ruang
wood=Kayu
wrought iron=Besi Tempaan

View File

@ -0,0 +1,45 @@
# textdomain: homedecor_misc
### init.lua ###
Banister for Stairs (@1, @2)=Corrimão para Escadas (@1, @2)
Blue Geranium=Gerânio Azul
Bonsai=Bonsai
Brass Pole=Poste de bronze
Cactus=Cacto
Cardboard box=Caixa de Papelão
Cardboard box (big)=Caixa de Papelão (grande)
DVD/CD cabinet=Gabinete de DVD/CD
Dartboard=Alvo
Drop-Ceiling Tile=Placa de Teto
Fishtank=Aquário
Fishtank (lighted)=Aquário (iluminado)
Flower Pot (@1)=Vaso de Flores
Japanese tatami=Tatami Japonês
Japanese wall=Divisória japonesa
Japanese wall (bottom)=Divisória japonesa (inferior)
Japanese wall (top)=Divisória japonesa (superior)
Metal tool cabinet and work table=Gabinete de ferramentas metálicas e mesa de trabalho
Piano=Piano
Pool Table=Mesa de Sinuca
Potted flower (@1)=Vaso de Flor (@1)
Rose=Rosa
Rug (@1)=Carpete (@1)
Skateboard=Skate
Small Flower Pot=Vaso de Flor Pequeno
Sport bench=Supino Reto
Textured Ceiling Paint=Pintura Texturizada do Teto
Trophy=Troféu
Tulip=Tulipa
Viola=Violeta
White Dandelion=Dente de Leão Branco
Wrought Iron Pole=Poste de Ferro Forjado
Yellow Dandelion=Dente de Leão Amarelo
brass=latão
dark topped=coberto escuro
diagonal=diagonal
horizontal=horizontal
not enough space=espaço insuficiente
wood=madeira
wrought iron=ferro forjado

View File

@ -0,0 +1,45 @@
# textdomain: homedecor_misc
### init.lua ###
Banister for Stairs (@1, @2)=Corrimão para Escadas (@1, @2)
Blue Geranium=Gerânio Azul
Bonsai=Bonsai
Brass Pole=Poste de bronze
Cactus=Cacto
Cardboard box=Caixa de Papelão
Cardboard box (big)=Caixa de Papelão (grande)
DVD/CD cabinet=Gabinete de DVD/CD
Dartboard=Alvo
Drop-Ceiling Tile=Placa de Teto
Fishtank=Aquário
Fishtank (lighted)=Aquário (iluminado)
Flower Pot (@1)=Vaso de Flores
Japanese tatami=Tatami Japonês
Japanese wall=Divisória japonesa
Japanese wall (bottom)=Divisória japonesa (inferior)
Japanese wall (top)=Divisória japonesa (superior)
Metal tool cabinet and work table=Gabinete de ferramentas metálicas e mesa de trabalho
Piano=Piano
Pool Table=Mesa de Sinuca
Potted flower (@1)=Vaso de Flor (@1)
Rose=Rosa
Rug (@1)=Carpete (@1)
Skateboard=Skate
Small Flower Pot=Vaso de Flor Pequeno
Sport bench=Supino Reto
Textured Ceiling Paint=Pintura Texturizada do Teto
Trophy=Troféu
Tulip=Tulipa
Viola=Violeta
White Dandelion=Dente de Leão Branco
Wrought Iron Pole=Poste de Ferro Forjado
Yellow Dandelion=Dente de Leão Amarelo
brass=latão
dark topped=coberto escuro
diagonal=diagonal
horizontal=horizontal
not enough space=espaço insuficiente
wood=madeira
wrought iron=ferro forjado

View File

@ -0,0 +1,45 @@
# textdomain: homedecor_misc
### init.lua ###
Banister for Stairs (@1, @2)=Перила для ступеней (@1, @2)
Blue Geranium=Голубая герань
Bonsai=Карликовое дерево
Brass Pole=Латунный столб
Cactus=Кактус
Cardboard box=Картонная коробка
Cardboard box (big)=Картонная коробка (большая)
DVD/CD cabinet=Шкаф с дисками DVD/CD
Dartboard=Мишень для дротиков
Drop-Ceiling Tile=Потолочная плитка
Fishtank=Аквариум
Fishtank (lighted)=Аквариум (освещённый)
Flower Pot (@1)=Цветочный горшок
Japanese tatami=Японский татами
Japanese wall=Японская стена
Japanese wall (bottom)=Японская стена (низ)
Japanese wall (top)=Японская стена (верх)
Metal tool cabinet and work table=Шкаф с металлическим инструментом и рабочий стол
Piano=Пианино
Pool Table=Бильярдный стол
Potted flower (@1)=Цветок в горшке (@1)
Rose=Роза
Rug (@1)=Ковёр (@1)
Skateboard=Скейт
Small Flower Pot=Маленький цветочный горшок
Sport bench=Спортивная скамья
Textured Ceiling Paint=Текстурированная потолочная краска
Trophy=Награда
Tulip=Тюльпан
Viola=Фиалка
White Dandelion=Белый одуванчик
Wrought Iron Pole=Кованный железный столб
Yellow Dandelion=Жёлтый одуванчик
brass=латунь
dark topped=тёмный верх
diagonal=диагональный
horizontal=горизонтальный
not enough space=не хватает места
wood=дерево
wrought iron=кованное железо

View File

@ -0,0 +1,45 @@
# textdomain: homedecor_misc
### init.lua ###
Banister for Stairs (@1, @2)=楼梯栏杆(@1@2
Blue Geranium=蓝色天竺葵
Bonsai=盆景
Brass Pole=铜柱
Cactus=仙人掌
Cardboard box=纸箱
Cardboard box (big)=纸箱(大)
DVD/CD cabinet=DVD/CD柜
Dartboard=飞镖板
Drop-Ceiling Tile=落地砖
Fishtank=鱼缸
Fishtank (lighted)=鱼缸(带灯光)
Flower Pot (@1)=花盆(@1
Japanese tatami=日本榻榻米
Japanese wall=日本墙
Japanese wall (bottom)=日本墙(下)
Japanese wall (top)=日本墙(上)
Metal tool cabinet and work table=金属工具柜及工作台
Piano=钢琴
Pool Table=台球桌
Potted flower (@1)=盆花(@1
Rose=玫瑰
Rug (@1)=地毯(@1
Skateboard=滑板
Small Flower Pot=小花盆
Sport bench=运动板凳
Textured Ceiling Paint=纹理天花板漆
Trophy=奖杯
Tulip=郁金香
Viola=中提琴
White Dandelion=白色蒲公英
Wrought Iron Pole=锻铁杆
Yellow Dandelion=黄色蒲公英
brass=黄铜
dark topped=
diagonal=对角线的
horizontal=水平的
not enough space=空间不足
wood=木材
wrought iron=锻铁

View File

@ -0,0 +1,45 @@
# textdomain: homedecor_misc
### init.lua ###
Banister for Stairs (@1, @2)=
Blue Geranium=
Bonsai=
Brass Pole=
Cactus=
Cardboard box=
Cardboard box (big)=
DVD/CD cabinet=
Dartboard=
Drop-Ceiling Tile=
Fishtank=
Fishtank (lighted)=
Flower Pot (@1)=
Japanese tatami=
Japanese wall=
Japanese wall (bottom)=
Japanese wall (top)=
Metal tool cabinet and work table=
Piano=
Pool Table=
Potted flower (@1)=
Rose=
Rug (@1)=
Skateboard=
Small Flower Pot=
Sport bench=
Textured Ceiling Paint=
Trophy=
Tulip=
Viola=
White Dandelion=
Wrought Iron Pole=
Yellow Dandelion=
brass=
dark topped=
diagonal=
horizontal=
not enough space=
wood=
wrought iron=

4
homedecor_misc/mod.conf Normal file
View File

@ -0,0 +1,4 @@
name = homedecor_misc
description = Homedecor mod: miscellaneous
depends = homedecor_common, default, basic_materials, unifieddyes
optional_depends = building_blocks, technic, bucket, signs_lib, screwdriver