diff options
author | ywang <yw05@forksworld.de> | 2021-04-23 14:53:09 +0200 |
---|---|---|
committer | Y. Wang <yw05@forksworld.de> | 2024-04-13 10:36:34 +0200 |
commit | 1ce6967ee358d96feaec2405ae59ddd472f9e6cf (patch) | |
tree | 7989d281c10ec2345ed81c63456a01abd22f2534 /advtrains/protection.lua | |
parent | 915cc12bca45dda1914c00f9531808f6ea877c75 (diff) | |
download | advtrains-1ce6967ee358d96feaec2405ae59ddd472f9e6cf.tar.gz advtrains-1ce6967ee358d96feaec2405ae59ddd472f9e6cf.tar.bz2 advtrains-1ce6967ee358d96feaec2405ae59ddd472f9e6cf.zip |
Add strings for translation; add zh_TW translation
Diffstat (limited to 'advtrains/protection.lua')
-rw-r--r-- | advtrains/protection.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/advtrains/protection.lua b/advtrains/protection.lua index 7474977..cca54a9 100644 --- a/advtrains/protection.lua +++ b/advtrains/protection.lua @@ -145,12 +145,12 @@ function advtrains.check_track_protection(pos, pname, near, prot_p) --atdebug("CTP: ",pos,pname,near,prot_p,"priv=",priv,"prot=",prot,"dprot=",dprot) if not priv and (not boo or prot or not dprot) then - minetest.chat_send_player(pname, "You are not allowed to build "..nears.."tracks without track_builder privilege") + minetest.chat_send_player(pname, attrans("You are not allowed to build "..nears.."tracks without the track_builder privilege")) minetest.log("action", pname.." tried to modify terrain "..nears.."track at "..minetest.pos_to_string(apos).." but is not permitted to (no privilege)") return false end if prot then - minetest.chat_send_player(pname, "You are not allowed to build "..nears.."tracks at protected position!") + minetest.chat_send_player(pname, attrans("You are not allowed to build "..nears.."tracks at this protected position")) minetest.record_protection_violation(pos, pname) minetest.log("action", pname.." tried to modify "..nears.."track at "..minetest.pos_to_string(apos).." but position is protected!") return false @@ -181,7 +181,7 @@ function advtrains.check_turnout_signal_protection(pos, pname) nocheck=false return true else - minetest.chat_send_player(pname, "You are not allowed to operate turnouts and signals (missing railway_operator privilege)") + minetest.chat_send_player(pname, attrans("You are not allowed to operate turnouts and signals (missing railway_operator privilege)")) minetest.log("action", pname.." tried to operate turnout/signal at "..minetest.pos_to_string(pos).." but does not have railway_operator") nocheck=false return false |