summaryrefslogtreecommitdiff
path: root/molehills
diff options
context:
space:
mode:
Diffstat (limited to 'molehills')
-rw-r--r--molehills/depends.txt3
-rw-r--r--molehills/init.lua6
2 files changed, 6 insertions, 3 deletions
diff --git a/molehills/depends.txt b/molehills/depends.txt
index 4e35179..239cddc 100644
--- a/molehills/depends.txt
+++ b/molehills/depends.txt
@@ -1,2 +1,3 @@
default
-biome_lib \ No newline at end of file
+plantlife_i18n
+biome_lib
diff --git a/molehills/init.lua b/molehills/init.lua
index d0a1941..f04dded 100644
--- a/molehills/init.lua
+++ b/molehills/init.lua
@@ -10,6 +10,8 @@ abstract_molehills = {}
dofile(minetest.get_modpath("molehills").."/molehills_settings.txt")
+-- support for i18n
+local S = plantlife_i18n.gettext
-----------------------------------------------------------------------------------------------
-- NoDe
-----------------------------------------------------------------------------------------------
@@ -22,7 +24,7 @@ local mh_cbox = {
minetest.register_node("molehills:molehill",{
drawtype = "mesh",
mesh = "molehill_molehill.obj",
- description = "Mole Hill",
+ description = S("Mole Hill"),
inventory_image = "molehills_side.png",
tiles = { "molehills_dirt.png" },
paramtype = "light",
@@ -74,5 +76,5 @@ biome_lib:register_generate_plant({
)
-----------------------------------------------------------------------------------------------
-print("[Mod] "..title.." ["..version.."] ["..mname.."] Loaded...")
+print("[Mod] "..title.." ["..version.."] ["..mname.."]"..S("Loaded..."))
-----------------------------------------------------------------------------------------------