From 44d01cc834347b4a746fcabc614dcdc610f374cb Mon Sep 17 00:00:00 2001 From: Luke aka SwissalpS Date: Sun, 15 Sep 2024 01:22:41 +0200 Subject: [PATCH] locale: reuse string for missing name besides, "nil" is a valid name. This way there is no confusion. --- init.lua | 2 +- locale/playerfactions.fr.tr | 1 - locale/template.txt | 1 - 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/init.lua b/init.lua index eba8470..b6a387b 100644 --- a/init.lua +++ b/init.lua @@ -299,7 +299,7 @@ local function handle_command(name, param) elseif action == "player_info" then local player_name = params[2] if not player_name then - return false, S("The player name is nil or empty.") + return false, S("Missing player name.") end local player_factions = factions.get_player_factions(player_name) if not player_factions then diff --git a/locale/playerfactions.fr.tr b/locale/playerfactions.fr.tr index a0b8def..5144d5f 100644 --- a/locale/playerfactions.fr.tr +++ b/locale/playerfactions.fr.tr @@ -56,7 +56,6 @@ The player doesn't exist.=Le joueur n’existe pas. The player is already in the faction "@1".=Le joueur est déjà dans la faction "@1". There are no factions yet.=Il n’y a pas encore de factions. That faction doesn't exist.=Cette faction n’existe 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 n’existe pas ou n’est dans aucune faction. @1 is not in the specified faction.=@1 n’est pas dans la faction spécifiée. @1 doesn't own any factions.=@1 n’est propriétaire d’aucune faction. diff --git a/locale/template.txt b/locale/template.txt index e891c78..d24bfad 100644 --- a/locale/template.txt +++ b/locale/template.txt @@ -56,7 +56,6 @@ The player doesn't exist.= The player is already in the faction "@1".= There are no factions yet.= That faction doesn't exist.= -The player name is nil or empty.= Player @1 doesn't exist or isn't in any faction.= @1 is not in the specified faction.= @1 doesn't own any factions.=