diff options
author | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2017-05-18 05:38:58 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-18 05:38:58 -0400 |
commit | 1979be782088e44ee5fb62b9f1ebe6d93109f14a (patch) | |
tree | 3020336c54ab1eafbc95e8cdcbdfcc9d1502a029 /init.lua | |
parent | 21f981163e1a7605e6e866cf378b8efd6e0c6de1 (diff) | |
parent | c4adcee072a0ddcc241f67409453c7b540acfcfd (diff) |
Merge pull request #6 from FaceDeer/master
adding intllib and loot mod support
Diffstat (limited to 'init.lua')
-rw-r--r-- | init.lua | 20 |
1 files changed, 12 insertions, 8 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.")
+ 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
|