summaryrefslogtreecommitdiff
path: root/api.lua
diff options
context:
space:
mode:
authorVanessa Dannenberg <vanessa.e.dannenberg@gmail.com>2018-06-30 03:31:25 +0000
committerVanessa Dannenberg <vanessa.e.dannenberg@gmail.com>2018-06-30 03:31:25 +0000
commit9ffe40d21082f576b642b1edebe63bed4031875d (patch)
tree6ccf9af5ebee14c77c10e16f3381d304dd4c6b6c /api.lua
parentc43074f5c27d982199860aad0eb69b01ae2d33aa (diff)
parent3988f4c57224e2754c2c0f50465ea8a3bf17ac45 (diff)
Refactor translations for intllibHEADmaster
Diffstat (limited to 'api.lua')
-rw-r--r--api.lua12
1 files changed, 6 insertions, 6 deletions
diff --git a/api.lua b/api.lua
index 2b63922..f6afec5 100644
--- a/api.lua
+++ b/api.lua
@@ -1,5 +1,5 @@
local S = unified_inventory.gettext
-local F = unified_inventory.fgettext
+local F = minetest.formspec_escape
-- Create detached creative inventory after loading all mods
minetest.after(0.01, function()
@@ -233,7 +233,7 @@ end
unified_inventory.register_craft_type("normal", {
- description = F("Crafting"),
+ description = F(S("Crafting")),
icon = "ui_craftgrid_icon.png",
width = 3,
height = 3,
@@ -249,7 +249,7 @@ unified_inventory.register_craft_type("normal", {
unified_inventory.register_craft_type("shapeless", {
- description = F("Mixing"),
+ description = F(S("Mixing")),
icon = "ui_craftgrid_icon.png",
width = 3,
height = 3,
@@ -264,7 +264,7 @@ unified_inventory.register_craft_type("shapeless", {
unified_inventory.register_craft_type("cooking", {
- description = F("Cooking"),
+ description = F(S("Cooking")),
icon = "default_furnace_front.png",
width = 1,
height = 1,
@@ -272,7 +272,7 @@ unified_inventory.register_craft_type("cooking", {
unified_inventory.register_craft_type("digging", {
- description = F("Digging"),
+ description = F(S("Digging")),
icon = "default_tool_steelpick.png",
width = 1,
height = 1,
@@ -303,6 +303,6 @@ end
function unified_inventory.is_creative(playername)
return minetest.check_player_privs(playername, {creative=true})
- or minetest.setting_getbool("creative_mode")
+ or minetest.settings:get_bool("creative_mode")
end