Skip to content

Commit 9d9def3

Browse files
committed
Fix #60: Hardcoded download status strings
1 parent bbed61e commit 9d9def3

6 files changed

Lines changed: 32 additions & 3 deletions

File tree

src/IntelOrca.OpenLauncher.Core/DownloadService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ namespace IntelOrca.OpenLauncher.Core
88
{
99
public class DownloadService
1010
{
11-
private const string StatusDownloading = "Downloading";
11+
private const string StatusDownloading = "StatusDownloading";
1212

1313
public async Task<string> DownloadFileAsync(Uri uri, IProgress<DownloadProgressReport> progress, CancellationToken ct)
1414
{

src/IntelOrca.OpenLauncher.Core/InstallService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ public async Task DownloadVersion(
111111
IProgress<DownloadProgressReport> progress,
112112
CancellationToken ct)
113113
{
114-
const string StatusExtracting = "Extracting";
114+
const string StatusExtracting = "StatusExtracting";
115115

116116
var tempFile = await downloadService.DownloadFileAsync(uri, progress, ct).ConfigureAwait(false);
117117
try

src/openlauncher/MainWindow.axaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ private async void InstallLatestBuildFromVersionDropdown()
177177
{
178178
Dispatcher.UIThread.Post(() =>
179179
{
180-
downloadButton.Content = report.Status;
180+
downloadButton.Content = StringResources.GetString(report.Status);
181181
if (report.Value is float value)
182182
{
183183
downloadProgress.IsIndeterminate = false;

src/openlauncher/Properties/Resources.Designer.cs

Lines changed: 17 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/openlauncher/Properties/Resources.nl.resx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,4 +72,10 @@
7272
<data name="BuildListing" xml:space="preserve">
7373
<value>{0} ({1} vrijgegeven)</value>
7474
</data>
75+
<data name="StatusDownloading" xml:space="preserve">
76+
<value>Downloaden…</value>
77+
</data>
78+
<data name="StatusExtracting" xml:space="preserve">
79+
<value>Uitpakken…</value>
80+
</data>
7581
</root>

src/openlauncher/Properties/Resources.resx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,4 +72,10 @@
7272
<data name="BuildListing" xml:space="preserve">
7373
<value>{0} (released {1})</value>
7474
</data>
75+
<data name="StatusDownloading" xml:space="preserve">
76+
<value>Downloading…</value>
77+
</data>
78+
<data name="StatusExtracting" xml:space="preserve">
79+
<value>Extracting…</value>
80+
</data>
7581
</root>

0 commit comments

Comments
 (0)