Added localization in EN/FR

This commit is contained in:
Valentin Barat
2024-04-25 01:02:46 +02:00
parent b4103bfc25
commit 0bbf1948bf
12 changed files with 46 additions and 14 deletions

View File

@@ -387,14 +387,14 @@ namespace CS2_SimpleAdmin
if (duration > Config.MaxBanDuration && canPermBan == false)
{
if (validCaller)
caller.PrintToChat($"[Simple Admin] Ban duration cannot exceed {Config.MaxBanDuration} minutes.");
caller.PrintToChat($"{_localizer["sa_prefix"]} {_localizer["sa_ban_max_duration_exceeded", Config.MaxBanDuration]}");
return false;
}
if (duration == 0 && canPermBan == false)
{
if (validCaller)
caller.PrintToChat($"[Simple Admin] You do not have the right to permanently ban.");
caller.PrintToChat($"{_localizer!["sa_prefix"]} {_localizer["sa_ban_perm_restricted"]}");
return false;
}