locale: exists -> exist

This commit is contained in:
Luke aka SwissalpS 2024-09-15 00:41:29 +02:00
parent bf9905e238
commit 37e70987d0
3 changed files with 10 additions and 10 deletions

@ -243,8 +243,8 @@ local function handle_command(name, param)
table.concat(own_factions, ", ") table.concat(own_factions, ", ")
) )
elseif not facts[faction_name] then elseif not facts[faction_name] then
return false, S("This faction doesn't exists.")
elseif name ~= factions.get_owner(faction_name) and not minetest.get_player_privs(name)[factions.priv] then elseif name ~= factions.get_owner(faction_name) and not minetest.get_player_privs(name)[factions.priv] then
return false, S("This faction doesn't exist.")
return false, S("Permission denied: You are not the owner of this faction, " .. return false, S("Permission denied: You are not the owner of this faction, " ..
"and don't have the @1 privilege.", factions.priv) "and don't have the @1 privilege.", factions.priv)
elseif not factions.valid_password(faction_name, password) then elseif not factions.valid_password(faction_name, password) then
@ -279,7 +279,7 @@ local function handle_command(name, param)
end end
end end
if facts[faction_name] == nil then if facts[faction_name] == nil then
return false, S("This faction doesn't exists.") return false, S("This faction doesn't exist.")
else else
local fmembers = "" local fmembers = ""
if table.getn(facts[faction_name].members) > factions.max_members_list then if table.getn(facts[faction_name].members) > factions.max_members_list then
@ -303,7 +303,7 @@ local function handle_command(name, param)
end end
local player_factions = factions.get_player_factions(player_name) local player_factions = factions.get_player_factions(player_name)
if not player_factions then if not player_factions then
return false, S("This player doesn't exists or is in no faction") return false, S("This player doesn't exist or is in no faction")
else else
local str_owner = "" local str_owner = ""
local str_member = "" local str_member = ""
@ -373,7 +373,7 @@ local function handle_command(name, param)
faction_name = params[2] faction_name = params[2]
end end
if faction_name == nil then if faction_name == nil then
return false, S("The given faction doesn't exists.") return false, S("The given faction doesn't exist.")
elseif factions.get_owner(faction_name) == name then elseif factions.get_owner(faction_name) == name then
return false, S("You cannot leave your own faction, change owner or disband it.") return false, S("You cannot leave your own faction, change owner or disband it.")
else else

@ -51,13 +51,13 @@ The faction @1 doesn't exist.=La faction @1 nexiste pas.
The faction has more than @1 members, the members list can't be shown.=Cette faction a plus que @1 membres, la liste des membres ne peut pas être affichée. The faction has more than @1 members, the members list can't be shown.=Cette faction a plus que @1 membres, la liste des membres ne peut pas être affichée.
The given faction doesn't exists.=La faction en question nexiste pas. The given faction doesn't exist.=La faction en question nexiste pas.
The player doesn't exist.=Le joueur nexiste pas. The player doesn't exist.=Le joueur nexiste pas.
The player is already in the faction "@1".=Le joueur est déjà dans la faction "@1". The player is already in the faction "@1".=Le joueur est déjà dans la faction "@1".
There are no factions yet.=Il ny a pas encore de factions. There are no factions yet.=Il ny a pas encore de factions.
This faction doesn't exists.=Cette faction nexiste pas. This faction doesn't exist.=Cette faction nexiste pas.
The player name is nil or empty.=Le nom du joueur est nul ou vide. The player name is nil or empty.=Le nom du joueur est nul ou vide.
This player doesn't exists or is in no faction=Ce joueur nexiste pas ou nest dans aucune faction. This player doesn't exist or is in no faction=Ce joueur nexiste pas ou nest dans aucune faction.
This player is not in the specified faction.=Le joueur nest pas dans la faction spécifiée. This player is not in the specified faction.=Le joueur nest pas dans la faction spécifiée.
This player doesn't own any factions.=Ce joueur nest propriétaire daucune faction. This player doesn't own any factions.=Ce joueur nest propriétaire daucune faction.
This player is the owner of the following factions: @1.=Ce joueur nest le propriétaire daucune des factions suivantes : @1. This player is the owner of the following factions: @1.=Ce joueur nest le propriétaire daucune des factions suivantes : @1.

@ -51,13 +51,13 @@ The faction @1 doesn't exist.=
The faction has more than @1 members, the members list can't be shown.= The faction has more than @1 members, the members list can't be shown.=
The given faction doesn't exists.= The given faction doesn't exist.=
The player doesn't exist.= The player doesn't exist.=
The player is already in the faction "@1".= The player is already in the faction "@1".=
There are no factions yet.= There are no factions yet.=
This faction doesn't exists.= This faction doesn't exist.=
The player name is nil or empty.= The player name is nil or empty.=
This player doesn't exists or is in no faction= This player doesn't exist or is in no faction=
This player is not in the specified faction.= This player is not in the specified faction.=
This player doesn't own any factions.= This player doesn't own any factions.=
This player is the owner of the following factions: @1.= This player is the owner of the following factions: @1.=