summaryrefslogtreecommitdiff
path: root/ontime_clocks/nodes.lua
diff options
context:
space:
mode:
authorpyrollo <dev@pyrollo.com>2017-08-26 10:22:54 +0200
committerGitHub <noreply@github.com>2017-08-26 10:22:54 +0200
commitd59c475162da02695a85ebd92a44e53129aa8be3 (patch)
treeb72e4a139bd574119c2d67f93354178557642237 /ontime_clocks/nodes.lua
parente29f085c32caa485ce407b574641bd5f0a492820 (diff)
parent2fef15d878f00c72a799aebc5b8a6bd61489296e (diff)
Merge pull request #6 from fat115/master
add intllib support (i18n)
Diffstat (limited to 'ontime_clocks/nodes.lua')
-rw-r--r--ontime_clocks/nodes.lua14
1 files changed, 8 insertions, 6 deletions
diff --git a/ontime_clocks/nodes.lua b/ontime_clocks/nodes.lua
index 69bf1bc..8055c18 100644
--- a/ontime_clocks/nodes.lua
+++ b/ontime_clocks/nodes.lua
@@ -18,9 +18,11 @@
along with ontime_clocks. If not, see <http://www.gnu.org/licenses/>.
--]]
+local S = ontime_clocks.intllib
+
-- Green digital clock
minetest.register_node("ontime_clocks:green_digital", {
- description = "Green digital clock",
+ description = S("Green digital clock"),
inventory_image = "ontime_clocks_green_digital_inventory.png",
wield_image = "ontime_clocks_green_digital_inventory.png",
paramtype = "light",
@@ -58,7 +60,7 @@ minetest.register_abm({
-- Red digital clock
minetest.register_node("ontime_clocks:red_digital", {
- description = "Red digital clock",
+ description = S("Red digital clock"),
inventory_image = "ontime_clocks_red_digital_inventory.png",
wield_image = "ontime_clocks_red_digital_inventory.png",
paramtype = "light",
@@ -96,7 +98,7 @@ minetest.register_abm({
minetest.register_node("ontime_clocks:white", {
- description = "White clock",
+ description = S("White clock"),
inventory_image = "ontime_clocks_white_inventory.png",
wield_image = "ontime_clocks_white_inventory.png",
paramtype = "light",
@@ -133,7 +135,7 @@ minetest.register_abm({
})
minetest.register_node("ontime_clocks:frameless_black", {
- description = "Frameless clock",
+ description = S("Frameless clock"),
inventory_image = "ontime_clocks_frameless_inventory.png",
wield_image = "ontime_clocks_frameless_inventory.png",
paramtype = "light",
@@ -170,7 +172,7 @@ minetest.register_abm({
})
minetest.register_node("ontime_clocks:frameless_gold", {
- description = "Frameless gold clock",
+ description = S("Frameless gold clock"),
inventory_image = "ontime_clocks_frameless_inventory.png^[colorize:#FF0",
wield_image = "ontime_clocks_frameless_inventory.png^[colorize:#FF0",
paramtype = "light",
@@ -207,7 +209,7 @@ minetest.register_abm({
})
minetest.register_node("ontime_clocks:frameless_white", {
- description = "Frameless white clock",
+ description = S("Frameless white clock"),
inventory_image = "ontime_clocks_frameless_inventory.png^[colorize:#FFF",
wield_image = "ontime_clocks_frameless_inventory.png^[colorize:#FFF",
paramtype = "light",