Use i18n for most string.Format if shown in log, console or client side

This commit is contained in:
SGKoishi 2022-10-24 13:28:44 -07:00
parent ea9f6b73e0
commit b766e045b5
No known key found for this signature in database
GPG key ID: 8FFC399070653828
7 changed files with 117 additions and 113 deletions

View file

@ -134,7 +134,7 @@ namespace TShockAPI
if (TShock.Config.Settings.AnnounceSave)
TShock.Utils.Broadcast("World saved.", Color.Yellow);
TShock.Log.Info(string.Format("World saved at ({0})", Main.worldPathName));
TShock.Log.Info(GetString("World saved at ({0})", Main.worldPathName));
}
catch (Exception e)
{
@ -160,7 +160,7 @@ namespace TShockAPI
public override string ToString()
{
return string.Format("resetTime {0}, direct {1}", resetTime, direct);
return GetString("resetTime {0}, direct {1}", resetTime, direct);
}
}
}