mirror of
https://github.com/APercy/automobiles_pck
synced 2025-06-19 23:38:01 +02:00
Merge pull request #14 from jolesh/Esperanto-translation
Add Esperanto translation
This commit is contained in:
commit
9e18c27714
@ -1,21 +1,23 @@
|
||||
local S = minetest.get_translator(minetest.get_current_modname())
|
||||
|
||||
--
|
||||
-- items
|
||||
--
|
||||
|
||||
-- body
|
||||
minetest.register_craftitem("automobiles_buggy:buggy_body",{
|
||||
description = "Buggy body",
|
||||
description = S("Buggy Body"),
|
||||
inventory_image = "automobiles_buggy_body.png",
|
||||
})
|
||||
-- wheel
|
||||
minetest.register_craftitem("automobiles_buggy:wheel",{
|
||||
description = "Buggy wheel",
|
||||
description = S("Buggy Wheel"),
|
||||
inventory_image = "automobiles_buggy_wheel_icon.png",
|
||||
})
|
||||
|
||||
-- buggy
|
||||
minetest.register_craftitem("automobiles_buggy:buggy", {
|
||||
description = "Buggy",
|
||||
description = S("Buggy"),
|
||||
inventory_image = "automobiles_buggy.png",
|
||||
liquids_pointable = false,
|
||||
|
||||
@ -23,7 +25,7 @@ minetest.register_craftitem("automobiles_buggy:buggy", {
|
||||
if pointed_thing.type ~= "node" then
|
||||
return
|
||||
end
|
||||
|
||||
|
||||
local pointed_pos = pointed_thing.above
|
||||
--pointed_pos.y=pointed_pos.y+0.2
|
||||
local car = minetest.add_entity(pointed_pos, "automobiles_buggy:buggy")
|
||||
@ -72,5 +74,3 @@ if minetest.get_modpath("default") then
|
||||
}
|
||||
})
|
||||
end
|
||||
|
||||
|
||||
|
6
automobiles_buggy/locale/automobiles_buggy.eo.tr
Normal file
6
automobiles_buggy/locale/automobiles_buggy.eo.tr
Normal file
@ -0,0 +1,6 @@
|
||||
# textdomain: automobiles_buggy
|
||||
|
||||
### buggy_crafts.lua ###
|
||||
Buggy Body=Korpo de Buggy
|
||||
Buggy Wheel=Rado de Buggy
|
||||
Buggy=Buggy
|
6
automobiles_buggy/locale/template.txt
Normal file
6
automobiles_buggy/locale/template.txt
Normal file
@ -0,0 +1,6 @@
|
||||
# textdomain: automobiles_buggy
|
||||
|
||||
### buggy_crafts.lua ###
|
||||
Buggy Body=
|
||||
Buggy Wheel=
|
||||
Buggy=
|
@ -1,16 +1,18 @@
|
||||
local S = minetest.get_translator(minetest.get_current_modname())
|
||||
|
||||
--
|
||||
-- items
|
||||
--
|
||||
|
||||
-- body
|
||||
minetest.register_craftitem("automobiles_coupe:coupe_body",{
|
||||
description = "Coupe body",
|
||||
description = S("Coupe Body"),
|
||||
inventory_image = "automobiles_coupe_body.png",
|
||||
})
|
||||
|
||||
-- coupe
|
||||
minetest.register_craftitem("automobiles_coupe:coupe", {
|
||||
description = "Coupe",
|
||||
description = S("Coupe"),
|
||||
inventory_image = "automobiles_coupe.png",
|
||||
liquids_pointable = false,
|
||||
|
||||
@ -18,7 +20,7 @@ minetest.register_craftitem("automobiles_coupe:coupe", {
|
||||
if pointed_thing.type ~= "node" then
|
||||
return
|
||||
end
|
||||
|
||||
|
||||
local pointed_pos = pointed_thing.above
|
||||
--pointed_pos.y=pointed_pos.y+0.2
|
||||
local car = minetest.add_entity(pointed_pos, "automobiles_coupe:coupe")
|
||||
@ -60,5 +62,3 @@ if minetest.get_modpath("default") then
|
||||
}
|
||||
})
|
||||
end
|
||||
|
||||
|
||||
|
5
automobiles_coupe/locale/automobiles_coupe.eo.tr
Normal file
5
automobiles_coupe/locale/automobiles_coupe.eo.tr
Normal file
@ -0,0 +1,5 @@
|
||||
# textdomain: automobiles_coupe
|
||||
|
||||
### coupe_crafts.lua ###
|
||||
Coupe Body=Korpo de Coupe
|
||||
Coupe=Coupe
|
5
automobiles_coupe/locale/template.txt
Normal file
5
automobiles_coupe/locale/template.txt
Normal file
@ -0,0 +1,5 @@
|
||||
# textdomain: automobiles_coupe
|
||||
|
||||
### coupe_crafts.lua ###
|
||||
Coupe Body=
|
||||
Coupe=
|
@ -204,8 +204,8 @@ function automobiles_lib.dettach_pax(self, player)
|
||||
if self._passenger == name then
|
||||
self._passenger = nil
|
||||
else
|
||||
--[[for i = 10,1,-1
|
||||
do
|
||||
--[[for i = 10,1,-1
|
||||
do
|
||||
if self._passengers[i] == name then
|
||||
self._passengers[i] = nil
|
||||
break
|
||||
@ -276,7 +276,7 @@ function automobiles_lib.swap_node(self, pos)
|
||||
count = count + 1
|
||||
target_pos.y = target_pos.y + 1
|
||||
end
|
||||
|
||||
|
||||
if have_air then
|
||||
minetest.set_node(target_pos, {name='automobiles_lib:light'})
|
||||
automobiles_lib.remove_light(self)
|
||||
@ -414,13 +414,13 @@ dofile(minetest.get_modpath("automobiles_lib") .. DIR_DELIM .. "inventory_manage
|
||||
|
||||
-- engine
|
||||
minetest.register_craftitem("automobiles_lib:engine",{
|
||||
description = "Car engine",
|
||||
description = S("Car Engine"),
|
||||
inventory_image = "automobiles_engine.png",
|
||||
})
|
||||
|
||||
-- engine
|
||||
minetest.register_craftitem("automobiles_lib:wheel",{
|
||||
description = "Car wheel",
|
||||
description = S("Car Wheel"),
|
||||
inventory_image = "automobiles_wheel_icon.png",
|
||||
})
|
||||
|
||||
@ -452,15 +452,15 @@ initial_properties = {
|
||||
backface_culling = false,
|
||||
textures = {"automobiles_black.png", "automobiles_metal.png"},
|
||||
},
|
||||
|
||||
|
||||
on_activate = function(self,std)
|
||||
self.sdata = minetest.deserialize(std) or {}
|
||||
if self.sdata.remove then self.object:remove() end
|
||||
end,
|
||||
|
||||
|
||||
get_staticdata=function(self)
|
||||
self.sdata.remove=true
|
||||
return minetest.serialize(self.sdata)
|
||||
end,
|
||||
|
||||
|
||||
})
|
||||
|
8
automobiles_lib/locale/automobiles_lib.eo.tr
Normal file
8
automobiles_lib/locale/automobiles_lib.eo.tr
Normal 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
|
8
automobiles_lib/locale/template.txt
Normal file
8
automobiles_lib/locale/template.txt
Normal file
@ -0,0 +1,8 @@
|
||||
# textdomain: automobiles_lib
|
||||
|
||||
### init.lua ###
|
||||
Car Engine=
|
||||
Car Wheel=
|
||||
|
||||
### painter.lua ###
|
||||
Automobiles Painter=
|
@ -50,37 +50,37 @@ local function painter_form(player, rgb)
|
||||
"formspec_version[3]" .. -- Minetest 5.2+
|
||||
"size[5.6,5.2;true]" ..
|
||||
"position[0.5,0.45]" ..
|
||||
|
||||
|
||||
-- Color preview
|
||||
"image[0.2,0.2;2,2;automobiles_painting.png^[colorize:" .. color .. ":255]" ..
|
||||
"label[0.3,1.2;Preview]" ..
|
||||
|
||||
|
||||
-- Hex field
|
||||
"field_close_on_enter[hex;false]" ..
|
||||
"field[2.4,0.2;3,0.8;hex;;" .. color .. "]" ..
|
||||
"button[2.4,1;3,0.8;set_hex;Set Hex]" ..
|
||||
|
||||
|
||||
-- RGB sliders
|
||||
"container[0,2.4]" ..
|
||||
"scrollbaroptions[min=0;max=255;smallstep=20]" ..
|
||||
|
||||
|
||||
"box[0.4,0;4.77,0.38;red]" ..
|
||||
"label[0.2,0.2;-]" ..
|
||||
"scrollbar[0.4,0;4.8,0.4;horizontal;r;" .. rgb.r .."]" ..
|
||||
"label[5.2,0.2;+]" ..
|
||||
|
||||
|
||||
"box[0.4,0.6;4.77,0.38;green]" ..
|
||||
"label[0.2,0.8;-]" ..
|
||||
"scrollbar[0.4,0.6;4.8,0.4;horizontal;g;" .. rgb.g .."]" ..
|
||||
"label[5.2,0.8;+]" ..
|
||||
|
||||
|
||||
"box[0.4,1.2;4.77,0.38;blue]" ..
|
||||
"label[0.2,1.4;-]" ..
|
||||
"scrollbar[0.4,1.2;4.8,0.4;horizontal;b;" .. rgb.b .. "]" ..
|
||||
"label[5.2,1.4;+]" ..
|
||||
|
||||
|
||||
"container_end[]" ..
|
||||
|
||||
|
||||
-- Bottom buttons
|
||||
"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]"
|
||||
@ -96,7 +96,7 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
|
||||
formspec_timers[player]:cancel()
|
||||
formspec_timers[player] = nil
|
||||
end
|
||||
|
||||
|
||||
local function parse_scrollbar_field(value)
|
||||
value = value or ""
|
||||
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),
|
||||
b = parse_scrollbar_field(fields.b),
|
||||
}
|
||||
|
||||
|
||||
if fields.set_hex or fields.key_enter then
|
||||
if is_hex(fields.hex) then
|
||||
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
|
||||
end, itemstack, player:get_player_name())
|
||||
end
|
||||
|
||||
|
||||
if fields.quit then
|
||||
automobiles_being_painted[player] = nil
|
||||
end
|
||||
@ -145,7 +145,7 @@ end)
|
||||
|
||||
-- Make the actual thingy
|
||||
minetest.register_tool("automobiles_lib:painter", {
|
||||
description = "Automobiles Painter",
|
||||
description = S("Automobiles Painter"),
|
||||
inventory_image = "automobiles_painter.png",
|
||||
wield_scale = {x = 2, y = 2, z = 1},
|
||||
on_use = function(itemstack, user, pointed_thing)
|
||||
|
@ -0,0 +1,6 @@
|
||||
# textdomain: automobiles_motorcycle
|
||||
|
||||
### motorcycle_crafts.lua ###
|
||||
Motorcycle Body=Motorcikla Korpo
|
||||
Motorcycle Wheel=Motorcikla Rado
|
||||
Motorcycle=Motorciklo
|
6
automobiles_motorcycle/locale/template.txt
Normal file
6
automobiles_motorcycle/locale/template.txt
Normal file
@ -0,0 +1,6 @@
|
||||
# textdomain: automobiles_motorcycle
|
||||
|
||||
### motorcycle_crafts.lua ###
|
||||
Motorcycle Body=
|
||||
Motorcycle Wheel=
|
||||
Motorcycle=
|
@ -1,21 +1,23 @@
|
||||
local S = minetest.get_translator(minetest.get_current_modname())
|
||||
|
||||
--
|
||||
-- items
|
||||
--
|
||||
|
||||
-- body
|
||||
minetest.register_craftitem("automobiles_motorcycle:body",{
|
||||
description = "Motorcycle body",
|
||||
description = S("Motorcycle Body"),
|
||||
inventory_image = "automobiles_motorcycle_body.png",
|
||||
})
|
||||
-- wheel
|
||||
minetest.register_craftitem("automobiles_motorcycle:wheel",{
|
||||
description = "Motorcycle wheel",
|
||||
description = S("Motorcycle Wheel"),
|
||||
inventory_image = "automobiles_motorcycle_wheel_icon.png",
|
||||
})
|
||||
|
||||
-- motorcycle
|
||||
minetest.register_craftitem("automobiles_motorcycle:motorcycle", {
|
||||
description = "Motorcycle",
|
||||
description = S("Motorcycle"),
|
||||
inventory_image = "automobiles_motorcycle.png",
|
||||
liquids_pointable = false,
|
||||
|
||||
@ -23,7 +25,7 @@ minetest.register_craftitem("automobiles_motorcycle:motorcycle", {
|
||||
if pointed_thing.type ~= "node" then
|
||||
return
|
||||
end
|
||||
|
||||
|
||||
local pointed_pos = pointed_thing.above
|
||||
--pointed_pos.y=pointed_pos.y+0.2
|
||||
local car = minetest.add_entity(pointed_pos, "automobiles_motorcycle:motorcycle")
|
||||
@ -71,5 +73,3 @@ if minetest.get_modpath("default") then
|
||||
}
|
||||
})
|
||||
end
|
||||
|
||||
|
||||
|
6
automobiles_roadster/locale/automobiles_roadster.eo.tr
Normal file
6
automobiles_roadster/locale/automobiles_roadster.eo.tr
Normal file
@ -0,0 +1,6 @@
|
||||
# textdomain: automobiles_roadster
|
||||
|
||||
### roadster_crafts.lua ###
|
||||
Roadster Body=Korpo de Roadster
|
||||
Roadster Wheel=Rado de Roadster
|
||||
Roadster=Roadster
|
6
automobiles_roadster/locale/template.txt
Normal file
6
automobiles_roadster/locale/template.txt
Normal file
@ -0,0 +1,6 @@
|
||||
# textdomain: automobiles_roadster
|
||||
|
||||
### roadster_crafts.lua ###
|
||||
Roadster Body=
|
||||
Roadster Wheel=
|
||||
Roadster=
|
@ -1,21 +1,23 @@
|
||||
local S = minetest.get_translator(minetest.get_current_modname())
|
||||
|
||||
--
|
||||
-- items
|
||||
--
|
||||
|
||||
-- body
|
||||
minetest.register_craftitem("automobiles_roadster:roadster_body",{
|
||||
description = "Roadster body",
|
||||
description = S("Roadster Body"),
|
||||
inventory_image = "roadster_body.png",
|
||||
})
|
||||
-- wheel
|
||||
minetest.register_craftitem("automobiles_roadster:wheel",{
|
||||
description = "Roadster wheel",
|
||||
description = S("Roadster Wheel"),
|
||||
inventory_image = "roadster_wheel.png",
|
||||
})
|
||||
|
||||
-- roadster
|
||||
minetest.register_craftitem("automobiles_roadster:roadster", {
|
||||
description = "Roadster",
|
||||
description = S("Roadster"),
|
||||
inventory_image = "automobiles_roadster.png",
|
||||
liquids_pointable = false,
|
||||
|
||||
@ -23,7 +25,7 @@ minetest.register_craftitem("automobiles_roadster:roadster", {
|
||||
if pointed_thing.type ~= "node" then
|
||||
return
|
||||
end
|
||||
|
||||
|
||||
local pointed_pos = pointed_thing.above
|
||||
--pointed_pos.y=pointed_pos.y+0.2
|
||||
local car = minetest.add_entity(pointed_pos, "automobiles_roadster:roadster")
|
||||
@ -72,5 +74,3 @@ if minetest.get_modpath("default") then
|
||||
}
|
||||
})
|
||||
end
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user