Add Esperanto translation

This commit is contained in:
jolesh 2022-11-11 10:13:29 +01:00
parent a2830bad63
commit 9eae8c98a7
16 changed files with 105 additions and 43 deletions

View File

@ -1,21 +1,23 @@
local S = minetest.get_translator(minetest.get_current_modname())
-- --
-- items -- items
-- --
-- body -- body
minetest.register_craftitem("automobiles_buggy:buggy_body",{ minetest.register_craftitem("automobiles_buggy:buggy_body",{
description = "Buggy body", description = S("Buggy Body"),
inventory_image = "automobiles_buggy_body.png", inventory_image = "automobiles_buggy_body.png",
}) })
-- wheel -- wheel
minetest.register_craftitem("automobiles_buggy:wheel",{ minetest.register_craftitem("automobiles_buggy:wheel",{
description = "Buggy wheel", description = S("Buggy Wheel"),
inventory_image = "automobiles_buggy_wheel_icon.png", inventory_image = "automobiles_buggy_wheel_icon.png",
}) })
-- buggy -- buggy
minetest.register_craftitem("automobiles_buggy:buggy", { minetest.register_craftitem("automobiles_buggy:buggy", {
description = "Buggy", description = S("Buggy"),
inventory_image = "automobiles_buggy.png", inventory_image = "automobiles_buggy.png",
liquids_pointable = false, liquids_pointable = false,
@ -23,7 +25,7 @@ minetest.register_craftitem("automobiles_buggy:buggy", {
if pointed_thing.type ~= "node" then if pointed_thing.type ~= "node" then
return return
end end
local pointed_pos = pointed_thing.above local pointed_pos = pointed_thing.above
--pointed_pos.y=pointed_pos.y+0.2 --pointed_pos.y=pointed_pos.y+0.2
local car = minetest.add_entity(pointed_pos, "automobiles_buggy:buggy") local car = minetest.add_entity(pointed_pos, "automobiles_buggy:buggy")
@ -72,5 +74,3 @@ if minetest.get_modpath("default") then
} }
}) })
end end

View File

@ -0,0 +1,6 @@
# textdomain: automobiles_buggy
### buggy_crafts.lua ###
Buggy Body=Korpo de Buggy
Buggy Wheel=Rado de Buggy
Buggy=Buggy

View File

@ -0,0 +1,6 @@
# textdomain: automobiles_buggy
### buggy_crafts.lua ###
Buggy Body=
Buggy Wheel=
Buggy=

View File

@ -1,16 +1,18 @@
local S = minetest.get_translator(minetest.get_current_modname())
-- --
-- items -- items
-- --
-- body -- body
minetest.register_craftitem("automobiles_coupe:coupe_body",{ minetest.register_craftitem("automobiles_coupe:coupe_body",{
description = "Coupe body", description = S("Coupe Body"),
inventory_image = "automobiles_coupe_body.png", inventory_image = "automobiles_coupe_body.png",
}) })
-- coupe -- coupe
minetest.register_craftitem("automobiles_coupe:coupe", { minetest.register_craftitem("automobiles_coupe:coupe", {
description = "Coupe", description = S("Coupe"),
inventory_image = "automobiles_coupe.png", inventory_image = "automobiles_coupe.png",
liquids_pointable = false, liquids_pointable = false,
@ -18,7 +20,7 @@ minetest.register_craftitem("automobiles_coupe:coupe", {
if pointed_thing.type ~= "node" then if pointed_thing.type ~= "node" then
return return
end end
local pointed_pos = pointed_thing.above local pointed_pos = pointed_thing.above
--pointed_pos.y=pointed_pos.y+0.2 --pointed_pos.y=pointed_pos.y+0.2
local car = minetest.add_entity(pointed_pos, "automobiles_coupe:coupe") local car = minetest.add_entity(pointed_pos, "automobiles_coupe:coupe")
@ -60,5 +62,3 @@ if minetest.get_modpath("default") then
} }
}) })
end end

View File

@ -0,0 +1,5 @@
# textdomain: automobiles_coupe
### coupe_crafts.lua ###
Coupe Body=Korpo de Coupe
Coupe=Coupe

View File

@ -0,0 +1,5 @@
# textdomain: automobiles_coupe
### coupe_crafts.lua ###
Coupe Body=
Coupe=

