Some i18nifiying
This commit is contained in:
parent
39576e3180
commit
f63b26ac76
31 changed files with 538 additions and 455 deletions
|
|
@ -48,9 +48,9 @@ namespace TShockAPI
|
|||
DoBackup(null);
|
||||
DeleteOld(null);
|
||||
});
|
||||
t.Name = "Backup Thread";
|
||||
t.Name = GetString("Backup Thread");
|
||||
t.Start();
|
||||
|
||||
|
||||
// ThreadPool.QueueUserWorkItem(DoBackup);
|
||||
// ThreadPool.QueueUserWorkItem(DeleteOld);
|
||||
}
|
||||
|
|
@ -70,23 +70,23 @@ namespace TShockAPI
|
|||
|
||||
if (TShock.Config.Settings.ShowBackupAutosaveMessages)
|
||||
{
|
||||
TSPlayer.All.SendInfoMessage("Server map saving...");
|
||||
TSPlayer.All.SendInfoMessage(GetString("Server map saving..."));
|
||||
}
|
||||
Console.WriteLine("Backing up world...");
|
||||
Console.WriteLine(GetString("Backing up world..."));
|
||||
|
||||
SaveManager.Instance.SaveWorld();
|
||||
Console.WriteLine("World backed up.");
|
||||
Console.WriteLine(GetString("World backed up."));
|
||||
Console.ForegroundColor = ConsoleColor.Gray;
|
||||
TShock.Log.Info(string.Format("World backed up ({0}).", Main.worldPathName));
|
||||
TShock.Log.Info(GetString("World backed up ({0}).", Main.worldPathName));
|
||||
|
||||
Main.ActiveWorldFileData._path = worldname;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Console.ForegroundColor = ConsoleColor.Red;
|
||||
Console.WriteLine("Backup failed!");
|
||||
Console.WriteLine(GetString("Backup failed!"));
|
||||
Console.ForegroundColor = ConsoleColor.Gray;
|
||||
TShock.Log.Error("Backup failed!");
|
||||
TShock.Log.Error(GetString("Backup failed!"));
|
||||
TShock.Log.Error(ex.ToString());
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue