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_luaautomation/pcnaming.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_luaautomation/pcnaming.lua')
| -rw-r--r-- | advtrains_luaautomation/pcnaming.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/advtrains_luaautomation/pcnaming.lua b/advtrains_luaautomation/pcnaming.lua index 7c7f0c9..6f9c2f2 100644 --- a/advtrains_luaautomation/pcnaming.lua +++ b/advtrains_luaautomation/pcnaming.lua @@ -29,7 +29,8 @@ end local pcrename = {} minetest.register_craftitem("advtrains_luaautomation:pcnaming",{ - description = S("Passive Component Naming Tool\n\nRight-click to name a passive component."), + description = S("Passive Component Naming Tool") .. "\n\n" .. S("Right-click to name a passive component."), + short_description = S("Passive Component Naming Tool"), groups = {cracky=1}, -- key=name, value=rating; rating=1..3. inventory_image = "atlatc_pcnaming.png", wield_image = "atlatc_pcnaming.png", |
