Update some i18n source text

This commit is contained in:
SGKoishi 2022-10-24 12:51:08 -07:00
parent c7a39ec7e4
commit ea9f6b73e0
No known key found for this signature in database
GPG key ID: 8FFC399070653828
2 changed files with 9 additions and 9 deletions

View file

@ -2807,11 +2807,11 @@ namespace TShockAPI
if (args.Silent) if (args.Silent)
{ {
args.Player.SendSuccessMessage(GetString("You spawned {0} {1} time(s).", spawnName, amount)); args.Player.SendSuccessMessage(GetPluralString("You spawned {0} {1} time.", "You spawned {0} {1} times.", amount, spawnName, amount));
} }
else else
{ {
TSPlayer.All.SendSuccessMessage(GetString("{0} spawned {1} {2} time(s).", args.Player.Name, spawnName, amount)); TSPlayer.All.SendSuccessMessage(GetPluralString("{0} spawned {1} {2} time.", "{0} spawned {1} {2} times.", amount, args.Player.Name, spawnName, amount));
} }
} }
@ -2854,11 +2854,11 @@ namespace TShockAPI
TSPlayer.Server.SpawnNPC(npc.netID, npc.FullName, amount, args.Player.TileX, args.Player.TileY, 50, 20); TSPlayer.Server.SpawnNPC(npc.netID, npc.FullName, amount, args.Player.TileX, args.Player.TileY, 50, 20);
if (args.Silent) if (args.Silent)
{ {
args.Player.SendSuccessMessage(GetString("Spawned {0} {1} time(s).", npc.FullName, amount)); args.Player.SendSuccessMessage(GetPluralString("Spawned {0} {1} time.", "Spawned {0} {1} times.", amount, npc.FullName, amount));
} }
else else
{ {
TSPlayer.All.SendSuccessMessage(GetString("{0} has spawned {1} {2} time(s).", args.Player.Name, npc.FullName, amount)); TSPlayer.All.SendSuccessMessage(GetPluralString("{0} has spawned {1} {2} time.", "{0} has spawned {1} {2} times.", amount, args.Player.Name, npc.FullName, amount));
} }
} }
else if (npc.type == 113) else if (npc.type == 113)
@ -3230,7 +3230,7 @@ namespace TShockAPI
} }
else else
{ {
args.Player.SendErrorMessage(GetString("Warp {warpName} already exists.")); args.Player.SendErrorMessage(GetString($"Warp {warpName} already exists."));
} }
} }
else else
@ -3266,9 +3266,9 @@ namespace TShockAPI
if (TShock.Warps.Hide(args.Parameters[1], state)) if (TShock.Warps.Hide(args.Parameters[1], state))
{ {
if (state) if (state)
args.Player.SendSuccessMessage(GetString("Warp {warpName} is now private.")); args.Player.SendSuccessMessage(GetString("Warp {0} is now private.", warpName));
else else
args.Player.SendSuccessMessage(GetString("Warp {warpName} is now public.")); args.Player.SendSuccessMessage(GetString("Warp {0} is now public.", warpName));
} }
else else
args.Player.SendErrorMessage(GetString("Could not find specified warp.")); args.Player.SendErrorMessage(GetString("Could not find specified warp."));
@ -3821,7 +3821,7 @@ namespace TShockAPI
} }
// This returns the localized name to the player, not the item as it was stored. // This returns the localized name to the player, not the item as it was stored.
args.Player.SendSuccessMessage(GetString($"Banned ${items[0].Name}.")); args.Player.SendSuccessMessage(GetString($"Banned {items[0].Name}."));
} }
} }
#endregion #endregion

View file

@ -844,7 +844,7 @@ namespace TShockAPI
} }
} }
return RestResponse(GetPluralString($"{killcount} NPC has been killed.", "{killcount} NPCs have been killed.", killcount)); return RestResponse(GetPluralString("{0} NPC has been killed.", "{0} NPCs have been killed.", killcount, killcount));
} }
[Description("Get information regarding the world.")] [Description("Get information regarding the world.")]