lowercase 'carpet' | use minetest util script for translations

This commit is contained in:
Zughy 2024-06-30 15:08:57 +02:00 committed by SmallJoker
parent 90a481d3e8
commit 952b324e50
5 changed files with 64 additions and 70 deletions

@ -29,7 +29,7 @@ function carpets.register(material, def)
end
local material_def = minetest.registered_nodes[material]
node.description = node.description or material_def.description.." Carpet"
node.description = node.description or material_def.description.." carpet"
node.sounds = table.copy(node.sounds or material_def.sounds or default.node_sound_defaults())
node.groups = table.copy(node.groups)

@ -4,21 +4,21 @@ dofile(modpath .. "/api.lua")
if minetest.get_modpath("wool") then
local nodes = {
{name="wool:black", description=S("Black Carpet")},
{name="wool:blue", description=S("Blue Carpet")},
{name="wool:brown", description=S("Brown Carpet")},
{name="wool:cyan", description=S("Cyan Carpet")},
{name="wool:dark_green", description=S("Dark Green Carpet")},
{name="wool:dark_grey", description=S("Dark Grey Carpet")},
{name="wool:green", description=S("Green Carpet")},
{name="wool:grey", description=S("Grey Carpet")},
{name="wool:magenta", description=S("Magenta Carpet")},
{name="wool:orange", description=S("Orange Carpet")},
{name="wool:pink", description=S("Pink Carpet")},
{name="wool:red", description=S("Red Carpet")},
{name="wool:violet", description=S("Violet Carpet")},
{name="wool:white", description=S("White Carpet")},
{name="wool:yellow", description=S("Yellow Carpet")},
{name="wool:black", description=S("Black carpet")},
{name="wool:blue", description=S("Blue carpet")},
{name="wool:brown", description=S("Brown carpet")},
{name="wool:cyan", description=S("Cyan carpet")},
{name="wool:dark_green", description=S("Dark Green carpet")},
{name="wool:dark_grey", description=S("Dark Grey carpet")},
{name="wool:green", description=S("Green carpet")},
{name="wool:grey", description=S("Grey carpet")},
{name="wool:magenta", description=S("Magenta carpet")},
{name="wool:orange", description=S("Orange carpet")},
{name="wool:pink", description=S("Pink carpet")},
{name="wool:red", description=S("Red carpet")},
{name="wool:violet", description=S("Violet carpet")},
{name="wool:white", description=S("White carpet")},
{name="wool:yellow", description=S("Yellow carpet")},
}
for _, node in ipairs(nodes) do
carpets.register(node.name, {description=node.description})

@ -1,20 +1,18 @@
# textdomain: carpets
### init.lua ###
Black Carpet=Nigra tapiŝo
Blue Carpet=Blua tapiŝo
Brown Carpet=Bruna tapiŝo
Cyan Carpet=Bluverda tapiŝo
Dark Green Carpet=Malhela verda tapiŝo
Dark Grey Carpet=Malhela griza tapiŝo
Green Carpet=Verda tapiŝo
Grey Carpet=Griza tapiŝo
Magenta Carpet=Fuksina tapiŝo
Orange Carpet=Oranĝa tapiŝo
Pink Carpet=Rozkolora tapiŝo
Red Carpet=Ruĝa tapiŝo
Violet Carpet=Violkolora tapiŝo
White Carpet=Blanka tapiŝo
Yellow Carpet=Flava tapiŝo
##[ init.lua ]##
Black carpet=Nigra tapiŝo
Blue carpet=Blua tapiŝo
Brown carpet=Bruna tapiŝo
Cyan carpet=Bluverda tapiŝo
Dark Green carpet=Malhela verda tapiŝo
Dark Grey carpet=Malhela griza tapiŝo
Green carpet=Verda tapiŝo
Grey carpet=Griza tapiŝo
Magenta carpet=Fuksina tapiŝo
Orange carpet=Oranĝa tapiŝo
Pink carpet=Rozkolora tapiŝo
Red carpet=Ruĝa tapiŝo
Violet carpet=Violkolora tapiŝo
White carpet=Blanka tapiŝo
Yellow carpet=Flava tapiŝo

@ -1,20 +1,18 @@
# textdomain: carpets
### init.lua ###
Black Carpet=Tapis noir
Blue Carpet=Tapis bleu
Brown Carpet=Tapis marron
Cyan Carpet=Tapis cyan
Dark Green Carpet=Tapis vert foncé
Dark Grey Carpet=Tapis gris foncé
Green Carpet=Tapis vert
Grey Carpet=Tapis gris
Magenta Carpet=Tapis magenta
Orange Carpet=Tapis orange
Pink Carpet=Tapis rose
Red Carpet=Tapis rouge
Violet Carpet=Tapis violet
White Carpet=Tapis blanc
Yellow Carpet=Tapis jaune
##[ init.lua ]##
Black carpet=Tapis noir
Blue carpet=Tapis bleu
Brown carpet=Tapis marron
Cyan carpet=Tapis cyan
Dark Green carpet=Tapis vert foncé
Dark Grey carpet=Tapis gris foncé
Green carpet=Tapis vert
Grey carpet=Tapis gris
Magenta carpet=Tapis magenta
Orange carpet=Tapis orange
Pink carpet=Tapis rose
Red carpet=Tapis rouge
Violet carpet=Tapis violet
White carpet=Tapis blanc
Yellow carpet=Tapis jaune

@ -1,20 +1,18 @@
# textdomain: carpets
### init.lua ###
Black Carpet=
Blue Carpet=
Brown Carpet=
Cyan Carpet=
Dark Green Carpet=
Dark Grey Carpet=
Green Carpet=
Grey Carpet=
Magenta Carpet=
Orange Carpet=
Pink Carpet=
Red Carpet=
Violet Carpet=
White Carpet=
Yellow Carpet=
##[ init.lua ]##
Black carpet=
Blue carpet=
Brown carpet=
Cyan carpet=
Dark Green carpet=
Dark Grey carpet=
Green carpet=
Grey carpet=
Magenta carpet=
Orange carpet=
Pink carpet=
Red carpet=
Violet carpet=
White carpet=
Yellow carpet=