summaryrefslogtreecommitdiff
path: root/pipes.lua
diff options
context:
space:
mode:
authorLouis Royer <4259825-lroyer@users.noreply.gitlab.com>2020-02-18 17:34:52 +0000
committerVanessa Dannenberg <vanessa.e.dannenberg@gmail.com>2020-02-18 17:34:52 +0000
commit62bc13078f4e93993ebf121cc9c74bc31a6e5d90 (patch)
tree359944bcd77a5ec36a32b1475e2818019e105956 /pipes.lua
parent84d7104c66459d8785b95d2db5cc8f425a499d89 (diff)
downloadpipeworks-62bc13078f4e93993ebf121cc9c74bc31a6e5d90.tar
pipeworks-62bc13078f4e93993ebf121cc9c74bc31a6e5d90.tar.gz
pipeworks-62bc13078f4e93993ebf121cc9c74bc31a6e5d90.tar.bz2
pipeworks-62bc13078f4e93993ebf121cc9c74bc31a6e5d90.tar.xz
pipeworks-62bc13078f4e93993ebf121cc9c74bc31a6e5d90.zip
Add translation support
- Created `locale/template.txt` - Fixed some typos - Replace some `print("[pipeworks]"..` with `pipeworks.logger()` - Removed "You hacker, you" from descriptions
Diffstat (limited to 'pipes.lua')
-rw-r--r--pipes.lua7
1 files changed, 4 insertions, 3 deletions
diff --git a/pipes.lua b/pipes.lua
index 3201d79..227ec06 100644
--- a/pipes.lua
+++ b/pipes.lua
@@ -1,4 +1,5 @@
-- This file supplies the steel pipes
+local S = minetest.get_translator("pipeworks")
local REGISTER_COMPATIBILITY = true
@@ -35,11 +36,11 @@ for index, connects in ipairs(cconnects) do
end
local pgroups = {snappy = 3, pipe = 1, not_in_creative_inventory = 1}
- local pipedesc = "Pipe segement".." "..dump(connects).."... You hacker, you."
+ local pipedesc = S("Pipe Segment").." "..dump(connects)
if #connects == 0 then
pgroups = {snappy = 3, tube = 1}
- pipedesc = "Pipe segment"
+ pipedesc = S("Pipe Segment")
end
local outimg_e = { "pipeworks_pipe_plain.png" }
@@ -140,7 +141,7 @@ if REGISTER_COMPATIBILITY then
drawtype = "airlike",
sunlight_propagates = true,
paramtype = "light",
- description = "Pipe Segment (legacy)",
+ description = S("Pipe Segment (legacy)"),
groups = {not_in_creative_inventory = 1, pipe_to_update = 1},
drop = "pipeworks:pipe_1_empty",
after_place_node = function(pos)