diff options
author | Gabriel Pérez-Cerezo <gabriel@gpcf.eu> | 2018-05-30 18:53:44 +0200 |
---|---|---|
committer | Gabriel Pérez-Cerezo <gabriel@gpcf.eu> | 2018-05-30 18:53:44 +0200 |
commit | 25d743b7e702613735fb5aeeaff2e14d50c0eb8e (patch) | |
tree | 045849b2ad73168d6e77bb9b95a6cf3859fa2f26 /init.lua | |
parent | e463c23587af4b9be3c42583d3713d729d908aca (diff) | |
parent | bb3fd1a928c730c9a99a341ec4aa9969f99c0195 (diff) |
Merge branch 'master' of https://github.com/minetest-mods/currencyHEADorigin/masterorigin/HEADmaster
Also removed 50 MG note, since it doesn't make much sense on my server.
Diffstat (limited to 'init.lua')
-rw-r--r-- | init.lua | 22 |
1 files changed, 13 insertions, 9 deletions
@@ -1,20 +1,24 @@ -minetest.log("info", " Currency mod loading... ")
local modpath = minetest.get_modpath("currency")
+-- internationalization boilerplate
+local S, NS = dofile(modpath.."/intllib.lua")
+
+minetest.log("info", S("Currency mod loading..."))
+
dofile(modpath.."/craftitems.lua")
-minetest.log("info", "[Currency] Craft_items Loaded!")
+minetest.log("info", "[Currency] "..S("Craft_items Loaded!"))
dofile(modpath.."/shop.lua")
-minetest.log("info", "[Currency] Shop Loaded!")
+minetest.log("info", "[Currency] "..S("Shop Loaded!"))
dofile(modpath.."/barter.lua")
-minetest.log("info", "[Currency] Barter Loaded!")
+minetest.log("info", "[Currency] "..S("Barter Loaded!"))
dofile(modpath.."/safe.lua")
-minetest.log("info", "[Currency] Safe Loaded!")
+minetest.log("info", "[Currency] "..S("Safe Loaded!"))
dofile(modpath.."/crafting.lua")
-minetest.log("info", "[Currency] Crafting Loaded!")
+minetest.log("info", "[Currency] "..S("Crafting Loaded!"))
-if minetest.setting_getbool("creative_mode") then
- minetest.log("info", "[Currency] Creative mode in use, skipping basic income.")
+if minetest.settings:get_bool("creative_mode") then
+ minetest.log("info", "[Currency] "..S("Creative mode in use, skipping basic income."))
else
dofile(modpath.."/income.lua")
- minetest.log("info", "[Currency] Income Loaded!")
+ minetest.log("info", "[Currency] "..S("Income Loaded!"))
end
|