From 9eae8c98a787e6b809afc906eacfc911eb65e947 Mon Sep 17 00:00:00 2001 From: jolesh Date: Fri, 11 Nov 2022 10:13:29 +0100 Subject: [PATCH] Add Esperanto translation --- automobiles_buggy/buggy_crafts.lua | 12 +++++----- .../locale/automobiles_buggy.eo.tr | 6 +++++ automobiles_buggy/locale/template.txt | 6 +++++ automobiles_coupe/coupe_crafts.lua | 10 ++++---- .../locale/automobiles_coupe.eo.tr | 5 ++++ automobiles_coupe/locale/template.txt | 5 ++++ automobiles_lib/init.lua | 16 ++++++------- automobiles_lib/locale/automobiles_lib.eo.tr | 8 +++++++ automobiles_lib/locale/template.txt | 8 +++++++ automobiles_lib/painter.lua | 24 +++++++++---------- .../locale/automobiles_motorcycle.eo.tr | 6 +++++ automobiles_motorcycle/locale/template.txt | 6 +++++ automobiles_motorcycle/motorcycle_crafts.lua | 12 +++++----- .../locale/automobiles_roadster.eo.tr | 6 +++++ automobiles_roadster/locale/template.txt | 6 +++++ automobiles_roadster/roadster_crafts.lua | 12 +++++----- 16 files changed, 105 insertions(+), 43 deletions(-) create mode 100644 automobiles_buggy/locale/automobiles_buggy.eo.tr create mode 100644 automobiles_buggy/locale/template.txt create mode 100644 automobiles_coupe/locale/automobiles_coupe.eo.tr create mode 100644 automobiles_coupe/locale/template.txt create mode 100644 automobiles_lib/locale/automobiles_lib.eo.tr create mode 100644 automobiles_lib/locale/template.txt create mode 100644 automobiles_motorcycle/locale/automobiles_motorcycle.eo.tr create mode 100644 automobiles_motorcycle/locale/template.txt create mode 100644 automobiles_roadster/locale/automobiles_roadster.eo.tr create mode 100644 automobiles_roadster/locale/template.txt diff --git a/automobiles_buggy/buggy_crafts.lua b/automobiles_buggy/buggy_crafts.lua index 4d3c940..94dd360 100644 --- a/automobiles_buggy/buggy_crafts.lua +++ b/automobiles_buggy/buggy_crafts.lua @@ -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 - - diff --git a/automobiles_buggy/locale/automobiles_buggy.eo.tr b/automobiles_buggy/locale/automobiles_buggy.eo.tr new file mode 100644 index 0000000..4d52553 --- /dev/null +++ b/automobiles_buggy/locale/automobiles_buggy.eo.tr @@ -0,0 +1,6 @@ +# textdomain: automobiles_buggy + +### buggy_crafts.lua ### +Buggy Body=Korpo de Buggy +Buggy Wheel=Rado de Buggy +Buggy=Buggy diff --git a/automobiles_buggy/locale/template.txt b/automobiles_buggy/locale/template.txt new file mode 100644 index 0000000..d2f46a8 --- /dev/null +++ b/automobiles_buggy/locale/template.txt @@ -0,0 +1,6 @@ +# textdomain: automobiles_buggy + +### buggy_crafts.lua ### +Buggy Body= +Buggy Wheel= +Buggy= diff --git a/automobiles_coupe/coupe_crafts.lua b/automobiles_coupe/coupe_crafts.lua index 8be0805..004bfce 100644 --- a/automobiles_coupe/coupe_crafts.lua +++ b/automobiles_coupe/coupe_crafts.lua @@ -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 - - diff --git a/automobiles_coupe/locale/automobiles_coupe.eo.tr b/automobiles_coupe/locale/automobiles_coupe.eo.tr new file mode 100644 index 0000000..66d01d3 --- /dev/null +++ b/automobiles_coupe/locale/automobiles_coupe.eo.tr @@ -0,0 +1,5 @@ +# textdomain: automobiles_coupe + +### coupe_crafts.lua ### +Coupe Body=Korpo de Coupe +Coupe=Coupe diff --git a/automobiles_coupe/locale/template.txt b/automobiles_coupe/locale/template.txt new file mode 100644 index 0000000..39433c4 --- /dev/null +++ b/automobiles_coupe/locale/template.txt @@ -0,0 +1,5 @@ +# textdomain: automobiles_coupe + +### coupe_crafts.lua ### +Coupe Body= +Coupe= diff --git a/automobiles_lib/init.lua b/automobiles_lib/init.lua index 2524f51..ff5cdc4 100755 --- a/automobiles_lib/init.lua +++ b/automobiles_lib/init.lua @@ -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, - + }) diff --git a/automobiles_lib/locale/automobiles_lib.eo.tr b/automobiles_lib/locale/automobiles_lib.eo.tr new file mode 100644 index 0000000..ad12671 --- /dev/null +++ b/automobiles_lib/locale/automobiles_lib.eo.tr @@ -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 diff --git a/automobiles_lib/locale/template.txt b/automobiles_lib/locale/template.txt new file mode 100644 index 0000000..7729d74 --- /dev/null +++ b/automobiles_lib/locale/template.txt @@ -0,0 +1,8 @@ +# textdomain: automobiles_lib + +### init.lua ### +Car Engine= +Car Wheel= + +### painter.lua ### +Automobiles Painter= diff --git a/automobiles_lib/painter.lua b/automobiles_lib/painter.lua index 0e159a2..c895009 100644 --- a/automobiles_lib/painter.lua +++ b/automobiles_lib/painter.lua @@ -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) diff --git a/automobiles_motorcycle/locale/automobiles_motorcycle.eo.tr b/automobiles_motorcycle/locale/automobiles_motorcycle.eo.tr new file mode 100644 index 0000000..6962b55 --- /dev/null +++ b/automobiles_motorcycle/locale/automobiles_motorcycle.eo.tr @@ -0,0 +1,6 @@ +# textdomain: automobiles_motorcycle + +### motorcycle_crafts.lua ### +Motorcycle Body=Motorcikla Korpo +Motorcycle Wheel=Motorcikla Rado +Motorcycle=Motorciklo diff --git a/automobiles_motorcycle/locale/template.txt b/automobiles_motorcycle/locale/template.txt new file mode 100644 index 0000000..0d37add --- /dev/null +++ b/automobiles_motorcycle/locale/template.txt @@ -0,0 +1,6 @@ +# textdomain: automobiles_motorcycle + +### motorcycle_crafts.lua ### +Motorcycle Body= +Motorcycle Wheel= +Motorcycle= diff --git a/automobiles_motorcycle/motorcycle_crafts.lua b/automobiles_motorcycle/motorcycle_crafts.lua index 6d6b2b9..a38b020 100644 --- a/automobiles_motorcycle/motorcycle_crafts.lua +++ b/automobiles_motorcycle/motorcycle_crafts.lua @@ -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 - - diff --git a/automobiles_roadster/locale/automobiles_roadster.eo.tr b/automobiles_roadster/locale/automobiles_roadster.eo.tr new file mode 100644 index 0000000..93aa494 --- /dev/null +++ b/automobiles_roadster/locale/automobiles_roadster.eo.tr @@ -0,0 +1,6 @@ +# textdomain: automobiles_roadster + +### roadster_crafts.lua ### +Roadster Body=Korpo de Roadster +Roadster Wheel=Rado de Roadster +Roadster=Roadster diff --git a/automobiles_roadster/locale/template.txt b/automobiles_roadster/locale/template.txt new file mode 100644 index 0000000..4f17e78 --- /dev/null +++ b/automobiles_roadster/locale/template.txt @@ -0,0 +1,6 @@ +# textdomain: automobiles_roadster + +### roadster_crafts.lua ### +Roadster Body= +Roadster Wheel= +Roadster= diff --git a/automobiles_roadster/roadster_crafts.lua b/automobiles_roadster/roadster_crafts.lua index d7a3093..da32af3 100644 --- a/automobiles_roadster/roadster_crafts.lua +++ b/automobiles_roadster/roadster_crafts.lua @@ -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 - -