diff options
author | FaceDeer <derksenmobile@gmail.com> | 2017-02-04 23:08:38 -0700 |
---|---|---|
committer | FaceDeer <derksenmobile@gmail.com> | 2017-02-04 23:08:38 -0700 |
commit | c57582e77570a383b6d094cbd26bc350f3233dd7 (patch) | |
tree | a0ab700a9ec952119e3d6cdc0993010f7271f5da /node_axle.lua | |
parent | 7a044ec4e9eb0d178678c57ec92cf2ee1e8b1a3c (diff) |
Internationalization support
What a lot of strings.
Diffstat (limited to 'node_axle.lua')
-rw-r--r-- | node_axle.lua | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/node_axle.lua b/node_axle.lua index 7294fc9..8726ab8 100644 --- a/node_axle.lua +++ b/node_axle.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_node("digtron:axle", { - description = "Digtron Rotation Axle", + description = S("Digtron Rotation Axle"), _doc_items_longdesc = digtron.doc.axle_longdesc, _doc_items_usagehelp = digtron.doc.axle_usagehelp, groups = {cracky = 3, oddly_breakable_by_hand=3, digtron = 1}, @@ -50,7 +54,7 @@ minetest.register_node("digtron:axle", { minetest.get_node_timer(pos):start(digtron.cycle_time*2) else minetest.sound_play("buzzer", {gain=1.0, pos=pos}) - meta:set_string("infotext", "Digtron is obstructed.") + meta:set_string("infotext", S("Digtron is obstructed.")) end end, |