View File

@ -204,8 +204,8 @@ function automobiles_lib.dettach_pax(self, player)
if self._passenger == name then if self._passenger == name then
self._passenger = nil self._passenger = nil
else else
--[[for i = 10,1,-1 --[[for i = 10,1,-1
do do
if self._passengers[i] == name then if self._passengers[i] == name then
self._passengers[i] = nil self._passengers[i] = nil
break break
@ -276,7 +276,7 @@ function automobiles_lib.swap_node(self, pos)
count = count + 1 count = count + 1
target_pos.y = target_pos.y + 1 target_pos.y = target_pos.y + 1
end end
if have_air then if have_air then
minetest.set_node(target_pos, {name='automobiles_lib:light'}) minetest.set_node(target_pos, {name='automobiles_lib:light'})
automobiles_lib.remove_light(self) automobiles_lib.remove_light(self)
@ -414,13 +414,13 @@ dofile(minetest.get_modpath("automobiles_lib") .. DIR_DELIM .. "inventory_manage
-- engine -- engine
minetest.register_craftitem("automobiles_lib:engine",{ minetest.register_craftitem("automobiles_lib:engine",{
description = "Car engine", description = S("Car Engine"),
inventory_image = "automobiles_engine.png", inventory_image = "automobiles_engine.png",
}) })
-- engine -- engine
minetest.register_craftitem("automobiles_lib:wheel",{ minetest.register_craftitem("automobiles_lib:wheel",{
description = "Car wheel", description = S("Car Wheel"),
inventory_image = "automobiles_wheel_icon.png", inventory_image = "automobiles_wheel_icon.png",
}) })
@ -452,15 +452,15 @@ initial_properties = {
backface_culling = false, backface_culling = false,
textures = {"automobiles_black.png", "automobiles_metal.png"}, textures = {"automobiles_black.png", "automobiles_metal.png"},
}, },
on_activate = function(self,std) on_activate = function(self,std)
self.sdata = minetest.deserialize(std) or {} self.sdata = minetest.deserialize(std) or {}
if self.sdata.remove then self.object:remove() end if self.sdata.remove then self.object:remove() end
end, end,
get_staticdata=function(self) get_staticdata=function(self)
self.sdata.remove=true self.sdata.remove=true
return minetest.serialize(self.sdata) return minetest.serialize(self.sdata)
end, end,
}) })

View File

@ -0,0 +1,8 @@
# textdomain: automobiles_lib
### init.lua ###
Car Engine=Aŭta Motoro
Car Wheel=Aŭta Rado
### painter.lua ###
Automobiles Painter=Aŭta Pentrilo

View File

@ -0,0 +1,8 @@
# textdomain: automobiles_lib
### init.lua ###
Car Engine=
Car Wheel=
### painter.lua ###
Automobiles Painter=

View File

