updated portuguese translation

fixed issue with locale when no config present
changed kick color on webfront
aliased owner to iamgod (for b3 familiar users)
hopefully fixed stats issue
added T5M (V2 BO2) support
made dvar grab at beginning minimal to prevent throttling on older CODS
This commit is contained in:
RaidMax
2018-04-26 19:19:42 -05:00
parent b6c979beba
commit 2c2c442ba7
14 changed files with 124 additions and 71 deletions

View File

@ -11,8 +11,8 @@ namespace IW4MAdmin.Application.Localization
{
public static void Initialize()
{
string currentLocale = Program.ServerManager.GetApplicationSettings().Configuration().CustomLocale ??
CultureInfo.CurrentCulture.Name?.Substring(0, 2);
string currentLocale = Program.ServerManager.GetApplicationSettings().Configuration()?.CustomLocale ??
CultureInfo.CurrentCulture?.Name?.Substring(0, 2);
if (currentLocale == null)
throw new Exception("Computer CurrentCulture does not exist");