diff options
Diffstat (limited to 'advtrains/l10n.lua')
-rw-r--r-- | advtrains/l10n.lua | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/advtrains/l10n.lua b/advtrains/l10n.lua new file mode 100644 index 0000000..3eb75c9 --- /dev/null +++ b/advtrains/l10n.lua @@ -0,0 +1,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) |