diff options
author | Louis Royer <4259825-lroyer@users.noreply.gitlab.com> | 2020-02-18 17:34:52 +0000 |
---|---|---|
committer | Vanessa Dannenberg <vanessa.e.dannenberg@gmail.com> | 2020-02-18 17:34:52 +0000 |
commit | 62bc13078f4e93993ebf121cc9c74bc31a6e5d90 (patch) | |
tree | 359944bcd77a5ec36a32b1475e2818019e105956 /vacuum_tubes.lua | |
parent | 84d7104c66459d8785b95d2db5cc8f425a499d89 (diff) | |
download | pipeworks-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 'vacuum_tubes.lua')
-rw-r--r-- | vacuum_tubes.lua | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/vacuum_tubes.lua b/vacuum_tubes.lua index c1e9fe0..b809f99 100644 --- a/vacuum_tubes.lua +++ b/vacuum_tubes.lua @@ -1,6 +1,7 @@ +local S = minetest.get_translator("pipeworks") if pipeworks.enable_sand_tube then pipeworks.register_tube("pipeworks:sand_tube", { - description = "Vacuuming Pneumatic Tube Segment", + description = S("Vacuuming Pneumatic Tube Segment"), inventory_image = "pipeworks_sand_tube_inv.png", short = "pipeworks_sand_tube_short.png", noctr = {"pipeworks_sand_tube_noctr.png"}, @@ -28,7 +29,7 @@ end if pipeworks.enable_mese_sand_tube then pipeworks.register_tube("pipeworks:mese_sand_tube", { - description = "Adjustable Vacuuming Pneumatic Tube Segment", + description = S("Adjustable Vacuuming Pneumatic Tube Segment"), inventory_image = "pipeworks_mese_sand_tube_inv.png", short = "pipeworks_mese_sand_tube_short.png", noctr = {"pipeworks_mese_sand_tube_noctr.png"}, @@ -44,7 +45,7 @@ if pipeworks.enable_mese_sand_tube then "field[1.3,0.4;1,1;dist;radius;${dist}]".. default.gui_bg.. default.gui_bg_img) - meta:set_string("infotext", "Adjustable Vacuuming Pneumatic Tube Segment") + meta:set_string("infotext", S("Adjustable Vacuuming Pneumatic Tube Segment")) end, on_receive_fields = function(pos,formname,fields,sender) if not pipeworks.may_configure(pos, sender) then return end @@ -54,7 +55,7 @@ if pipeworks.enable_mese_sand_tube then dist = math.max(0, dist) dist = math.min(8, dist) meta:set_int("dist", dist) - meta:set_string("infotext", ("Adjustable Vacuuming Pneumatic Tube Segment (%dm)"):format(dist)) + meta:set_string("infotext", (S("Adjustable Vacuuming Pneumatic Tube Segment (@1m)", dist))) end end, }, |