i18n most texts

This commit is contained in:
SGKoishi 2022-10-24 21:16:28 -07:00
parent d1a6c293f2
commit f8c0f0ce15
No known key found for this signature in database
GPG key ID: 8FFC399070653828
7 changed files with 380 additions and 351 deletions

View file

@ -129,13 +129,13 @@ namespace TShockAPI
{
return update;
}
return null;
}
private void NotifyAdministrators(Dictionary<string, string> update)
{
var changes = update["changes"].Split(new[] {'\n'}, StringSplitOptions.RemoveEmptyEntries);
var changes = update["changes"].Split(new[] { '\n' }, StringSplitOptions.RemoveEmptyEntries);
NotifyAdministrator(TSPlayer.Server, changes);
foreach (TSPlayer player in TShock.Players)
{
@ -148,7 +148,7 @@ namespace TShockAPI
private void NotifyAdministrator(TSPlayer player, string[] changes)
{
player.SendMessage("The server is out of date. Latest version: ", Color.Red);
player.SendMessage(GetString("The server is out of date. Latest version: "), Color.Red);
for (int j = 0; j < changes.Length; j++)
{
player.SendMessage(changes[j], Color.Red);