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 /sorting_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 'sorting_tubes.lua')
-rw-r--r-- | sorting_tubes.lua | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sorting_tubes.lua b/sorting_tubes.lua index 76eec32..89d72a0 100644 --- a/sorting_tubes.lua +++ b/sorting_tubes.lua @@ -1,3 +1,4 @@ +local S = minetest.get_translator("pipeworks") local fs_helpers = pipeworks.fs_helpers if pipeworks.enable_mese_tube then @@ -55,7 +56,7 @@ if pipeworks.enable_mese_tube then end pipeworks.register_tube("pipeworks:mese_tube", { - description = "Sorting Pneumatic Tube Segment", + description = S("Sorting Pneumatic Tube Segment"), inventory_image = "pipeworks_mese_tube_inv.png", noctr = {"pipeworks_mese_tube_noctr_1.png", "pipeworks_mese_tube_noctr_2.png", "pipeworks_mese_tube_noctr_3.png", "pipeworks_mese_tube_noctr_4.png", "pipeworks_mese_tube_noctr_5.png", "pipeworks_mese_tube_noctr_6.png"}, @@ -107,7 +108,7 @@ if pipeworks.enable_mese_tube then inv:set_size("line"..tostring(i), 6*1) end update_formspec(pos) - meta:set_string("infotext", "Sorting pneumatic tube") + meta:set_string("infotext", S("Sorting pneumatic tube")) end, on_punch = update_formspec, on_receive_fields = function(pos, formname, fields, sender) |