summaryrefslogtreecommitdiff
path: root/recipes.lua
diff options
context:
space:
mode:
authorFaceDeer <derksenmobile@gmail.com>2017-02-04 23:08:38 -0700
committerFaceDeer <derksenmobile@gmail.com>2017-02-04 23:08:38 -0700
commitc57582e77570a383b6d094cbd26bc350f3233dd7 (patch)
treea0ab700a9ec952119e3d6cdc0993010f7271f5da /recipes.lua
parent7a044ec4e9eb0d178678c57ec92cf2ee1e8b1a3c (diff)
Internationalization support
What a lot of strings.
Diffstat (limited to 'recipes.lua')
-rw-r--r--recipes.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/recipes.lua b/recipes.lua
index 5df3119..9895971 100644
--- a/recipes.lua
+++ b/recipes.lua
@@ -1,5 +1,9 @@
+-- internationalization boilerplate
+local MP = minetest.get_modpath(minetest.get_current_modname())
+local S, NS = dofile(MP.."/intllib.lua")
+
minetest.register_craftitem("digtron:digtron_core", {
- description = "Digtron Core",
+ description = S("Digtron Core"),
inventory_image = "digtron_core.png",
_doc_items_longdesc = digtron.doc.core_longdesc,
_doc_items_usagehelp = digtron.doc.core_usagehelp,