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 /init.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 'init.lua')
-rw-r--r-- | init.lua | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -10,6 +10,7 @@ local DEBUG = false pipeworks.worldpath = minetest.get_worldpath() pipeworks.modpath = minetest.get_modpath("pipeworks") +local S = minetest.get_translator("pipeworks") dofile(pipeworks.modpath.."/default_settings.lua") -- Read the external config file if it exists. @@ -45,7 +46,7 @@ pipeworks.liquid_texture = "default_water.png" pipeworks.button_off = {text="", texture="pipeworks_button_off.png", addopts="false;false;pipeworks_button_interm.png"} pipeworks.button_on = {text="", texture="pipeworks_button_on.png", addopts="false;false;pipeworks_button_interm.png"} pipeworks.button_base = "image_button[0,4.3;1,0.6" -pipeworks.button_label = "label[0.9,4.31;Allow splitting incoming stacks from tubes]" +pipeworks.button_label = "label[0.9,4.31;"..S("Allow splitting incoming stacks from tubes").."]" -- Helper functions |