locale: reuse string for missing name

besides, "nil" is a valid name. This way there is no confusion.
This commit is contained in:
Luke aka SwissalpS 2024-09-15 01:22:41 +02:00
parent c28b0a0b04
commit 44d01cc834
3 changed files with 1 additions and 3 deletions

@ -299,7 +299,7 @@ local function handle_command(name, param)
elseif action == "player_info" then elseif action == "player_info" then
local player_name = params[2] local player_name = params[2]
if not player_name then if not player_name then
return false, S("The player name is nil or empty.") return false, S("Missing player name.")
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

@ -56,7 +56,6 @@ 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.
That faction doesn't exist.=Cette faction nexiste pas. That faction doesn't exist.=Cette faction nexiste pas.
The player name is nil or empty.=Le nom du joueur est nul ou vide.
Player @1 doesn't exist or isn't in any faction.=Le joueur @1 nexiste pas ou nest dans aucune faction. Player @1 doesn't exist or isn't in any faction.=Le joueur @1 nexiste pas ou nest dans aucune faction.
@1 is not in the specified faction.=@1 nest pas dans la faction spécifiée. @1 is not in the specified faction.=@1 nest pas dans la faction spécifiée.
@1 doesn't own any factions.=@1 nest propriétaire daucune faction. @1 doesn't own any factions.=@1 nest propriétaire daucune faction.

@ -56,7 +56,6 @@ 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.=
That faction doesn't exist.= That faction doesn't exist.=
The player name is nil or empty.=
Player @1 doesn't exist or isn't in any faction.= Player @1 doesn't exist or isn't in any faction.=
@1 is not in the specified faction.= @1 is not in the specified faction.=
@1 doesn't own any factions.= @1 doesn't own any factions.=