Make strings translatable
Some checks are pending
build / build (push) Waiting to run
build / build (pull_request) Waiting to run

Also add Hungarian and Spanish translations
This commit was merged in pull request #4.
This commit is contained in:
2025-12-09 18:10:17 +01:00
parent 97682b7df6
commit 1e1c9a0fb4
6 changed files with 25 additions and 4 deletions

View File

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