Add translation support

- Created `locale/template.txt`
- Fixed some typos
- Replace some `print("[pipeworks]"..` with `pipeworks.logger()`
- Removed "You hacker, you" from descriptions
This commit is contained in:
Louis Royer
2020-02-18 17:34:52 +00:00
committed by Vanessa Dannenberg
parent 84d7104c66
commit 62bc13078f
23 changed files with 366 additions and 127 deletions

View File

@ -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,