Language file update

This commit is contained in:
Brett Hewitson 2021-12-10 08:37:58 +10:00
parent d108d84d8f
commit 0156b10869
4 changed files with 51 additions and 13 deletions

View file

@ -306,7 +306,7 @@ namespace Plugin.Discord.UnitTests
}
[TestMethod]
public void DiscordPlugin_OpenConfigForm_WithDifferentLanguage()
public void DiscordPlugin_OpenConfigForm_SwitchingLanguages()
{
// Arrange
ServerManagerTool.Plugin.Common.PluginHelper.Instance.SetFetchProfileCallback(FetchProfiles);
@ -331,6 +331,23 @@ namespace Plugin.Discord.UnitTests
Assert.IsTrue(true);
}
[TestMethod]
public void DiscordPlugin_OpenConfigForm_WithDifferentLanguage()
{
// Arrange
ServerManagerTool.Plugin.Common.PluginHelper.Instance.OnResourceDictionaryChanged("pt-BR");
var plugin = new DiscordPlugin();
plugin.BetaEnabled = true;
plugin.Initialize();
// Act
plugin.OpenConfigForm(null);
// Assert
Assert.IsTrue(true);
}
private IList<Profile> FetchProfiles()
{
return new List<Profile>()

View file

@ -118,6 +118,8 @@
<sys:String x:Key="ConfigProfileWindow_TestErrorTitle">Erro no teste</sys:String>
<sys:String x:Key="ConfigProfileWindow_TestErrorLabel">Ocorreu um erro ao tentar testar o perfil de configuração.</sys:String>
<sys:String x:Key="ConfigProfileWindow_TestEnabledErrorLabel">O perfil não está ativado e não pode ser testado.</sys:String>
<sys:String x:Key="ConfigProfileWindow_TestAlertMessage">Testa '{0}' mensagem tipo de alerta para nome do perfil '{1}'</sys:String>
<!--#endregion-->
<!--#region Version Feed Window -->

View file

@ -5,14 +5,14 @@
<title>Discord Plugin Version Feed</title>
<subtitle>This is the Discord Plugin release version feed.</subtitle>
<link href="" />
<updated>2021-12-03T00:00:00Z</updated>
<updated>2021-12-10T00:00:00Z</updated>
<entry>
<id>urn:uuid:A9EC2F32-E026-485F-BD7B-C657DBA95B54</id>
<title>1.0.19 (1.0.19.1)</title>
<summary>1.0.19.1</summary>
<title>1.0.19 (1.0.19.3)</title>
<summary>1.0.19.3</summary>
<link href="" />
<updated>2021-12-09T00:00:00Z</updated>
<updated>2021-12-10T00: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>
@ -21,16 +21,12 @@
<ul>
<li>Fixed alert test message to support globalization.</li>
</ul>
<u style="font-size: .9em;">NEW</u>
<br/>
<ul>
<li>de-DE Translation file updated.</li>
<li>pt-BR Translation file updated.</li>
</ul>
<u style="font-size: .9em;">CHANGE</u>
<br/>
<ul>
<li>Changed the plugin initialization so it throws an exception if unable to load config file, rather than creating a new config file.</li>
<li>de-DE Translation file updated.</li>
<li>pt-BR Translation file updated.</li>
</ul>
</p>
</div>

View file

@ -5,7 +5,30 @@
<title>Discord Plugin Version Feed</title>
<subtitle>This is the Discord Plugin beta version feed.</subtitle>
<link href="" />
<updated>2021-12-09T00:00:00Z</updated>
<updated>2021-12-10T00:00:00Z</updated>
<entry>
<id>urn:uuid:DDB25735-1D20-4580-B5FE-1AD4BD107376</id>
<title>1.0.19 (1.0.19.3)</title>
<summary>1.0.19.3</summary>
<link href="" />
<updated>2021-12-10T00: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>pt-BR Translation file updated.</li>
</ul>
</p>
</div>
</content>
<author>
<name>bletch</name>
<email>bletch1971@hotmail.com</email>
</author>
</entry>
<entry>
<id>urn:uuid:FD4F56C3-9E44-4422-A761-87E7F957454F</id>
@ -44,7 +67,7 @@
<ul>
<li>Fixed alert test message to support globalization.</li>
</ul>
<u style="font-size: .9em;">NEW</u>
<u style="font-size: .9em;">CHANGE</u>
<br/>
<ul>
<li>de-DE Translation file updated.</li>