summaryrefslogtreecommitdiff
path: root/sfinv.lua
diff options
context:
space:
mode:
Diffstat (limited to 'sfinv.lua')
-rw-r--r--sfinv.lua10
1 files changed, 9 insertions, 1 deletions
diff --git a/sfinv.lua b/sfinv.lua
index b2f96c2..7a22221 100644
--- a/sfinv.lua
+++ b/sfinv.lua
@@ -1,6 +1,14 @@
if minetest.get_modpath("sfinv") then
+ local S
+ if (intllib) then
+ dofile(minetest.get_modpath("intllib").."/intllib.lua")
+ S = intllib.Getter(minetest.get_current_modname())
+ else
+ S = function ( s ) return s end
+ end
+
sfinv.register_page("awards:awards", {
- title = "Awards",
+ title = S("Awards"),
on_enter = function(self, player, context)
context.awards_idx = 1
end,