i18n most texts
This commit is contained in:
parent
d1a6c293f2
commit
f8c0f0ce15
7 changed files with 380 additions and 351 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue