aboutsummaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authorGabriel Pérez-Cerezo <gabriel@gpcf.eu>2018-05-30 18:53:44 +0200
committerGabriel Pérez-Cerezo <gabriel@gpcf.eu>2018-05-30 18:53:44 +0200
commit25d743b7e702613735fb5aeeaff2e14d50c0eb8e (patch)
tree045849b2ad73168d6e77bb9b95a6cf3859fa2f26 /init.lua
parente463c23587af4b9be3c42583d3713d729d908aca (diff)
parentbb3fd1a928c730c9a99a341ec4aa9969f99c0195 (diff)
downloadcurrency-25d743b7e702613735fb5aeeaff2e14d50c0eb8e.tar.gz
currency-25d743b7e702613735fb5aeeaff2e14d50c0eb8e.tar.bz2
currency-25d743b7e702613735fb5aeeaff2e14d50c0eb8e.zip
Merge branch 'master' of https://github.com/minetest-mods/currency
Also removed 50 MG note, since it doesn't make much sense on my server.
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua22
1 files changed, 13 insertions, 9 deletions
diff --git a/init.lua b/init.lua
index 744fcad..6dbf3a9 100644
--- a/init.lua
+++ b/init.lua
@@ -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