diff options
author | Y. Wang <yw05@forksworld.de> | 2023-10-04 22:14:18 +0200 |
---|---|---|
committer | Y. Wang <y5nw@protonmail.com> | 2024-11-04 17:17:52 +0100 |
commit | eb0c5b78627505bcba409dc5f52dbb05891954c5 (patch) | |
tree | 1a9dc00e6ce6a7f64cbdd913c5b49099f3abf992 /advtrains_luaautomation/init.lua | |
parent | 425b0993d355b9f45ddd400bd4925f9f1a5bd34d (diff) | |
download | advtrains-eb0c5b78627505bcba409dc5f52dbb05891954c5.tar.gz advtrains-eb0c5b78627505bcba409dc5f52dbb05891954c5.tar.bz2 advtrains-eb0c5b78627505bcba409dc5f52dbb05891954c5.zip |
Various translation improvements
Diffstat (limited to 'advtrains_luaautomation/init.lua')
-rw-r--r-- | advtrains_luaautomation/init.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/advtrains_luaautomation/init.lua b/advtrains_luaautomation/init.lua index c51aa71..b359142 100644 --- a/advtrains_luaautomation/init.lua +++ b/advtrains_luaautomation/init.lua @@ -2,15 +2,15 @@ -- Lua automation features for advtrains -- Uses global table 'atlatc' (AdvTrains_LuaATC) ---TODO: re-add localization (if merging localization, discard this hunk please) -atltrans = function(s,a,...)a={a,...}return s:gsub("@(%d+)",function(n)return a[tonumber(n)]end)end +atltrans = attrans +local S = atltrans --Privilege --Only trusted players should be enabled to build stuff which can break the server. atlatc = { envs = {}} -minetest.register_privilege("atlatc", { description = "Player can place and modify LUA ATC components. Grant with care! Allows to execute bad LUA code.", give_to_singleplayer = false, default= false }) +minetest.register_privilege("atlatc", { description = S("Can place and configure LuaATC components, including execute potentially harmful Lua code"), give_to_singleplayer = false, default= false }) --Size of code input forms in X,Y notation. Must be at least 10x10 atlatc.CODE_FORM_SIZE = "15,12" |