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_interlocking/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_interlocking/tool.lua')
| -rw-r--r-- | advtrains_interlocking/tool.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/advtrains_interlocking/tool.lua b/advtrains_interlocking/tool.lua index d7a42b4..ebfdbd8 100644 --- a/advtrains_interlocking/tool.lua +++ b/advtrains_interlocking/tool.lua @@ -71,7 +71,8 @@ end minetest.register_craftitem("advtrains_interlocking:tool",{ - description = S("Interlocking tool\nPunch: Highlight track section\nPlace: check route locks/show track section info"), + description = S("Interlocking tool") .. "\n" .. S("Punch: Highlight track section\nPlace: check route locks/show track section info"), + short_description = S("Interlocking tool"), groups = {cracky=1}, -- key=name, value=rating; rating=1..3. inventory_image = "at_il_tool.png", wield_image = "at_il_tool.png", |
