MT5 translation for homedecor_exterior

- add screwdriver in optional_depends
- fixes luacheck warnings
- french translation
This commit is contained in:
Louis Royer 2020-08-04 22:08:09 +02:00
parent facee91684
commit 1675a93fec
13 changed files with 271 additions and 26 deletions

View File

@ -1,8 +0,0 @@
homedecor_common
default
dye
creative
basic_materials
moreblocks?
building_blocks?
bucket?

View File

@ -1,7 +1,5 @@
local S = homedecor.gettext
local function N_(x) return x end
local S = minetest.get_translator("homedecor_exterior")
homedecor_exterior = {}
local bbq_cbox = {
type = "fixed",
@ -48,7 +46,7 @@ homedecor.register("doghouse", {
groups = {snappy=3},
expand = { top="placeholder" },
sounds = default.node_sound_wood_defaults(),
on_rotate = screwdriver.rotate_simple
on_rotate = minetest.get_modpath("screwdriver") and screwdriver.rotate_simple or nil,
})
minetest.register_alias("homedecor:doghouse_roof", "air")
@ -126,7 +124,7 @@ homedecor.register("swing", {
groups = { snappy=3, oddly_breakable_by_hand=3 },
sounds = default.node_sound_wood_defaults(),
walkable = false,
on_rotate = screwdriver.disallow,
on_rotate = minetest.get_modpath("screwdriver") and screwdriver.disallow or nil,
node_box = {
type = "fixed",
fixed = {
@ -156,7 +154,7 @@ homedecor.register("swing", {
if not testreg or not testreg.buildable_to then
if i < 1 then
minetest.chat_send_player(placer_name, "No room under there to hang a swing.")
minetest.chat_send_player(placer_name, S("No room under there to hang a swing."))
return itemstack
else
break
@ -176,7 +174,8 @@ homedecor.register("swing", {
itemstack:take_item()
end
else
minetest.chat_send_player(placer_name, "You have to point at the bottom side of an overhanging object to place a swing.")
minetest.chat_send_player(placer_name,
S("You have to point at the bottom side of an overhanging object to place a swing."))
end
return itemstack
end,
@ -225,7 +224,7 @@ homedecor.register("well", {
collision_box = homedecor.nodebox.slab_y(2),
expand = { top="placeholder" },
sounds = default.node_sound_stone_defaults(),
on_rotate = screwdriver.rotate_simple
on_rotate = minetest.get_modpath("screwdriver") and screwdriver.rotate_simple or nil,
})
if minetest.get_modpath("bucket") then
@ -239,7 +238,7 @@ if minetest.get_modpath("bucket") then
itemstack:take_item()
inv:add_item("main", "bucket:bucket_water 1")
else
minetest.chat_send_player(user:get_player_name(), "No room in your inventory to add a filled bucket!")
minetest.chat_send_player(user:get_player_name(), S("No room in your inventory to add a filled bucket!"))
end
return itemstack
else if original_bucket_on_use then
@ -250,17 +249,17 @@ if minetest.get_modpath("bucket") then
})
end
homedecor.shrub_colors = {
N_("green"),
N_("red"),
N_("yellow"),
homedecor_exterior.shrub_colors = {
["green"] = S("green"),
["red"] = S("red"),
["yellow"] = S("yellow"),
}
local shrub_cbox = { -0.5, -0.5, -0.5, 0.5, 0.5, 0.5 }
for _, color in ipairs(homedecor.shrub_colors) do
for color, color_loc in pairs(homedecor_exterior.shrub_colors) do
minetest.register_node(":homedecor:shrubbery_large_"..color, {
description = S("Shrubbery (large, @1)", S(color)),
description = S("Shrubbery (large, @1)", color_loc),
drawtype = "mesh",
mesh = "homedecor_cube.obj",
tiles = {"homedecor_shrubbery_"..color..".png"},
@ -271,7 +270,7 @@ for _, color in ipairs(homedecor.shrub_colors) do
})
minetest.register_node(":homedecor:shrubbery_"..color, {
description = S("Shrubbery (@1)", S(color)),
description = S("Shrubbery (@1)", color_loc),
drawtype = "mesh",
mesh = "homedecor_shrubbery.obj",
tiles = {
@ -426,7 +425,7 @@ minetest.register_craft({
}
})
for _, color in ipairs(homedecor.shrub_colors) do
for color, _ in pairs(homedecor_exterior.shrub_colors) do
minetest.register_craft({
type = "shapeless",

View File

@ -0,0 +1,25 @@
# textdomain: homedecor_exterior
### init.lua ###
Barbecue=Grill
Doghouse=Hundehütte
Garden Lattice (@1)=Gartenzaun (@1)
Garden stone path=Gartensteinpfad
No room in your inventory to add a filled bucket!=
No room under there to hang a swing.=
Shrubbery (@1)=Gebüsch (@1)
Shrubbery (large, @1)=Gebüsch (@1)
Tree's swing=Baumschaukel
Water well=Wasserbrunnen
You have to point at the bottom side of an overhanging object to place a swing.=
green=grün
red=rot
white wood=weißes Holz
white wood, with vegetation=weißes Holz mit Vegetation
wood=Holz
wood, with vegetation=Holz mit Vegetation
yellow=gelb

View File

@ -0,0 +1,25 @@
# textdomain: homedecor_exterior
### init.lua ###
Barbecue=Barbacoa
Doghouse=Casa de perros
Garden Lattice (@1)=Enrejado de jardín (@1)
Garden stone path=Camino de piedra de jardín
No room in your inventory to add a filled bucket!=
No room under there to hang a swing.=
Shrubbery (@1)=Arbustos (@1)
Shrubbery (large, @1)=Arbustos (@1)
Tree's swing=Columpio
Water well=Pozo de agua
You have to point at the bottom side of an overhanging object to place a swing.=
green=verde
red=roja
white wood=madera blanca
white wood, with vegetation=madera blanca, con vegetación
wood=madera
wood, with vegetation=madera, con vegetación
yellow=amarilla

View File

@ -0,0 +1,25 @@
# textdomain: homedecor_exterior
### init.lua ###
Barbecue=Barbecue
Doghouse=Niche
Garden Lattice (@1)=Treillage (@1)
Garden stone path=Chemin de pierres
No room in your inventory to add a filled bucket!=Il ny a pas de place dans votre inventaire pour y ajouter un seau plein!
No room under there to hang a swing.=Il ny a pas la place en dessous pour y accrocher une balançoire.
Shrubbery (@1)=Arbustes (@1)
Shrubbery (large, @1)=Arbustes (@1)
Tree's swing=Balançoire
Water well=Puits
You have to point at the bottom side of an overhanging object to place a swing.=Vous devez viser le dessous dun objet en hauteur pour placer la balançoire.
green=vert
red=rouge
white wood=bois blanc
white wood, with vegetation=bois blanc, avec végétation
wood=bois
wood, with vegetation=bois, avec végétation
yellow=jaune

View File

@ -0,0 +1,25 @@
# textdomain: homedecor_exterior
### init.lua ###
Barbecue=
Doghouse=
Garden Lattice (@1)=
Garden stone path=
No room in your inventory to add a filled bucket!=
No room under there to hang a swing.=
Shrubbery (@1)=
Shrubbery (large, @1)=
Tree's swing=
Water well=
You have to point at the bottom side of an overhanging object to place a swing.=
green=verde
red=rosso
white wood=bianco
white wood, with vegetation=
wood=
wood, with vegetation=
yellow=

View File

@ -0,0 +1,25 @@
# textdomain: homedecor_exterior
### init.lua ###
Barbecue=Barbeku
Doghouse=Rumah Anjing
Garden Lattice (@1)=Kekisi Taman (@1)
Garden stone path=Laluan Berbatu Taman
No room in your inventory to add a filled bucket!=
No room under there to hang a swing.=
Shrubbery (@1)=Rumpun Pokok Renek (@1)
Shrubbery (large, @1)=Rumpun Pokok Renek (Besar, @1)
Tree's swing=Buaian Pokok
Water well=Perigi Air
You have to point at the bottom side of an overhanging object to place a swing.=
green=Hijau
red=Merah
white wood=Kayu Putih
white wood, with vegetation=Kayu Putih, dengan Tumbuhan
wood=Kayu
wood, with vegetation=Kayu, dengan Tumbuhan
yellow=Kuning

View File

@ -0,0 +1,25 @@
# textdomain: homedecor_exterior
### init.lua ###
Barbecue=Churrasqueira
Doghouse=Casa de Cachorro
Garden Lattice (@1)=Treliça de Jardim (@1)
Garden stone path=Caminho de pedra de jardim
No room in your inventory to add a filled bucket!=
No room under there to hang a swing.=
Shrubbery (@1)=Matagal (@1)
Shrubbery (large, @1)=Matagal (@1)
Tree's swing=Balancinho de árvore
Water well=Poço de agua
You have to point at the bottom side of an overhanging object to place a swing.=
green=verde
red=vermelho
white wood=madeira branca
white wood, with vegetation=madeira branca, com vegetação
wood=madeira
wood, with vegetation=madeira, com vegetação
yellow=amarelo

View File

@ -0,0 +1,25 @@
# textdomain: homedecor_exterior
### init.lua ###
Barbecue=Churrasqueira
Doghouse=Casa de Cachorro
Garden Lattice (@1)=Treliça de Jardim (@1)
Garden stone path=Caminho de pedra de jardim
No room in your inventory to add a filled bucket!=
No room under there to hang a swing.=
Shrubbery (@1)=Matagal (@1)
Shrubbery (large, @1)=Matagal (@1)
Tree's swing=Balancinho de árvore
Water well=Poço de agua
You have to point at the bottom side of an overhanging object to place a swing.=
green=verde
red=vermelho
white wood=madeira branca
white wood, with vegetation=madeira branca, com vegetação
wood=madeira
wood, with vegetation=madeira, com vegetação
yellow=amarelo

View File

@ -0,0 +1,25 @@
# textdomain: homedecor_exterior
### init.lua ###
Barbecue=Барбекю
Doghouse=Собачья будка
Garden Lattice (@1)=Садовая решётка (@1)
Garden stone path=Садовая каменная дорожка
No room in your inventory to add a filled bucket!=
No room under there to hang a swing.=
Shrubbery (@1)=Кустарник (@1)
Shrubbery (large, @1)=Кустарник (@1)
Tree's swing=Качели для дерева
Water well=Колодец с водой
You have to point at the bottom side of an overhanging object to place a swing.=
green=зелёный
red=красный
white wood=белое дерево
white wood, with vegetation=белое дерево с растительностью
wood=дерево
wood, with vegetation=дерево с растительностью
yellow=жёлтый

View File

@ -0,0 +1,25 @@
# textdomain: homedecor_exterior
### init.lua ###
Barbecue=烧烤
Doghouse=狗窝
Garden Lattice (@1)=花园格子(@1
Garden stone path=花园石径
No room in your inventory to add a filled bucket!=
No room under there to hang a swing.=
Shrubbery (@1)=灌木丛(@1
Shrubbery (large, @1)=大灌木丛(@1
Tree's swing=树的秋千
Water well=水井
You have to point at the bottom side of an overhanging object to place a swing.=
green=绿色
red=红色
white wood=白木
white wood, with vegetation=带植被的白木
wood=木材
wood, with vegetation=带植被的木材
yellow=黄色的

View File

@ -0,0 +1,25 @@
# textdomain: homedecor_exterior
### init.lua ###
Barbecue=
Doghouse=
Garden Lattice (@1)=
Garden stone path=
No room in your inventory to add a filled bucket!=
No room under there to hang a swing.=
Shrubbery (@1)=
Shrubbery (large, @1)=
Tree's swing=
Water well=
You have to point at the bottom side of an overhanging object to place a swing.=
green=
red=
white wood=
white wood, with vegetation=
wood=
wood, with vegetation=
yellow=

View File

@ -0,0 +1,4 @@
name = homedecor_exterior
description = Homedecor mod: exterior
depends = homedecor_common, default, dye, creative, basic_materials
optional_depends = moreblocks, building_blocks, bucket, screwdriver