mirror of
https://github.com/minetest-mods/xban2.git
synced 2024-11-15 21:00:19 +01:00
add i18n with po/pot file method from intllib, add french translation
This commit is contained in:
parent
6738109c15
commit
c7d88fa1bb
13
dbimport.lua
13
dbimport.lua
|
@ -1,3 +1,4 @@
|
|||
local S = xban.intllib
|
||||
|
||||
xban.importers = { }
|
||||
|
||||
|
@ -6,7 +7,7 @@ dofile(xban.MP.."/importers/v1.lua")
|
|||
dofile(xban.MP.."/importers/v2.lua")
|
||||
|
||||
minetest.register_chatcommand("xban_dbi", {
|
||||
description = "Import old databases",
|
||||
description = S("Import old databases"),
|
||||
params = "<importer>",
|
||||
privs = { server=true },
|
||||
func = function(name, params)
|
||||
|
@ -16,23 +17,23 @@ minetest.register_chatcommand("xban_dbi", {
|
|||
table.insert(importers, importer)
|
||||
end
|
||||
minetest.chat_send_player(name,
|
||||
("[xban] Known importers: %s"):format(
|
||||
(S("[xban] Known importers: %s")):format(
|
||||
table.concat(importers, ", ")))
|
||||
return
|
||||
elseif not xban.importers[params] then
|
||||
minetest.chat_send_player(name,
|
||||
("[xban] Unknown importer `%s'"):format(params))
|
||||
minetest.chat_send_player(name, "[xban] Try `--list'")
|
||||
(S("[xban] Unknown importer `%s'")):format(params))
|
||||
minetest.chat_send_player(name, S("[xban] Try `--list'"))
|
||||
return
|
||||
end
|
||||
local f = xban.importers[params]
|
||||
local ok, err = f()
|
||||
if ok then
|
||||
minetest.chat_send_player(name,
|
||||
"[xban] Import successfull")
|
||||
S("[xban] Import successfull"))
|
||||
else
|
||||
minetest.chat_send_player(name,
|
||||
("[xban] Import failed: %s"):format(err))
|
||||
(S("[xban] Import failed: %s")):format(err))
|
||||
end
|
||||
end,
|
||||
})
|
||||
|
|
1
depends.txt
Normal file
1
depends.txt
Normal file
|
@ -0,0 +1 @@
|
|||
intllib?
|
21
gui.lua
21
gui.lua
|
@ -1,3 +1,4 @@
|
|||
local S = xban.intllib
|
||||
|
||||
local FORMNAME = "xban2:main"
|
||||
local MAXLISTSIZE = 100
|
||||
|
@ -37,14 +38,14 @@ end
|
|||
local function get_record_simple(name)
|
||||
local e = xban.find_entry(name)
|
||||
if not e then
|
||||
return nil, ("No entry for `%s'"):format(name)
|
||||
return nil, (S("No entry for `%s'")):format(name)
|
||||
elseif (not e.record) or (#e.record == 0) then
|
||||
return nil, ("`%s' has no ban records"):format(name)
|
||||
return nil, (S("`%s' has no ban records")):format(name)
|
||||
end
|
||||
local record = { }
|
||||
for _, rec in ipairs(e.record) do
|
||||
local msg = (os.date("%Y-%m-%d %H:%M:%S", rec.time).." | "
|
||||
..(rec.reason or "No reason given."))
|
||||
local msg = (os.date(S("%Y-%m-%d %H:%M:%S"), rec.time).." | "
|
||||
..(rec.reason or S("No reason given.")))
|
||||
table.insert(record, msg)
|
||||
end
|
||||
return record, e.record
|
||||
|
@ -61,7 +62,7 @@ local function make_fs(name)
|
|||
"size[16,12]",
|
||||
"label[0,-.1;Filter]",
|
||||
"field[1.5,0;12.8,1;filter;;"..ESC(filter).."]",
|
||||
"button[14,-.3;2,1;search;Search]",
|
||||
"button[14,-.3;2,1;search;"..S("Search").."]",
|
||||
}
|
||||
local fsn = #fs
|
||||
fsn=fsn+1 fs[fsn] = format("textlist[0,.8;4,9.3;player;%s;%d;0]",
|
||||
|
@ -79,8 +80,8 @@ local function make_fs(name)
|
|||
local rec = e[ei]
|
||||
if rec then
|
||||
fsn=fsn+1 fs[fsn] = format("label[0,10.3;%s]",
|
||||
ESC("Source: "..(rec.source or "<none>")
|
||||
.."\nTime: "..os.date("%c", rec.time)
|
||||
ESC(S("Source: ")..(rec.source or "<none>")
|
||||
.."\n"..S("Time: ")..os.date("%c", rec.time)
|
||||
.."\n"..(rec.expires and
|
||||
os.date("%c", rec.expires) or "")),
|
||||
pli)
|
||||
|
@ -90,7 +91,7 @@ local function make_fs(name)
|
|||
fsn=fsn+1 fs[fsn] = "label[0,10.3;"..ESC(e).."]"
|
||||
end
|
||||
else
|
||||
local e = "No entry matches the query."
|
||||
local e = S("No entry matches the query.")
|
||||
fsn=fsn+1 fs[fsn] = "textlist[4.2,.8;11.7,9.3;err;"..ESC(e)..";0]"
|
||||
fsn=fsn+1 fs[fsn] = "label[0,10.3;"..ESC(e).."]"
|
||||
end
|
||||
|
@ -102,7 +103,7 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
|
|||
local name = player:get_player_name()
|
||||
if not minetest.check_player_privs(name, { ban=true }) then
|
||||
minetest.log("warning",
|
||||
"[xban2] Received fields from unauthorized user: "..name)
|
||||
S("[xban2] Received fields from unauthorized user: ")..name)
|
||||
return
|
||||
end
|
||||
local state = get_state(name)
|
||||
|
@ -131,7 +132,7 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
|
|||
end)
|
||||
|
||||
minetest.register_chatcommand("xban_gui", {
|
||||
description = "Show XBan GUI",
|
||||
description = S("Show XBan GUI"),
|
||||
params = "",
|
||||
privs = { ban=true, },
|
||||
func = function(name, params)
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
local S = xban.intllib
|
||||
|
||||
function xban.importers.minetest()
|
||||
local f, e = io.open(minetest.get_worldpath().."/ipban.txt")
|
||||
if not f then
|
||||
return false, "Unable to open `ipban.txt': "..e
|
||||
return false, S("Unable to open `ipban.txt': ")..e
|
||||
end
|
||||
for line in f:lines() do
|
||||
local ip, name = line:match("([^|]+)%|(.+)")
|
||||
|
@ -10,7 +11,7 @@ function xban.importers.minetest()
|
|||
local entry
|
||||
entry = xban.find_entry(ip, true)
|
||||
entry.banned = true
|
||||
entry.reason = "Banned in `ipban.txt'"
|
||||
entry.reason = S("Banned in `ipban.txt'")
|
||||
entry.names[name] = true
|
||||
entry.names[ip] = true
|
||||
entry.time = os.time()
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
local S = xban.intllib
|
||||
|
||||
function xban.importers.v1()
|
||||
local f, e = io.open(minetest.get_worldpath().."/players.iplist")
|
||||
if not f then
|
||||
return false, "Unable to open `players.iplist': "..e
|
||||
return false, S("Unable to open `players.iplist': ")..e
|
||||
end
|
||||
for line in f:lines() do
|
||||
local list = line:split("|")
|
||||
|
@ -15,7 +16,7 @@ function xban.importers.v1()
|
|||
entry.names[name] = true
|
||||
end
|
||||
if banned then
|
||||
entry.reason = "Banned in `players.iplist'"
|
||||
entry.reason = S("Banned in `players.iplist'")
|
||||
entry.time = os.time()
|
||||
entry.expires = nil
|
||||
entry.source = "xban:importer_v1"
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
local S = xban.intllib
|
||||
|
||||
function xban.importers.v2()
|
||||
return pcall(function()
|
||||
local f, e = io.open(minetest.get_worldpath().."/players.iplist.v2")
|
||||
if not f then
|
||||
error("Unable to open `players.iplist.v2': "..e)
|
||||
error(S("Unable to open `players.iplist.v2': ")..e)
|
||||
end
|
||||
local text = f:read("*a")
|
||||
f:close()
|
||||
|
|
96
init.lua
96
init.lua
|
@ -1,6 +1,12 @@
|
|||
|
||||
xban = { MP = minetest.get_modpath(minetest.get_current_modname()) }
|
||||
|
||||
-- Load support for intllib.
|
||||
local MP = minetest.get_modpath(minetest.get_current_modname())
|
||||
local S, NS = dofile(MP.."/intllib.lua")
|
||||
|
||||
xban.intllib = S
|
||||
|
||||
dofile(xban.MP.."/serialize.lua")
|
||||
|
||||
local db = { }
|
||||
|
@ -64,18 +70,18 @@ end
|
|||
function xban.get_info(player) --> ip_name_list, banned, last_record
|
||||
local e = xban.find_entry(player)
|
||||
if not e then
|
||||
return nil, "No such entry"
|
||||
return nil, S("No such entry")
|
||||
end
|
||||
return e.names, e.banned, e.record[#e.record]
|
||||
end
|
||||
|
||||
function xban.ban_player(player, source, expires, reason) --> bool, err
|
||||
if xban.get_whitelist(player) then
|
||||
return nil, "Player is whitelisted; remove from whitelist first"
|
||||
return nil, S("Player is whitelisted; remove from whitelist first")
|
||||
end
|
||||
local e = xban.find_entry(player, true)
|
||||
if e.banned then
|
||||
return nil, "Already banned"
|
||||
return nil, S("Already banned")
|
||||
end
|
||||
local rec = {
|
||||
source = source,
|
||||
|
@ -99,39 +105,39 @@ function xban.ban_player(player, source, expires, reason) --> bool, err
|
|||
e.banned = true
|
||||
local msg
|
||||
local date = (expires and os.date("%c", expires)
|
||||
or "the end of time")
|
||||
or S("the end of time"))
|
||||
if expires then
|
||||
table.insert(tempbans, e)
|
||||
msg = ("Banned: Expires: %s, Reason: %s"):format(date, reason)
|
||||
msg = (S("Banned: Expires: %s, Reason: %s")):format(date, reason)
|
||||
else
|
||||
msg = ("Banned: Reason: %s"):format(reason)
|
||||
msg = (S("Banned: Reason: %s")):format(reason)
|
||||
end
|
||||
for nm in pairs(e.names) do
|
||||
minetest.kick_player(nm, msg)
|
||||
end
|
||||
ACTION("%s bans %s until %s for reason: %s", source, player,
|
||||
ACTION(S("%s bans %s until %s for reason: %s"), source, player,
|
||||
date, reason)
|
||||
ACTION("Banned Names/IPs: %s", table.concat(e.names, ", "))
|
||||
ACTION(S("Banned Names/IPs: %s"), table.concat(e.names, ", "))
|
||||
return true
|
||||
end
|
||||
|
||||
function xban.unban_player(player, source) --> bool, err
|
||||
local e = xban.find_entry(player)
|
||||
if not e then
|
||||
return nil, "No such entry"
|
||||
return nil, S("No such entry")
|
||||
end
|
||||
local rec = {
|
||||
source = source,
|
||||
time = os.time(),
|
||||
reason = "Unbanned",
|
||||
reason = S("Unbanned"),
|
||||
}
|
||||
table.insert(e.record, rec)
|
||||
e.banned = false
|
||||
e.reason = nil
|
||||
e.expires = nil
|
||||
e.time = nil
|
||||
ACTION("%s unbans %s", source, player)
|
||||
ACTION("Unbanned Names/IPs: %s", table.concat(e.names, ", "))
|
||||
ACTION(S("%s unbans %s"), source, player)
|
||||
ACTION(S("Unbanned Names/IPs: %s"), table.concat(e.names, ", "))
|
||||
return true
|
||||
end
|
||||
|
||||
|
@ -160,15 +166,15 @@ end
|
|||
function xban.get_record(player)
|
||||
local e = xban.find_entry(player)
|
||||
if not e then
|
||||
return nil, ("No entry for `%s'"):format(player)
|
||||
return nil, (S("No entry for `%s'")):format(player)
|
||||
elseif (not e.record) or (#e.record == 0) then
|
||||
return nil, ("`%s' has no ban records"):format(player)
|
||||
return nil, (S("`%s' has no ban records")):format(player)
|
||||
end
|
||||
local record = { }
|
||||
for _, rec in ipairs(e.record) do
|
||||
local msg = rec.reason or "No reason given."
|
||||
local msg = rec.reason or S("No reason given.")
|
||||
if rec.expires then
|
||||
msg = msg..(", Expires: %s"):format(os.date("%c", e.expires))
|
||||
msg = msg..(S(", Expires: %s")):format(os.date("%c", e.expires))
|
||||
end
|
||||
if rec.source then
|
||||
msg = msg..", Source: "..rec.source
|
||||
|
@ -177,7 +183,7 @@ function xban.get_record(player)
|
|||
end
|
||||
local last_pos
|
||||
if e.last_pos then
|
||||
last_pos = ("User was last seen at %s"):format(
|
||||
last_pos = (S("User was last seen at %s")):format(
|
||||
minetest.pos_to_string(e.last_pos))
|
||||
end
|
||||
return record, last_pos
|
||||
|
@ -190,8 +196,8 @@ minetest.register_on_prejoinplayer(function(name, ip)
|
|||
if not e then return end
|
||||
if e.banned then
|
||||
local date = (e.expires and os.date("%c", e.expires)
|
||||
or "the end of time")
|
||||
return ("Banned: Expires: %s, Reason: %s"):format(
|
||||
or S("the end of time"))
|
||||
return (S("Banned: Expires: %s, Reason: %s")):format(
|
||||
date, e.reason)
|
||||
end
|
||||
end)
|
||||
|
@ -215,63 +221,63 @@ minetest.register_on_joinplayer(function(player)
|
|||
end)
|
||||
|
||||
minetest.register_chatcommand("xban", {
|
||||
description = "XBan a player",
|
||||
description = S("XBan a player"),
|
||||
params = "<player> <reason>",
|
||||
privs = { ban=true },
|
||||
func = function(name, params)
|
||||
local plname, reason = params:match("(%S+)%s+(.+)")
|
||||
if not (plname and reason) then
|
||||
return false, "Usage: /xban <player> <reason>"
|
||||
return false, S("Usage: /xban <player> <reason>")
|
||||
end
|
||||
local ok, e = xban.ban_player(plname, name, nil, reason)
|
||||
return ok, ok and ("Banned %s."):format(plname) or e
|
||||
return ok, ok and (S("Banned %s.")):format(plname) or e
|
||||
end,
|
||||
})
|
||||
|
||||
minetest.register_chatcommand("xtempban", {
|
||||
description = "XBan a player temporarily",
|
||||
description = S("XBan a player temporarily"),
|
||||
params = "<player> <time> <reason>",
|
||||
privs = { ban=true },
|
||||
func = function(name, params)
|
||||
local plname, time, reason = params:match("(%S+)%s+(%S+)%s+(.+)")
|
||||
if not (plname and time and reason) then
|
||||
return false, "Usage: /xtempban <player> <time> <reason>"
|
||||
return false, S("Usage: /xtempban <player> <time> <reason>")
|
||||
end
|
||||
time = parse_time(time)
|
||||
if time < 60 then
|
||||
return false, "You must ban for at least 60 seconds."
|
||||
return false, S("You must ban for at least 60 seconds.")
|
||||
end
|
||||
local expires = os.time() + time
|
||||
local ok, e = xban.ban_player(plname, name, expires, reason)
|
||||
return ok, (ok and ("Banned %s until %s."):format(
|
||||
return ok, (ok and (S("Banned %s until %s.")):format(
|
||||
plname, os.date("%c", expires)) or e)
|
||||
end,
|
||||
})
|
||||
|
||||
minetest.register_chatcommand("xunban", {
|
||||
description = "XUnBan a player",
|
||||
description = S("XUnBan a player"),
|
||||
params = "<player_or_ip>",
|
||||
privs = { ban=true },
|
||||
func = function(name, params)
|
||||
local plname = params:match("%S+")
|
||||
if not plname then
|
||||
minetest.chat_send_player(name,
|
||||
"Usage: /xunban <player_or_ip>")
|
||||
S("Usage: /xunban <player_or_ip>"))
|
||||
return
|
||||
end
|
||||
local ok, e = xban.unban_player(plname, name)
|
||||
return ok, ok and ("Unbanned %s."):format(plname) or e
|
||||
return ok, ok and (S("Unbanned %s.")):format(plname) or e
|
||||
end,
|
||||
})
|
||||
|
||||
minetest.register_chatcommand("xban_record", {
|
||||
description = "Show the ban records of a player",
|
||||
description = S("Show the ban records of a player"),
|
||||
params = "<player_or_ip>",
|
||||
privs = { ban=true },
|
||||
func = function(name, params)
|
||||
local plname = params:match("%S+")
|
||||
if not plname then
|
||||
return false, "Usage: /xban_record <player_or_ip>"
|
||||
return false, S("Usage: /xban_record <player_or_ip>")
|
||||
end
|
||||
local record, last_pos = xban.get_record(plname)
|
||||
if not record then
|
||||
|
@ -285,30 +291,30 @@ minetest.register_chatcommand("xban_record", {
|
|||
if last_pos then
|
||||
minetest.chat_send_player(name, "[xban] "..last_pos)
|
||||
end
|
||||
return true, "Record listed."
|
||||
return true, S("Record listed.")
|
||||
end,
|
||||
})
|
||||
|
||||
minetest.register_chatcommand("xban_wl", {
|
||||
description = "Manages the whitelist",
|
||||
description = S("Manages the whitelist"),
|
||||
params = "(add|del|get) <name_or_ip>",
|
||||
privs = { ban=true },
|
||||
func = function(name, params)
|
||||
local cmd, plname = params:match("%s*(%S+)%s*(%S+)")
|
||||
if cmd == "add" then
|
||||
xban.add_whitelist(plname, name)
|
||||
ACTION("%s adds %s to whitelist", name, plname)
|
||||
return true, "Added to whitelist: "..plname
|
||||
ACTION(S("%s adds %s to whitelist"), source, plname)
|
||||
return true, S("Added to whitelist: ")..plname
|
||||
elseif cmd == "del" then
|
||||
xban.remove_whitelist(plname)
|
||||
ACTION("%s removes %s to whitelist", name, plname)
|
||||
return true, "Removed from whitelist: "..plname
|
||||
ACTION(S("%s removes %s to whitelist"), source, plname)
|
||||
return true, S("Removed from whitelist: ")..plname
|
||||
elseif cmd == "get" then
|
||||
local e = xban.get_whitelist(plname)
|
||||
if e then
|
||||
return true, "Source: "..(e.source or "Unknown")
|
||||
return true, S("Source: ")..(e.source or S("Unknown"))
|
||||
else
|
||||
return true, "No whitelist for: "..plname
|
||||
return true, S("No whitelist for: ")..plname
|
||||
end
|
||||
end
|
||||
end,
|
||||
|
@ -339,10 +345,10 @@ local function save_db()
|
|||
if f then
|
||||
local ok, err = f:write(xban.serialize(db))
|
||||
if not ok then
|
||||
WARNING("Unable to save database: %s", err)
|
||||
WARNING(S("Unable to save database: %s"), err)
|
||||
end
|
||||
else
|
||||
WARNING("Unable to save database: %s", e)
|
||||
WARNING(S("Unable to save database: %s"), e)
|
||||
end
|
||||
if f then f:close() end
|
||||
return
|
||||
|
@ -351,18 +357,18 @@ end
|
|||
local function load_db()
|
||||
local f, e = io.open(DB_FILENAME, "rt")
|
||||
if not f then
|
||||
WARNING("Unable to load database: %s", e)
|
||||
WARNING(S("Unable to load database: %s"), e)
|
||||
return
|
||||
end
|
||||
local cont = f:read("*a")
|
||||
if not cont then
|
||||
WARNING("Unable to load database: %s", "Read failed")
|
||||
WARNING(S("Unable to load database: %s"), S("Read failed"))
|
||||
return
|
||||
end
|
||||
local t, e2 = minetest.deserialize(cont)
|
||||
if not t then
|
||||
WARNING("Unable to load database: %s",
|
||||
"Deserialization failed: "..(e2 or "unknown error"))
|
||||
WARNING(S("Unable to load database: %s"),
|
||||
S("Deserialization failed :")..(e2 or "unknown error"))
|
||||
return
|
||||
end
|
||||
db = t
|
||||
|
|
45
intllib.lua
Normal file
45
intllib.lua
Normal file
|
@ -0,0 +1,45 @@
|
|||
|
||||
-- Fallback functions for when `intllib` is not installed.
|
||||
-- Code released under Unlicense <http://unlicense.org>.
|
||||
|
||||
-- Get the latest version of this file at:
|
||||
-- https://raw.githubusercontent.com/minetest-mods/intllib/master/lib/intllib.lua
|
||||
|
||||
local function format(str, ...)
|
||||
local args = { ... }
|
||||
local function repl(escape, open, num, close)
|
||||
if escape == "" then
|
||||
local replacement = tostring(args[tonumber(num)])
|
||||
if open == "" then
|
||||
replacement = replacement..close
|
||||
end
|
||||
return replacement
|
||||
else
|
||||
return "@"..open..num..close
|
||||
end
|
||||
end
|
||||
return (str:gsub("(@?)@(%(?)(%d+)(%)?)", repl))
|
||||
end
|
||||
|
||||
local gettext, ngettext
|
||||
if minetest.get_modpath("intllib") then
|
||||
if intllib.make_gettext_pair then
|
||||
-- New method using gettext.
|
||||
gettext, ngettext = intllib.make_gettext_pair()
|
||||
else
|
||||
-- Old method using text files.
|
||||
gettext = intllib.Getter()
|
||||
end
|
||||
end
|
||||
|
||||
-- Fill in missing functions.
|
||||
|
||||
gettext = gettext or function(msgid, ...)
|
||||
return format(msgid, ...)
|
||||
end
|
||||
|
||||
ngettext = ngettext or function(msgid, msgid_plural, n, ...)
|
||||
return format(n==1 and msgid or msgid_plural, ...)
|
||||
end
|
||||
|
||||
return gettext, ngettext
|
271
locale/fr.po
Normal file
271
locale/fr.po
Normal file
|
@ -0,0 +1,271 @@
|
|||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||
# This file is distributed under the same license as the PACKAGE package.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: \n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2017-04-30 07:52+0200\n"
|
||||
"PO-Revision-Date: 2017-04-30 08:12+0200\n"
|
||||
"Language-Team: \n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"X-Generator: Poedit 1.8.12\n"
|
||||
"Last-Translator: fat115 <fat115@framasoft.org>\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
|
||||
"Language: fr_FR\n"
|
||||
|
||||
#: dbimport.lua
|
||||
msgid "Import old databases"
|
||||
msgstr "Importer les anciennes bases de données"
|
||||
|
||||
#: dbimport.lua
|
||||
#, lua-format
|
||||
msgid "[xban] Known importers: %s"
|
||||
msgstr "[xban] Importateurs connus : %s"
|
||||
|
||||
#: dbimport.lua
|
||||
#, lua-format
|
||||
msgid "[xban] Unknown importer `%s'"
|
||||
msgstr "[xban] Importateurs inconnus : %s"
|
||||
|
||||
#: dbimport.lua
|
||||
msgid "[xban] Try `--list'"
|
||||
msgstr "[xban] Essayez `--list'"
|
||||
|
||||
#: dbimport.lua
|
||||
msgid "[xban] Import successfull"
|
||||
msgstr "[xban] Import réussi"
|
||||
|
||||
#: dbimport.lua
|
||||
#, lua-format
|
||||
msgid "[xban] Import failed: %s"
|
||||
msgstr "[xban] Import échoué : %s"
|
||||
|
||||
#: gui.lua init.lua
|
||||
#, lua-format
|
||||
msgid "No entry for `%s'"
|
||||
msgstr "Pas d'entrée pour `%s'"
|
||||
|
||||
#: gui.lua init.lua
|
||||
#, lua-format
|
||||
msgid "`%s' has no ban records"
|
||||
msgstr "`%s' n'a jamais été banni"
|
||||
|
||||
#: gui.lua
|
||||
msgid "%Y-%m-%d %H:%M:%S"
|
||||
msgstr "%d/%m/%Y %H:%M:%S"
|
||||
|
||||
#: gui.lua init.lua
|
||||
msgid "No reason given."
|
||||
msgstr "Aucun motif fourni."
|
||||
|
||||
#: gui.lua
|
||||
msgid "Search"
|
||||
msgstr "Rechercher"
|
||||
|
||||
#: gui.lua init.lua
|
||||
msgid "Source: "
|
||||
msgstr "Source :"
|
||||
|
||||
#: gui.lua
|
||||
msgid "Time: "
|
||||
msgstr "Durée : "
|
||||
|
||||
#: gui.lua
|
||||
msgid "No entry matches the query."
|
||||
msgstr "Aucune entrée ne correspond à cette requête."
|
||||
|
||||
#: gui.lua
|
||||
msgid "[xban2] Received fields from unauthorized user: "
|
||||
msgstr "[xban2] a reçu des champs d'un utilisateur non-autorisé : "
|
||||
|
||||
#: gui.lua
|
||||
msgid "Show XBan GUI"
|
||||
msgstr "Affiche la fenêtre GUI XBan"
|
||||
|
||||
#: importers/minetest.lua
|
||||
msgid "Unable to open `ipban.txt': "
|
||||
msgstr "Impossible d'ouvrir `ipban.txt' : "
|
||||
|
||||
#: importers/minetest.lua
|
||||
msgid "Banned in `ipban.txt'"
|
||||
msgstr "Banni dans `ipban.txt'"
|
||||
|
||||
#: importers/v1.lua
|
||||
msgid "Unable to open `players.iplist': "
|
||||
msgstr "Impossible d'ouvrir `players.iplist' : "
|
||||
|
||||
#: importers/v1.lua
|
||||
msgid "Banned in `players.iplist'"
|
||||
msgstr "Banni dans `players.iplist'"
|
||||
|
||||
#: importers/v2.lua
|
||||
msgid "Unable to open `players.iplist.v2': "
|
||||
msgstr "Impossible d'ouvrir `players.iplist.v2' : "
|
||||
|
||||
#: init.lua
|
||||
msgid "No such entry"
|
||||
msgstr "Pas d'entrée"
|
||||
|
||||
#: init.lua
|
||||
msgid "Player is whitelisted; remove from whitelist first"
|
||||
msgstr "Enlevez d'abord le joueur de la liste blanche"
|
||||
|
||||
#: init.lua
|
||||
msgid "Already banned"
|
||||
msgstr "Déja banni"
|
||||
|
||||
#: init.lua
|
||||
msgid "the end of time"
|
||||
msgstr "la fin des temps"
|
||||
|
||||
#: init.lua
|
||||
#, lua-format
|
||||
msgid "Banned: Expires: %s, Reason: %s"
|
||||
msgstr "Banni : Expiration : %s, Motif : %s"
|
||||
|
||||
#: init.lua
|
||||
#, lua-format
|
||||
msgid "Banned: Reason: %s"
|
||||
msgstr "Banni : Motif : %s"
|
||||
|
||||
#: init.lua
|
||||
#, lua-format
|
||||
msgid "%s bans %s until %s for reason: %s"
|
||||
msgstr "%s a banni %s jusqu'à %s. Motif : %s"
|
||||
|
||||
#: init.lua
|
||||
#, lua-format
|
||||
msgid "Banned Names/IPs: %s"
|
||||
msgstr "Noms/IP bannis : %s"
|
||||
|
||||
#: init.lua
|
||||
msgid "Unbanned"
|
||||
msgstr "Dé-banni"
|
||||
|
||||
#: init.lua
|
||||
#, lua-format
|
||||
msgid "%s unbans %s"
|
||||
msgstr "%s a dé-banni %s"
|
||||
|
||||
#: init.lua
|
||||
#, lua-format
|
||||
msgid "Unbanned Names/IPs: %s"
|
||||
msgstr "Noms/IP dé-bannis : %s"
|
||||
|
||||
#: init.lua
|
||||
#, lua-format
|
||||
msgid ", Expires: %s"
|
||||
msgstr ", Expiration : %s"
|
||||
|
||||
#: init.lua
|
||||
#, lua-format
|
||||
msgid "User was last seen at %s"
|
||||
msgstr "Utilisateur vu pour la dernière fois le %s"
|
||||
|
||||
#: init.lua
|
||||
msgid "XBan a player"
|
||||
msgstr "XBan un joueur"
|
||||
|
||||
#: init.lua
|
||||
msgid "Usage: /xban <player> <reason>"
|
||||
msgstr "Utilisation : /xban <joueur> <motif>"
|
||||
|
||||
#: init.lua
|
||||
#, lua-format
|
||||
msgid "Banned %s."
|
||||
msgstr "%s a été banni"
|
||||
|
||||
#: init.lua
|
||||
msgid "XBan a player temporarily"
|
||||
msgstr "XBan un joueur temporairement"
|
||||
|
||||
#: init.lua
|
||||
msgid "Usage: /xtempban <player> <time> <reason>"
|
||||
msgstr "Utilisation : /xtempban <joueur> <durée> <motif>"
|
||||
|
||||
#: init.lua
|
||||
msgid "You must ban for at least 60 seconds."
|
||||
msgstr "Vous devez bannir pour 60 secondes au minimum"
|
||||
|
||||
#: init.lua
|
||||
#, lua-format
|
||||
msgid "Banned %s until %s."
|
||||
msgstr "%s est banni jusqu'au %s"
|
||||
|
||||
#: init.lua
|
||||
msgid "XUnBan a player"
|
||||
msgstr "XDé-Ban un joueur "
|
||||
|
||||
#: init.lua
|
||||
msgid "Usage: /xunban <player_or_ip>"
|
||||
msgstr "Utilisation : /xunban <joueur_ou_IP>"
|
||||
|
||||
#: init.lua
|
||||
#, lua-format
|
||||
msgid "Unbanned %s."
|
||||
msgstr "%s a été dé-banni."
|
||||
|
||||
#: init.lua
|
||||
msgid "Show the ban records of a player"
|
||||
msgstr "Afficher les bannissements d'un joueur"
|
||||
|
||||
#: init.lua
|
||||
msgid "Usage: /xban_record <player_or_ip>"
|
||||
msgstr "Utilisation : /xban_record <joueur_ou_IP>"
|
||||
|
||||
#: init.lua
|
||||
msgid "Record listed."
|
||||
msgstr "Enregistrement ajouté à la liste."
|
||||
|
||||
#: init.lua
|
||||
msgid "Manages the whitelist"
|
||||
msgstr "Gestion de la liste blanche."
|
||||
|
||||
#: init.lua
|
||||
#, lua-format
|
||||
msgid "%s adds %s to whitelist"
|
||||
msgstr "%s a ajouté %s à la liste blanche"
|
||||
|
||||
#: init.lua
|
||||
msgid "Added to whitelist: "
|
||||
msgstr "Ajouté à la liste blanche : "
|
||||
|
||||
#: init.lua
|
||||
#, lua-format
|
||||
msgid "%s removes %s to whitelist"
|
||||
msgstr "%s a retiré %s de la liste blanche"
|
||||
|
||||
#: init.lua
|
||||
msgid "Removed from whitelist: "
|
||||
msgstr "Retiré de la liste blanche : "
|
||||
|
||||
#: init.lua
|
||||
msgid "Unknown"
|
||||
msgstr "Inconnu"
|
||||
|
||||
#: init.lua
|
||||
msgid "No whitelist for: "
|
||||
msgstr "Pas sur la liste blanche : "
|
||||
|
||||
#: init.lua
|
||||
#, lua-format
|
||||
msgid "Unable to save database: %s"
|
||||
msgstr "Impossible d'enregistrer la base de données : %s"
|
||||
|
||||
#: init.lua
|
||||
#, lua-format
|
||||
msgid "Unable to load database: %s"
|
||||
msgstr "Impossible de lire la base de données : %s"
|
||||
|
||||
#: init.lua
|
||||
msgid "Read failed"
|
||||
msgstr "Lecture impossible"
|
||||
|
||||
#: init.lua
|
||||
msgid "Deserialization failed :"
|
||||
msgstr "Déserialisation impossible :"
|
270
locale/template.pot
Normal file
270
locale/template.pot
Normal file
|
@ -0,0 +1,270 @@
|
|||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||
# This file is distributed under the same license as the PACKAGE package.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||
#
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: PACKAGE VERSION\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2017-04-30 07:42+0200\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
"Language: \n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=CHARSET\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
||||
#: dbimport.lua
|
||||
msgid "Import old databases"
|
||||
msgstr ""
|
||||
|
||||
#: dbimport.lua
|
||||
#, lua-format
|
||||
msgid "[xban] Known importers: %s"
|
||||
msgstr ""
|
||||
|
||||
#: dbimport.lua
|
||||
#, lua-format
|
||||
msgid "[xban] Unknown importer `%s'"
|
||||
msgstr ""
|
||||
|
||||
#: dbimport.lua
|
||||
msgid "[xban] Try `--list'"
|
||||
msgstr ""
|
||||
|
||||
#: dbimport.lua
|
||||
msgid "[xban] Import successfull"
|
||||
msgstr ""
|
||||
|
||||
#: dbimport.lua
|
||||
#, lua-format
|
||||
msgid "[xban] Import failed: %s"
|
||||
msgstr ""
|
||||
|
||||
#: gui.lua init.lua
|
||||
#, lua-format
|
||||
msgid "No entry for `%s'"
|
||||
msgstr ""
|
||||
|
||||
#: gui.lua init.lua
|
||||
#, lua-format
|
||||
msgid "`%s' has no ban records"
|
||||
msgstr ""
|
||||
|
||||
#: gui.lua
|
||||
msgid "%Y-%m-%d %H:%M:%S"
|
||||
msgstr ""
|
||||
|
||||
#: gui.lua init.lua
|
||||
msgid "No reason given."
|
||||
msgstr ""
|
||||
|
||||
#: gui.lua
|
||||
msgid "Search"
|
||||
msgstr ""
|
||||
|
||||
#: gui.lua init.lua
|
||||
msgid "Source: "
|
||||
msgstr ""
|
||||
|
||||
#: gui.lua
|
||||
msgid "Time: "
|
||||
msgstr ""
|
||||
|
||||
#: gui.lua
|
||||
msgid "No entry matches the query."
|
||||
msgstr ""
|
||||
|
||||
#: gui.lua
|
||||
msgid "[xban2] Received fields from unauthorized user: "
|
||||
msgstr ""
|
||||
|
||||
#: gui.lua
|
||||
msgid "Show XBan GUI"
|
||||
msgstr ""
|
||||
|
||||
#: importers/minetest.lua
|
||||
msgid "Unable to open `ipban.txt': "
|
||||
msgstr ""
|
||||
|
||||
#: importers/minetest.lua
|
||||
msgid "Banned in `ipban.txt'"
|
||||
msgstr ""
|
||||
|
||||
#: importers/v1.lua
|
||||
msgid "Unable to open `players.iplist': "
|
||||
msgstr ""
|
||||
|
||||
#: importers/v1.lua
|
||||
msgid "Banned in `players.iplist'"
|
||||
msgstr ""
|
||||
|
||||
#: importers/v2.lua
|
||||
msgid "Unable to open `players.iplist.v2': "
|
||||
msgstr ""
|
||||
|
||||
#: init.lua
|
||||
msgid "No such entry"
|
||||
msgstr ""
|
||||
|
||||
#: init.lua
|
||||
msgid "Player is whitelisted; remove from whitelist first"
|
||||
msgstr ""
|
||||
|
||||
#: init.lua
|
||||
msgid "Already banned"
|
||||
msgstr ""
|
||||
|
||||
#: init.lua
|
||||
msgid "the end of time"
|
||||
msgstr ""
|
||||
|
||||
#: init.lua
|
||||
#, lua-format
|
||||
msgid "Banned: Expires: %s, Reason: %s"
|
||||
msgstr ""
|
||||
|
||||
#: init.lua
|
||||
#, lua-format
|
||||
msgid "Banned: Reason: %s"
|
||||
msgstr ""
|
||||
|
||||
#: init.lua
|
||||
#, lua-format
|
||||
msgid "%s bans %s until %s for reason: %s"
|
||||
msgstr ""
|
||||
|
||||
#: init.lua
|
||||
#, lua-format
|
||||
msgid "Banned Names/IPs: %s"
|
||||
msgstr ""
|
||||
|
||||
#: init.lua
|
||||
msgid "Unbanned"
|
||||
msgstr ""
|
||||
|
||||
#: init.lua
|
||||
#, lua-format
|
||||
msgid "%s unbans %s"
|
||||
msgstr ""
|
||||
|
||||
#: init.lua
|
||||
#, lua-format
|
||||
msgid "Unbanned Names/IPs: %s"
|
||||
msgstr ""
|
||||
|
||||
#: init.lua
|
||||
#, lua-format
|
||||
msgid ", Expires: %s"
|
||||
msgstr ""
|
||||
|
||||
#: init.lua
|
||||
#, lua-format
|
||||
msgid "User was last seen at %s"
|
||||
msgstr ""
|
||||
|
||||
#: init.lua
|
||||
msgid "XBan a player"
|
||||
msgstr ""
|
||||
|
||||
#: init.lua
|
||||
msgid "Usage: /xban <player> <reason>"
|
||||
msgstr ""
|
||||
|
||||
#: init.lua
|
||||
#, lua-format
|
||||
msgid "Banned %s."
|
||||
msgstr ""
|
||||
|
||||
#: init.lua
|
||||
msgid "XBan a player temporarily"
|
||||
msgstr ""
|
||||
|
||||
#: init.lua
|
||||
msgid "Usage: /xtempban <player> <time> <reason>"
|
||||
msgstr ""
|
||||
|
||||
#: init.lua
|
||||
msgid "You must ban for at least 60 seconds."
|
||||
msgstr ""
|
||||
|
||||
#: init.lua
|
||||
#, lua-format
|
||||
msgid "Banned %s until %s."
|
||||
msgstr ""
|
||||
|
||||
#: init.lua
|
||||
msgid "XUnBan a player"
|
||||
msgstr ""
|
||||
|
||||
#: init.lua
|
||||
msgid "Usage: /xunban <player_or_ip>"
|
||||
msgstr ""
|
||||
|
||||
#: init.lua
|
||||
#, lua-format
|
||||
msgid "Unbanned %s."
|
||||
msgstr ""
|
||||
|
||||
#: init.lua
|
||||
msgid "Show the ban records of a player"
|
||||
msgstr ""
|
||||
|
||||
#: init.lua
|
||||
msgid "Usage: /xban_record <player_or_ip>"
|
||||
msgstr ""
|
||||
|
||||
#: init.lua
|
||||
msgid "Record listed."
|
||||
msgstr ""
|
||||
|
||||
#: init.lua
|
||||
msgid "Manages the whitelist"
|
||||
msgstr ""
|
||||
|
||||
#: init.lua
|
||||
#, lua-format
|
||||
msgid "%s adds %s to whitelist"
|
||||
msgstr ""
|
||||
|
||||
#: init.lua
|
||||
msgid "Added to whitelist: "
|
||||
msgstr ""
|
||||
|
||||
#: init.lua
|
||||
#, lua-format
|
||||
msgid "%s removes %s to whitelist"
|
||||
msgstr ""
|
||||
|
||||
#: init.lua
|
||||
msgid "Removed from whitelist: "
|
||||
msgstr ""
|
||||
|
||||
#: init.lua
|
||||
msgid "Unknown"
|
||||
msgstr ""
|
||||
|
||||
#: init.lua
|
||||
msgid "No whitelist for: "
|
||||
msgstr ""
|
||||
|
||||
#: init.lua
|
||||
#, lua-format
|
||||
msgid "Unable to save database: %s"
|
||||
msgstr ""
|
||||
|
||||
#: init.lua
|
||||
#, lua-format
|
||||
msgid "Unable to load database: %s"
|
||||
msgstr ""
|
||||
|
||||
#: init.lua
|
||||
msgid "Read failed"
|
||||
msgstr ""
|
||||
|
||||
#: init.lua
|
||||
msgid "Deserialization failed :"
|
||||
msgstr ""
|
Loading…
Reference in New Issue
Block a user