Merge pull request #2765 from sgkoishi/general-devel
Minor i18n fix with interpolation
This commit is contained in:
commit
ddf0844214
2 changed files with 8 additions and 5 deletions
|
|
@ -5341,7 +5341,10 @@ namespace TShockAPI
|
|||
if (ply != null && ply.Active)
|
||||
{
|
||||
if (displayIdsRequested)
|
||||
players.Add(GetString($"{ply.Name} (Index: {ply.Index}{(ply.Account != null ? ", Account ID: " + ply.Account.ID : "")})"));
|
||||
if (ply.Account != null)
|
||||
players.Add(GetString($"{ply.Name} (Index: {ply.Index}, Account ID: {ply.Account.ID})"));
|
||||
else
|
||||
players.Add(GetString($"{ply.Name} (Index: {ply.Index})"));
|
||||
else
|
||||
players.Add(ply.Name);
|
||||
}
|
||||
|
|
@ -5352,7 +5355,7 @@ namespace TShockAPI
|
|||
new PaginationTools.Settings
|
||||
{
|
||||
IncludeHeader = false,
|
||||
FooterFormat = GetString($"Type {Specifier}who {(displayIdsRequested ? "-i" : string.Empty)}{Specifier} for more.")
|
||||
FooterFormat = GetString($"Type {Specifier}who {(displayIdsRequested ? "-i" : string.Empty)} for more.")
|
||||
}
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3189,13 +3189,13 @@ namespace TShockAPI
|
|||
args.Player.IsDisabledForBannedWearable = false;
|
||||
|
||||
|
||||
args.Player.SendMessage(GetString("Authenticated as " + args.Player.Name + " successfully."), Color.LimeGreen);
|
||||
TShock.Log.ConsoleInfo(args.Player.Name + " authenticated successfully as user " + args.Player.Name + ".");
|
||||
args.Player.SendMessage(GetString($"Authenticated as {args.Player.Name} successfully."), Color.LimeGreen);
|
||||
TShock.Log.ConsoleInfo($"{args.Player.Name} authenticated successfully as user {args.Player.Name}.");
|
||||
TShock.UserAccounts.SetUserAccountUUID(account, args.Player.UUID);
|
||||
Hooks.PlayerHooks.OnPlayerPostLogin(args.Player);
|
||||
return true;
|
||||
}
|
||||
args.Player.Kick("Your password did not match this character's password.", true, true);
|
||||
args.Player.Kick(GetString("Your password did not match this character's password."), true, true);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue