summaryrefslogtreecommitdiff
path: root/api.lua
diff options
context:
space:
mode:
authorWuzzy <almikes@aol.com>2016-08-06 17:23:46 +0200
committerWuzzy <almikes@aol.com>2016-08-06 17:23:46 +0200
commitc81666694587dc49936eb2122607de1efd1589fd (patch)
tree4d78acae78e081f30b8aa8d1076a1ecf5a27175f /api.lua
parent534c7bd92c663e08f96523e1c352f0b851622cc7 (diff)
Ensure formspec escaping for translated strings
Diffstat (limited to 'api.lua')
-rw-r--r--api.lua9
1 files changed, 5 insertions, 4 deletions
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,