--- unified_inventory.old/api.lua +++ unified_inventory/api.lua @@ -1,4 +1,4 @@ -local S = minetest.get_translator("unified_inventory") +local S = function (str) return str end local F = minetest.formspec_escape -- Create detached creative inventory after loading all mods --- unified_inventory.old/group.lua +++ unified_inventory/group.lua @@ -1,4 +1,4 @@ -local S = minetest.get_translator("unified_inventory") +local S = function (str) return str end function unified_inventory.canonical_item_spec_matcher(spec) local specname = ItemStack(spec):get_name() --- unified_inventory.old/internal.lua +++ unified_inventory/internal.lua @@ -1,4 +1,4 @@ -local S = minetest.get_translator("unified_inventory") +local S = function (str) return str end local F = minetest.formspec_escape -- This pair of encoding functions is used where variable text must go in --- unified_inventory.old/register.lua +++ unified_inventory/register.lua @@ -1,4 +1,4 @@ -local S = minetest.get_translator("unified_inventory") +local S = function (str) return str end local NS = function(s) return s end local F = minetest.formspec_escape --- unified_inventory.old/waypoints.lua +++ unified_inventory/waypoints.lua @@ -1,4 +1,4 @@ -local S = minetest.get_translator("unified_inventory") +local S = function (str) return str end local F = minetest.formspec_escape local hud_colors = { --- unified_inventory.old/internal.lua +++ unified_inventory/internal.lua @@ -253,10 +253,11 @@ end end end - formspec[n] = "label[8.2,"..ui_peruser.form_header_y..";"..F(S("Page")) .. ": " - .. S("@1 of @2",page,pagemax).."]" + + formspec [n] = "label[8.2," .. ui_peruser.form_header_y +.. ";Page " .. page .. " of " .. pagemax .. "]" end - n= n+1 + n = n+1 if unified_inventory.activefilter[player_name] ~= "" then formspec[n] = "label[8.2,"..(ui_peruser.form_header_y + 0.4)..";" .. F(S("Filter")) .. ":]"