1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-11 07:40:54 -05:00

more localization

fixed issue with IW4 parser not reading map changes properly
This commit is contained in:
RaidMax
2018-04-24 17:01:27 -05:00
parent 3918985406
commit 5e229b90be
32 changed files with 1186 additions and 772 deletions

View File

@ -1,4 +1,6 @@
using System;
using SharedLibraryCore;
using System;
using System.Collections.Generic;
using System.IO;
namespace IW4MAdmin.Application
@ -28,7 +30,19 @@ namespace IW4MAdmin.Application
void Write(string msg, LogType type)
{
string LogLine = $"[{DateTime.Now.ToString("HH:mm:ss")}] - {type}: {msg}";
string stringType;
try
{
stringType = Utilities.CurrentLocalization.LocalizationSet[$"GLOBAL_{type.ToString().ToUpper()}"];
}
catch(KeyNotFoundException)
{
stringType = type.ToString();
}
string LogLine = $"[{DateTime.Now.ToString("HH:mm:ss")}] - {stringType}: {msg}";
lock (ThreadLock)
{
#if DEBUG