diff options
author | Xanthin <Xanthin@users.noreply.github.com> | 2014-04-16 19:53:31 +0200 |
---|---|---|
committer | Xanthin <Xanthin@users.noreply.github.com> | 2014-04-16 19:53:31 +0200 |
commit | 0d5c1cc06b07a2382f3268638223a78173d5fcd8 (patch) | |
tree | b041cbc4ed73b4addd997b4a7013a1ef60d17c1f /trafficlight | |
parent | 76f4513c1fbd6cebd987e0e61c5507d35178fd22 (diff) | |
download | roads-0d5c1cc06b07a2382f3268638223a78173d5fcd8.tar roads-0d5c1cc06b07a2382f3268638223a78173d5fcd8.tar.gz roads-0d5c1cc06b07a2382f3268638223a78173d5fcd8.tar.bz2 roads-0d5c1cc06b07a2382f3268638223a78173d5fcd8.tar.xz roads-0d5c1cc06b07a2382f3268638223a78173d5fcd8.zip |
translation for trafficlight
Diffstat (limited to 'trafficlight')
-rw-r--r-- | trafficlight/init.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/trafficlight/init.lua b/trafficlight/init.lua index 4704743..eaa0a79 100644 --- a/trafficlight/init.lua +++ b/trafficlight/init.lua @@ -67,8 +67,8 @@ minetest.register_node(":streets:trafficlight_controller",{ minetest.set_node({x = pos.x, y = pos.y + 2, z = pos.z},{name = "streets:trafficlight_top_off",param2 = minetest.dir_to_facedir(placer:get_look_dir())}) local meta = minetest.get_meta({x = pos.x, y = pos.y - 2, z = pos.z}) meta:set_string("channel","") - meta:set_string("infotext","Off") - meta:set_string("formspec","field[channel;Channel;${channel}]") + meta:set_string("infotext",S("Off")) + meta:set_string("formspec","field[channel;"..S("Channel")..";${channel}]") end, after_dig_node = function(pos) minetest.remove_node({x = pos.x, y = pos.y + 2, z = pos.z}) @@ -85,7 +85,7 @@ minetest.register_node(":streets:trafficlight_controller",{ local meta = minetest.get_meta(pos) local state = meta:get_string("infotext") if msg == "green" or msg == "red" or msg == "warn" or msg == "off" then - meta:set_string("infotext",msg) + meta:set_string("infotext",S(msg)) local facedir = minetest.get_node({x = pos.x, y = pos.y + 4, z = pos.z}).param2 -- Modify <pos> to the top node of the trafficlight pos.y = pos.y + 4 @@ -241,4 +241,4 @@ minetest.register_craft({ {"dye:yellow","",""}, {"dye:green","",""} } -})
\ No newline at end of file +}) |