Make strings translatable
Also add Hungarian and Spanish translations
This commit was merged in pull request #4.
This commit is contained in:
4
init.lua
4
init.lua
@@ -1,6 +1,8 @@
|
||||
-- Get our own path
|
||||
local mpath = core.get_modpath("stripped_tree")
|
||||
|
||||
local S = core.get_translator(core.get_current_modname())
|
||||
|
||||
-- Load functions
|
||||
dofile(mpath .. "/functions.lua")
|
||||
|
||||
@@ -18,7 +20,7 @@ if core.get_modpath("moreores") then dofile(mpath .. "/moreores.lua") end
|
||||
if stripped_tree.ENABLE_CHISEL then
|
||||
core.register_tool(
|
||||
"stripped_tree:chisel", {
|
||||
description = "Chisel for tree trunks",
|
||||
description = S("Chisel for tree trunks"),
|
||||
inventory_image = "chisel.png",
|
||||
wield_image = "chisel.png",
|
||||
sound = {breaks = "default_tool_breaks"},
|
||||
|
||||
Reference in New Issue
Block a user