From 015e49f32a8bd9a42e655aaaa98fd4694c9eb8ff Mon Sep 17 00:00:00 2001 From: 1F616EMO Date: Sun, 17 May 2026 09:34:48 +0800 Subject: Avoid translation across the first line of item descriptions Fixes :get_short_description() chopping translation escape sequences in half by separating the first line and the rest of item descriptions into two translatable strings. The number of line breaks are preserved. Workaround or fix of https://github.com/luanti-org/luanti/issues/12566. --- advtrains/wagonprop_tool.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'advtrains/wagonprop_tool.lua') diff --git a/advtrains/wagonprop_tool.lua b/advtrains/wagonprop_tool.lua index f32dd03..95feae9 100644 --- a/advtrains/wagonprop_tool.lua +++ b/advtrains/wagonprop_tool.lua @@ -3,7 +3,7 @@ local S = advtrains.translate minetest.register_craftitem("advtrains:wagon_prop_tool",{ --craftitem because it does nothing on its own - description = S("Wagon Properties Tool\nPunch a wagon to view and edit the Wagon Properties"), + description = S("Wagon Properties Tool") .. "\n" .. S("Punch a wagon to view and edit the Wagon Properties"), short_description = S("Wagon Properties Tool"), groups = {}, inventory_image = "advtrains_wagon_prop_tool.png", -- cgit v1.2.3