aboutsummaryrefslogtreecommitdiff
path: root/advtrains/l10n.lua
blob: 3eb75c9b80837faf607b0f7dd762387c4212629a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
local S = minetest.get_translator("advtrains")

local function S_nopriv(priv, verb, ...)
	if verb then
		return S(string.format("You are not allowed to %s without the %s privilege.", verb, priv), ...)
	else
		return S("You do not have the @1 privilege.", priv)
	end
end

local mt = {
	__call = function(_, ...)
		return S(...)
	end,
}

attrans = {
	nopriv = S_nopriv,
}
setmetatable(attrans, mt)