From 62bc13078f4e93993ebf121cc9c74bc31a6e5d90 Mon Sep 17 00:00:00 2001 From: Louis Royer <4259825-lroyer@users.noreply.gitlab.com> Date: Tue, 18 Feb 2020 17:34:52 +0000 Subject: Add translation support - Created `locale/template.txt` - Fixed some typos - Replace some `print("[pipeworks]"..` with `pipeworks.logger()` - Removed "You hacker, you" from descriptions --- tube_registration.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tube_registration.lua') diff --git a/tube_registration.lua b/tube_registration.lua index e92e676..17965d8 100644 --- a/tube_registration.lua +++ b/tube_registration.lua @@ -1,4 +1,5 @@ -- This file supplies the various kinds of pneumatic tubes +local S = minetest.get_translator("pipeworks") local tubenodes = {} pipeworks.tubenodes = tubenodes @@ -56,7 +57,7 @@ local register_one_tube = function(name, tname, dropname, desc, plain, noctrs, e end local tgroups = {snappy = 3, tube = 1, tubedevice = 1, not_in_creative_inventory = 1} - local tubedesc = string.format("%s %s... You hacker, you.", desc, dump(connects)) + local tubedesc = string.format("%s %s", desc, dump(connects)) local iimg = plain[1] local wscale = {x = 1, y = 1, z = 1} @@ -197,7 +198,7 @@ local register_all_tubes = function(name, desc, plain, noctrs, ends, short, inv, wield_image = inv, paramtype = "light", sunlight_propagates = true, - description = "Pneumatic tube segment (legacy)", + description = S("Pneumatic tube segment (legacy)"), after_place_node = pipeworks.after_place, groups = {not_in_creative_inventory = 1, tube_to_update = 1, tube = 1}, tube = {connect_sides = {front = 1, back = 1, left = 1, right = 1, top = 1, bottom = 1}}, -- cgit v1.2.3