summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian <Christian_D_97@gmx.de>2014-04-16 22:18:01 +0200
committerChristian <Christian_D_97@gmx.de>2014-04-16 22:18:01 +0200
commit01d5189998720497578a93c3ca70e97614d210e5 (patch)
tree4efdd7f810ff34edb242d4fe3d877b6792bd4792
parentcb5dfabdf6f0000def1af7217675812a8278cf15 (diff)
parenta106606e71c24651bc692ce83d02b5978ed75c25 (diff)
downloadroads-01d5189998720497578a93c3ca70e97614d210e5.tar
roads-01d5189998720497578a93c3ca70e97614d210e5.tar.gz
roads-01d5189998720497578a93c3ca70e97614d210e5.tar.bz2
roads-01d5189998720497578a93c3ca70e97614d210e5.tar.xz
roads-01d5189998720497578a93c3ca70e97614d210e5.zip
Merge pull request #16 from Xanthin/trafficlight
translation for trafficlight
-rw-r--r--streetsmod/locale/de.txt9
-rw-r--r--streetsmod/locale/template.txt.txt9
-rw-r--r--trafficlight/init.lua8
3 files changed, 22 insertions, 4 deletions
diff --git a/streetsmod/locale/de.txt b/streetsmod/locale/de.txt
index b4aca9b..7da8911 100644
--- a/streetsmod/locale/de.txt
+++ b/streetsmod/locale/de.txt
@@ -47,3 +47,12 @@ Street lamp=Strassenlampe
Concrete wall=Betonwand
Concrete=Beton
Trafficlight=Ampel
+Cheater=Schummler
+Cheater!=Schummler!
+Off=Aus
+Channel=Kanal
+green=Gruen
+red=Rot
+warn=Warnung
+off=Aus
+U cheater U=Du Schummler Du
diff --git a/streetsmod/locale/template.txt.txt b/streetsmod/locale/template.txt.txt
index 095f8fd..7933d98 100644
--- a/streetsmod/locale/template.txt.txt
+++ b/streetsmod/locale/template.txt.txt
@@ -47,3 +47,12 @@ Street lamp=
Concrete wall=
Concrete=
Trafficlight=
+Cheater=
+Cheater!=
+Off=
+Channel=
+green=
+red=
+warn=
+off=
+U cheater U=
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
+})