From c81666694587dc49936eb2122607de1efd1589fd Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Sat, 6 Aug 2016 17:23:46 +0200 Subject: Ensure formspec escaping for translated strings --- api.lua | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'api.lua') diff --git a/api.lua b/api.lua index c4e76c6..0b25701 100644 --- a/api.lua +++ b/api.lua @@ -1,4 +1,5 @@ local S = unified_inventory.gettext +local F = unified_inventory.fgettext -- Create detached creative inventory after loading all mods minetest.after(0.01, function() @@ -158,7 +159,7 @@ end unified_inventory.register_craft_type("normal", { - description = S("Crafting"), + description = F("Crafting"), icon = "ui_craftgrid_icon.png", width = 3, height = 3, @@ -174,7 +175,7 @@ unified_inventory.register_craft_type("normal", { unified_inventory.register_craft_type("shapeless", { - description = S("Mixing"), + description = F("Mixing"), icon = "ui_craftgrid_icon.png", width = 3, height = 3, @@ -189,7 +190,7 @@ unified_inventory.register_craft_type("shapeless", { unified_inventory.register_craft_type("cooking", { - description = S("Cooking"), + description = F("Cooking"), icon = "default_furnace_front.png", width = 1, height = 1, @@ -197,7 +198,7 @@ unified_inventory.register_craft_type("cooking", { unified_inventory.register_craft_type("digging", { - description = S("Digging"), + description = F("Digging"), icon = "default_tool_steelpick.png", width = 1, height = 1, -- cgit v1.2.3