aboutsummaryrefslogtreecommitdiff
path: root/advtrains/wagons.lua
diff options
context:
space:
mode:
authorY. Wang <yw05@forksworld.de>2023-10-04 22:14:18 +0200
committerY. Wang <yw05@forksworld.de>2023-10-04 22:14:18 +0200
commit8330c3a02426a2481a793f7c6b9206c6c199927c (patch)
tree562ad173fea30cf46ff6cbad83e31df82efbcac7 /advtrains/wagons.lua
parent36999aab78bcfe583bebaadce601f2ddf755ce19 (diff)
downloadadvtrains-8330c3a02426a2481a793f7c6b9206c6c199927c.tar.gz
advtrains-8330c3a02426a2481a793f7c6b9206c6c199927c.tar.bz2
advtrains-8330c3a02426a2481a793f7c6b9206c6c199927c.zip
Fix some translations strings in the source file
Diffstat (limited to 'advtrains/wagons.lua')
-rw-r--r--advtrains/wagons.lua10
1 files changed, 5 insertions, 5 deletions
diff --git a/advtrains/wagons.lua b/advtrains/wagons.lua
index fe1a0f8..e942bce 100644
--- a/advtrains/wagons.lua
+++ b/advtrains/wagons.lua
@@ -689,7 +689,7 @@ function wagon:on_rightclick(clicker)
end
local doors_open = self:train().door_open~=0 or clicker:get_player_control().sneak
- local allow, rsn=false, "Wagon has no seats!"
+ local allow, rsn=false, attrans("This wagon has no seats!")
for _,sgr in ipairs(self.assign_to_seat_group) do
allow, rsn = self:check_seat_group_access(pname, sgr)
if allow then
@@ -700,16 +700,16 @@ function wagon:on_rightclick(clicker)
self:get_on(clicker, seatid)
return
else
- rsn="Wagon is full."
+ rsn=attrans("This wagon is full.")
end
else
- rsn="Doors are closed! (try holding sneak key!)"
+ rsn=attrans("Doors are closed! (Try holding sneak key!)")
end
end
end
end
end
- minetest.chat_send_player(pname, attrans("Can't get on: "..rsn))
+ minetest.chat_send_player(pname, rsn or attrans("You can't get on this wagon!"))
else
self:show_get_on_form(pname)
end
@@ -1247,7 +1247,7 @@ end
function wagon:check_seat_group_access(pname, sgr)
local data = advtrains.wagons[self.id]
if self.seat_groups[sgr].driving_ctrl_access and not (advtrains.check_driving_couple_protection(pname, data.owner, data.whitelist)) then
- return false, "Not allowed to access a driver stand!"
+ return false, attrans("You are not allowed to access the driver stand!")
end
if self.seat_groups[sgr].driving_ctrl_access then
advtrains.log("Drive", pname, self.object:getpos(), self:train().text_outside)