aboutsummaryrefslogtreecommitdiff
path: root/advtrains/signals.lua
diff options
context:
space:
mode:
authororwell <orwell@bleipb.de>2024-11-09 21:55:52 +0100
committerorwell <orwell@bleipb.de>2024-11-09 21:55:52 +0100
commit96f4ac7f6c2ff7fae56102640e9e63305ca64b16 (patch)
treeb281c20dc8c2b55875a5c561d8c4dcadb836d53b /advtrains/signals.lua
parent35167fe928e61ecf35c633014972e36c921a1b78 (diff)
parent943505a797e628ef8e447a8fdb362f777b325dec (diff)
downloadadvtrains-96f4ac7f6c2ff7fae56102640e9e63305ca64b16.tar.gz
advtrains-96f4ac7f6c2ff7fae56102640e9e63305ca64b16.tar.bz2
advtrains-96f4ac7f6c2ff7fae56102640e9e63305ca64b16.zip
Merge remote-tracking branch 'origin/l10n'
Diffstat (limited to 'advtrains/signals.lua')
-rw-r--r--advtrains/signals.lua13
1 files changed, 9 insertions, 4 deletions
diff --git a/advtrains/signals.lua b/advtrains/signals.lua
index b26c950..c03afbf 100644
--- a/advtrains/signals.lua
+++ b/advtrains/signals.lua
@@ -60,7 +60,7 @@ for r,f in pairs({on={as="off", ls="green", als="red"}, off={as="on", ls="red",
tiles = {"advtrains_retrosignal.png"},
inventory_image="advtrains_retrosignal_inv.png",
drop="advtrains:retrosignal_off",
- description=attrans("Lampless Signal (@1)", attrans(r..rotation)),
+ description=attrans("Lampless Signal"),
sunlight_propagates=true,
groups = {
cracky=3,
@@ -124,7 +124,7 @@ for r,f in pairs({on={as="off", ls="green", als="red"}, off={as="on", ls="red",
tiles = {"advtrains_signal_"..r..".png"},
inventory_image="advtrains_signal_inv.png",
drop="advtrains:signal_off",
- description=attrans("Signal (@1)", attrans(r..rotation)),
+ description=attrans("Signal"),
groups = {
cracky=3,
not_blocking_trains=1,
@@ -187,6 +187,11 @@ for r,f in pairs({on={as="off", ls="green", als="red"}, off={as="on", ls="red",
if r=="off" then crea=0 end
--tunnel signals. no rotations.
+ local swdesc = { -- needed for xgettext
+ l = attrans("Wallmounted Signal (left)"),
+ r = attrans("Wallmounted Signal (right)"),
+ t = attrans("Wallmounted Signal (top)"),
+ }
for loc, sbox in pairs({l={-1/2, -1/2, -1/4, 0, 1/2, 1/4}, r={0, -1/2, -1/4, 1/2, 1/2, 1/4}, t={-1/2, 0, -1/4, 1/2, 1/2, 1/4}}) do
minetest.register_node("advtrains:signal_wall_"..loc.."_"..r, {
drawtype = "mesh",
@@ -200,7 +205,7 @@ for r,f in pairs({on={as="off", ls="green", als="red"}, off={as="on", ls="red",
mesh = "advtrains_signal_wall_"..loc..".b3d",
tiles = {"advtrains_signal_wall_"..r..".png"},
drop="advtrains:signal_wall_"..loc.."_off",
- description=attrans("Wallmounted Signal ("..loc..")"),
+ description=swdesc[loc],
groups = {
cracky=3,
not_blocking_trains=1,
@@ -314,7 +319,7 @@ minetest.register_node("advtrains:across_on", {
mesh = "advtrains_across.obj",
tiles = {{name="advtrains_across_anim.png", animation={type="vertical_frames", aspect_w=64, aspect_h=64, length=1.0}}},
drop="advtrains:across_off",
- description=attrans("Andrew's Cross (on) (you hacker you)"),
+ description=attrans("Andrew's Cross"),
groups = {
cracky=3,
not_blocking_trains=1,