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,9 +1,11 @@
local S = core.get_translator(core.get_current_modname())
local max_stack = tonumber(core.settings:get("default_stack_max")) or 99
-- LuaFormatter off
local machine_formspec = "" ..
"size[8,9]" ..
"label[0,0;Chiseling Machine]" ..
"label[0,0;" .. core.formspec_escape(S("Chiseling Machine")) .. "]" ..
"image[2,2;1,1;chisel.png]" ..
"list[current_name;src;2,1;1,1;]" ..
"list[current_name;dst;5,1;2,2;]" ..
@@ -16,7 +18,7 @@ local machine_formspec = "" ..
core.register_node(
"stripped_tree:chiseling_machine", {
description = "Chiseling machine",
description = S("Chiseling Machine"),
tiles = {
"chiseling_machine.png",
"chiseling_machine.png",