diff options
author | Wuzzy <almikes@aol.com> | 2016-08-30 11:31:16 +0200 |
---|---|---|
committer | rubenwardy <rubenwardy@gmail.com> | 2016-09-01 16:21:41 +0100 |
commit | 67946bf0c4767284fa3d557d5fed6104f7bec904 (patch) | |
tree | c89ee205ad7a327459e776a715c3e9e490619cdc /sfinv.lua | |
parent | 50349917e55175229abb4ae558d2b027004137c4 (diff) |
Improve strings and make them translatable
Diffstat (limited to 'sfinv.lua')
-rw-r--r-- | sfinv.lua | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -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, |