summaryrefslogtreecommitdiff
path: root/sfinv.lua
diff options
context:
space:
mode:
authorWuzzy <almikes@aol.com>2016-08-30 11:31:16 +0200
committerrubenwardy <rubenwardy@gmail.com>2016-09-01 16:21:41 +0100
commit67946bf0c4767284fa3d557d5fed6104f7bec904 (patch)
treec89ee205ad7a327459e776a715c3e9e490619cdc /sfinv.lua
parent50349917e55175229abb4ae558d2b027004137c4 (diff)
Improve strings and make them translatable
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,