Minor i18n fix with interpolation

The extractor handle the concatenate incorrectly
This commit is contained in:
SGKoishi 2022-10-28 14:01:20 -07:00
parent 80736028df
commit 6c3415d86b
No known key found for this signature in database
GPG key ID: 8FFC399070653828
2 changed files with 8 additions and 5 deletions

View file

@ -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.")
}
);
}