Skip to content

Commit 9565b6f

Browse files
author
LAB02 Research
committed
v2023.4.4.0
1 parent 6832cf1 commit 9565b6f

File tree

3 files changed

+20
-13
lines changed

3 files changed

+20
-13
lines changed

src/DeepLClient/DeepLClient.csproj

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<ImplicitUsings>enable</ImplicitUsings>
99
<ApplicationIcon>Resources\icon_white_32.ico</ApplicationIcon>
1010
<Title>DeepL Translator</Title>
11-
<Version>2023.3.27.0</Version>
11+
<Version>2023.4.4.0</Version>
1212
<Authors>LAB02 RESEARCH</Authors>
1313
<Description>Front-end client for DeepL translation services.</Description>
1414
</PropertyGroup>
@@ -19,20 +19,20 @@
1919

2020
<ItemGroup>
2121
<PackageReference Include="ByteSize" Version="2.1.1" />
22-
<PackageReference Include="DeepL.net" Version="1.6.0" />
22+
<PackageReference Include="DeepL.net" Version="1.7.0" />
2323
<PackageReference Include="Microsoft.Web.WebView2" Version="1.0.1661.34" />
2424
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
2525
<PackageReference Include="ruffk.HotkeyListenerCore" Version="1.3.0" />
2626
<PackageReference Include="Serilog" Version="2.12.0" />
2727
<PackageReference Include="Serilog.Sinks.File" Version="5.0.0" />
2828
<PackageReference Include="SmartReader" Version="0.9.2" />
29-
<PackageReference Include="Syncfusion.Core.WinForms" Version="21.1.35" />
30-
<PackageReference Include="Syncfusion.DocIO.WinForms" Version="21.1.35" />
31-
<PackageReference Include="Syncfusion.Licensing" Version="21.1.35" />
32-
<PackageReference Include="Syncfusion.Pdf.WinForms" Version="21.1.35" />
33-
<PackageReference Include="Syncfusion.Presentation.WinForms" Version="21.1.35" />
34-
<PackageReference Include="Syncfusion.Shared.Base" Version="21.1.35" />
35-
<PackageReference Include="Syncfusion.Tools.Windows" Version="21.1.35" />
29+
<PackageReference Include="Syncfusion.Core.WinForms" Version="21.1.38" />
30+
<PackageReference Include="Syncfusion.DocIO.WinForms" Version="21.1.38" />
31+
<PackageReference Include="Syncfusion.Licensing" Version="21.1.38" />
32+
<PackageReference Include="Syncfusion.Pdf.WinForms" Version="21.1.38" />
33+
<PackageReference Include="Syncfusion.Presentation.WinForms" Version="21.1.38" />
34+
<PackageReference Include="Syncfusion.Shared.Base" Version="21.1.38" />
35+
<PackageReference Include="Syncfusion.Tools.Windows" Version="21.1.38" />
3636
</ItemGroup>
3737

3838
<ItemGroup>

src/DeepLClient/Forms/Dialogs/LimitExceeded.Designer.cs

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/DeepLClient/Managers/DeepLManager.cs

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,16 @@ internal static async Task<bool> InitializeAsync()
1717
{
1818
IsInitialised = false;
1919

20-
// load translator
21-
if (Variables.Translator != null) Variables.Translator.Dispose();
22-
Variables.Translator = new Translator(Variables.AppSettings.DeepLAPIKey);
20+
// optionally dispose an old translator
21+
Variables.Translator?.Dispose();
22+
23+
// prepare options
24+
var options = new TranslatorOptions {
25+
appInfo = new AppInfo { AppName = "DeepL Translator by LAB02 Research", AppVersion = Variables.Version }
26+
};
27+
28+
// create translator
29+
Variables.Translator = new Translator(Variables.AppSettings.DeepLAPIKey, options);
2330

2431
// load formalities
2532
if (!Variables.Formalities.Any())

0 commit comments

Comments
 (0)