summaryrefslogtreecommitdiff
path: root/legacy.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 /legacy.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 'legacy.lua')
-rw-r--r--legacy.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/legacy.lua b/legacy.lua
index bb92a8f..25f48d2 100644
--- a/legacy.lua
+++ b/legacy.lua
@@ -1,3 +1,4 @@
+local S = minetest.get_translator("pipeworks")
if not minetest.get_modpath("auto_tree_tap") and
minetest.get_modpath("technic") then
@@ -20,7 +21,7 @@ if not minetest.get_modpath("auto_tree_tap") and
})
minetest.register_node(":auto_tree_tap:off", {
- description = "Auto-Tap",
+ description = S("Auto-Tap"),
tiles = {"pipeworks_nodebreaker_top_off.png","pipeworks_nodebreaker_bottom_off.png","pipeworks_nodebreaker_side2_off.png","pipeworks_nodebreaker_side1_off.png",
"pipeworks_nodebreaker_back.png","pipeworks_nodebreaker_front_off.png"},
is_ground_content = true,