Make strings translatable

This commit is contained in:
2025-12-09 18:10:17 +01:00
parent ebd6c93b54
commit 9fc1fbce0f
4 changed files with 16 additions and 5 deletions

View File

@@ -1,5 +1,7 @@
local S = core.get_translator(core.get_current_modname())
-- Register tree bark
core.register_craftitem(":default:tree_bark", {description = "Tree bark", inventory_image = "tree_bark.png"})
core.register_craftitem(":default:tree_bark", {description = S("Tree bark"), inventory_image = "tree_bark.png"})
-- Register bark as fuel
core.register_craft({type = "fuel", recipe = "default:tree_bark", burntime = 15})
@@ -20,7 +22,7 @@ core.register_craft(
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"},