From 12b580ade018d9f1ab4226b31f58e17dd83032c6 Mon Sep 17 00:00:00 2001 From: Aaron Suen Date: Sun, 25 Aug 2019 18:53:22 -0400 Subject: [PATCH] Fix touchtip translations to cover ALL text. --- mods/nc_player_hud/touchtip.lua | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/mods/nc_player_hud/touchtip.lua b/mods/nc_player_hud/touchtip.lua index b7cae452..5e57b890 100644 --- a/mods/nc_player_hud/touchtip.lua +++ b/mods/nc_player_hud/touchtip.lua @@ -6,6 +6,7 @@ local minetest, nodecore, pairs local tips = {} local function show(player, text, ttl) + text = nodecore.translate(text) ttl = ttl or 2 local pname = player:get_player_name() local tip = tips[pname] @@ -42,9 +43,7 @@ local function stack_desc(s) local n = s:get_name() local d = minetest.registered_items[n] or {} - n = d.description or n - - return n and nodecore.translate(n) + return d.description or n end local function wield_name(player)