diff options
| author | 1F616EMO <root@1f616emo.xyz> | 2026-05-17 09:34:48 +0800 |
|---|---|---|
| committer | orwell <orwell@bleipb.de> | 2026-06-07 20:42:59 +0200 |
| commit | 015e49f32a8bd9a42e655aaaa98fd4694c9eb8ff (patch) | |
| tree | c7d734c5cfa2727e46fd4d69bce57efe9055a45e /advtrains/wagonprop_tool.lua | |
| parent | b153a7efd85a2b5920af48465043831472c091ac (diff) | |
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.
Diffstat (limited to 'advtrains/wagonprop_tool.lua')
| -rw-r--r-- | advtrains/wagonprop_tool.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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", |