@ -50,37 +50,37 @@ local function painter_form(player, rgb)
"formspec_version[3]" .. -- Minetest 5.2+ "formspec_version[3]" .. -- Minetest 5.2+
"size[5.6,5.2;true]" .. "size[5.6,5.2;true]" ..
"position[0.5,0.45]" .. "position[0.5,0.45]" ..
-- Color preview -- Color preview
"image[0.2,0.2;2,2;automobiles_painting.png^[colorize:" .. color .. ":255]" .. "image[0.2,0.2;2,2;automobiles_painting.png^[colorize:" .. color .. ":255]" ..
"label[0.3,1.2;Preview]" .. "label[0.3,1.2;Preview]" ..
-- Hex field -- Hex field
"field_close_on_enter[hex;false]" .. "field_close_on_enter[hex;false]" ..
"field[2.4,0.2;3,0.8;hex;;" .. color .. "]" .. "field[2.4,0.2;3,0.8;hex;;" .. color .. "]" ..
"button[2.4,1;3,0.8;set_hex;Set Hex]" .. "button[2.4,1;3,0.8;set_hex;Set Hex]" ..
-- RGB sliders -- RGB sliders
"container[0,2.4]" .. "container[0,2.4]" ..
"scrollbaroptions[min=0;max=255;smallstep=20]" .. "scrollbaroptions[min=0;max=255;smallstep=20]" ..
"box[0.4,0;4.77,0.38;red]" .. "box[0.4,0;4.77,0.38;red]" ..
"label[0.2,0.2;-]" .. "label[0.2,0.2;-]" ..
"scrollbar[0.4,0;4.8,0.4;horizontal;r;" .. rgb.r .."]" .. "scrollbar[0.4,0;4.8,0.4;horizontal;r;" .. rgb.r .."]" ..
"label[5.2,0.2;+]" .. "label[5.2,0.2;+]" ..
"box[0.4,0.6;4.77,0.38;green]" .. "box[0.4,0.6;4.77,0.38;green]" ..
"label[0.2,0.8;-]" .. "label[0.2,0.8;-]" ..
"scrollbar[0.4,0.6;4.8,0.4;horizontal;g;" .. rgb.g .."]" .. "scrollbar[0.4,0.6;4.8,0.4;horizontal;g;" .. rgb.g .."]" ..
"label[5.2,0.8;+]" .. "label[5.2,0.8;+]" ..
"box[0.4,1.2;4.77,0.38;blue]" .. "box[0.4,1.2;4.77,0.38;blue]" ..
"label[0.2,1.4;-]" .. "label[0.2,1.4;-]" ..
"scrollbar[0.4,1.2;4.8,0.4;horizontal;b;" .. rgb.b .. "]" .. "scrollbar[0.4,1.2;4.8,0.4;horizontal;b;" .. rgb.b .. "]" ..
"label[5.2,1.4;+]" .. "label[5.2,1.4;+]" ..
"container_end[]" .. "container_end[]" ..
-- Bottom buttons -- Bottom buttons
"button_exit[0.2,4.2;2.8,0.8;set_color;Set Color]" .. "button_exit[0.2,4.2;2.8,0.8;set_color;Set Color]" ..
"button_exit[3.2,4.2;2.2,0.8;quit;Cancel]" "button_exit[3.2,4.2;2.2,0.8;quit;Cancel]"
@ -96,7 +96,7 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
formspec_timers[player]:cancel() formspec_timers[player]:cancel()
formspec_timers[player] = nil formspec_timers[player] = nil
end end
local function parse_scrollbar_field(value) local function parse_scrollbar_field(value)
value = value or "" value = value or ""
local num = math.floor(tonumber((value:gsub(".*:", ""))) or 0) local num = math.floor(tonumber((value:gsub(".*:", ""))) or 0)
@ -109,7 +109,7 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
g = parse_scrollbar_field(fields.g), g = parse_scrollbar_field(fields.g),
b = parse_scrollbar_field(fields.b), b = parse_scrollbar_field(fields.b),
} }
if fields.set_hex or fields.key_enter then if fields.set_hex or fields.key_enter then
if is_hex(fields.hex) then if is_hex(fields.hex) then
painter_form(player, hex_to_rgb(fields.hex)) painter_form(player, hex_to_rgb(fields.hex))
@ -134,7 +134,7 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
formspec_timers[player] = nil formspec_timers[player] = nil
end, itemstack, player:get_player_name()) end, itemstack, player:get_player_name())
end end
if fields.quit then if fields.quit then
automobiles_being_painted[player] = nil automobiles_being_painted[player] = nil
end end
@ -145,7 +145,7 @@ end)
-- Make the actual thingy -- Make the actual thingy
minetest.register_tool("automobiles_lib:painter", { minetest.register_tool("automobiles_lib:painter", {
description = "Automobiles Painter", description = S("Automobiles Painter"),
inventory_image = "automobiles_painter.png", inventory_image = "automobiles_painter.png",
wield_scale = {x = 2, y = 2, z = 1}, wield_scale = {x = 2, y = 2, z = 1},
on_use = function(itemstack, user, pointed_thing) on_use = function(itemstack, user, pointed_thing)

View File

@ -0,0 +1,6 @@
# textdomain: automobiles_motorcycle
### motorcycle_crafts.lua ###
Motorcycle Body=Motorcikla Korpo
Motorcycle Wheel=Motorcikla Rado
Motorcycle=Motorciklo

View File

@ -0,0 +1,6 @@
# textdomain: automobiles_motorcycle
### motorcycle_crafts.lua ###
Motorcycle Body=
Motorcycle Wheel=
Motorcycle=

View File

@ -1,21 +1,23 @@
local S = minetest.get_translator(minetest.get_current_modname())
-- --
-- items -- items
-- --
-- body -- body
minetest.register_craftitem("automobiles_motorcycle:body",{ minetest.register_craftitem("automobiles_motorcycle:body",{
description = "Motorcycle body", description = S("Motorcycle Body"),
inventory_image = "automobiles_motorcycle_body.png", inventory_image = "automobiles_motorcycle_body.png",
}) })
-- wheel -- wheel
minetest.register_craftitem("automobiles_motorcycle:wheel",{ minetest.register_craftitem("automobiles_motorcycle:wheel",{
description = "Motorcycle wheel", description = S("Motorcycle Wheel"),
inventory_image = "automobiles_motorcycle_wheel_icon.png", inventory_image = "automobiles_motorcycle_wheel_icon.png",
}) })
-- motorcycle -- motorcycle
minetest.register_craftitem("automobiles_motorcycle:motorcycle", { minetest.register_craftitem("automobiles_motorcycle:motorcycle", {
description = "Motorcycle", description = S("Motorcycle"),
inventory_image = "automobiles_motorcycle.png", inventory_image = "automobiles_motorcycle.png",
liquids_pointable = false, liquids_pointable = false,
@ -23,7 +25,7 @@ minetest.register_craftitem("automobiles_motorcycle:motorcycle", {
if pointed_thing.type ~= "node" then if pointed_thing.type ~= "node" then
return return
end end
local pointed_pos = pointed_thing.above local pointed_pos = pointed_thing.above
--pointed_pos.y=pointed_pos.y+0.2 --pointed_pos.y=pointed_pos.y+0.2
local car = minetest.add_entity(pointed_pos, "automobiles_motorcycle:motorcycle") local car = minetest.add_entity(pointed_pos, "automobiles_motorcycle:motorcycle")
@ -71,5 +73,3 @@ if minetest.get_modpath("default") then
} }
}) })
end end

View File

@ -0,0 +1,6 @@
# textdomain: automobiles_roadster
### roadster_crafts.lua ###
Roadster Body=Korpo de Roadster
Roadster Wheel=Rado de Roadster
Roadster=Roadster

View File

@ -0,0 +1,6 @@
# textdomain: automobiles_roadster
### roadster_crafts.lua ###
Roadster Body=
Roadster Wheel=
Roadster=

View File

@ -1,21 +1,23 @@
local S = minetest.get_translator(minetest.get_current_modname())
-- --
-- items -- items
-- --
-- body -- body
minetest.register_craftitem("automobiles_roadster:roadster_body",{ minetest.register_craftitem("automobiles_roadster:roadster_body",{
description = "Roadster body", description = S("Roadster Body"),
inventory_image = "roadster_body.png", inventory_image = "roadster_body.png",
}) })
-- wheel -- wheel
minetest.register_craftitem("automobiles_roadster:wheel",{ minetest.register_craftitem("automobiles_roadster:wheel",{
description = "Roadster wheel", description = S("Roadster Wheel"),
inventory_image = "roadster_wheel.png", inventory_image = "roadster_wheel.png",
}) })
-- roadster -- roadster
minetest.register_craftitem("automobiles_roadster:roadster", { minetest.register_craftitem("automobiles_roadster:roadster", {
description = "Roadster", description = S("Roadster"),
inventory_image = "automobiles_roadster.png", inventory_image = "automobiles_roadster.png",
liquids_pointable = false, liquids_pointable = false,
@ -23,7 +25,7 @@ minetest.register_craftitem("automobiles_roadster:roadster", {
if pointed_thing.type ~= "node" then if pointed_thing.type ~= "node" then
return return
end end
local pointed_pos = pointed_thing.above local pointed_pos = pointed_thing.above
--pointed_pos.y=pointed_pos.y+0.2 --pointed_pos.y=pointed_pos.y+0.2
local car = minetest.add_entity(pointed_pos, "automobiles_roadster:roadster") local car = minetest.add_entity(pointed_pos, "automobiles_roadster:roadster")
@ -72,5 +74,3 @@ if minetest.get_modpath("default") then
} }
}) })
end end