mirror of
https://github.com/tribufu/ServerManagers
synced 2026-05-06 15:17:34 +00:00
Server manager language will default to the computers language setting on first start, if possible.
Translation file updated
This commit is contained in:
parent
eaefac83cc
commit
d93cdaef0e
8 changed files with 111 additions and 48 deletions
|
|
@ -1,4 +1,16 @@
|
|||
using NLog;
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.Diagnostics;
|
||||
using System.Globalization;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Net;
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows;
|
||||
using NLog;
|
||||
using NLog.Config;
|
||||
using NLog.Targets;
|
||||
using ServerManagerTool.Common;
|
||||
|
|
@ -10,18 +22,6 @@ using ServerManagerTool.Lib;
|
|||
using ServerManagerTool.Plugin.Common;
|
||||
using ServerManagerTool.Utils;
|
||||
using ServerManagerTool.Windows;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Diagnostics;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Net;
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows;
|
||||
using WPFSharp.Globalizer;
|
||||
|
||||
namespace ServerManagerTool
|
||||
|
|
@ -328,8 +328,14 @@ namespace ServerManagerTool
|
|||
_globalizer = GlobalizedApplication.Instance;
|
||||
try
|
||||
{
|
||||
if (!string.IsNullOrWhiteSpace(Config.Default.CultureName))
|
||||
_globalizer.GlobalizationManager.SwitchLanguage(Config.Default.CultureName, true);
|
||||
var langCode = GlobalizationManager.FallBackLanguage;
|
||||
|
||||
if (string.IsNullOrWhiteSpace(Config.Default.DataPath))
|
||||
langCode = CultureInfo.CurrentCulture.Name;
|
||||
else if (!string.IsNullOrWhiteSpace(Config.Default.CultureName))
|
||||
langCode = Config.Default.CultureName;
|
||||
|
||||
_globalizer.GlobalizationManager.SwitchLanguage(langCode, true);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -5,14 +5,14 @@
|
|||
<title>Conan Server Manager Version Feed</title>
|
||||
<subtitle>This is the Conan Server Manager release version feed.</subtitle>
|
||||
<link href="http://servermanagers.freeforums.net/" />
|
||||
<updated>2021-12-23T00:00:00Z</updated>
|
||||
<updated>2022-01-14T00:00:00Z</updated>
|
||||
|
||||
<entry>
|
||||
<id>urn:uuid:189B95FA-8ACA-4E37-9A34-443B6C5E27EE</id>
|
||||
<title>1.1.61 (1.1.61.1)</title>
|
||||
<summary>1.1.61.1</summary>
|
||||
<title>1.1.61 (1.1.61.2)</title>
|
||||
<summary>1.1.61.2</summary>
|
||||
<link href="" />
|
||||
<updated>2022-01-05T00:00:00Z</updated>
|
||||
<updated>2022-01-14T00:00:00Z</updated>
|
||||
<content type="xhtml">
|
||||
<div xmlns="http://www.w3.org/1999/xhtml" style="font-family: Arial, Verdana, Helvetica, Sans-Serif;font-size: .8em;">
|
||||
<p>
|
||||
|
|
@ -20,6 +20,7 @@
|
|||
<br/>
|
||||
<ul>
|
||||
<li>Minor tweaks to the Auto-Update process to prevent intermittent exceptions.</li>
|
||||
<li>Server manager language will default to the computers language setting on first start, if possible.</li>
|
||||
</ul>
|
||||
</p>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -5,7 +5,30 @@
|
|||
<title>Conan Server Manager Version Feed</title>
|
||||
<subtitle>This is the Conan Server Manager beta version feed.</subtitle>
|
||||
<link href="http://servermanagers.freeforums.net/" />
|
||||
<updated>2022-01-05T00:00:00Z</updated>
|
||||
<updated>2022-01-14T00:00:00Z</updated>
|
||||
|
||||
<entry>
|
||||
<id>urn:uuid:16704347-28FE-41BD-9913-465982E6C3C3</id>
|
||||
<title>1.1.61 (1.1.61.2)</title>
|
||||
<summary>1.1.61.2</summary>
|
||||
<link href="" />
|
||||
<updated>2022-01-14T00:00:00Z</updated>
|
||||
<content type="xhtml">
|
||||
<div xmlns="http://www.w3.org/1999/xhtml" style="font-family: Arial, Verdana, Helvetica, Sans-Serif;font-size: .8em;">
|
||||
<p>
|
||||
<u style="font-size: .9em;">CHANGE</u>
|
||||
<br/>
|
||||
<ul>
|
||||
<li>Server manager language will default to the computers language setting on first start, if possible.</li>
|
||||
</ul>
|
||||
</p>
|
||||
</div>
|
||||
</content>
|
||||
<author>
|
||||
<name>bletch</name>
|
||||
<email>bletch1971@hotmail.com</email>
|
||||
</author>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<id>urn:uuid:189B95FA-8ACA-4E37-9A34-443B6C5E27EE</id>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue