Skip to content

armgit / Filee

Public Imported from GitHub
0

Free, open-source file converter. Convert 263 formats offline by drag & drop — images, PDF, Word, Excel, PowerPoint, HWP/HWPX, video, audio, e-books and archives. No upload, no Office needed.

i18n: add update.downloading_short for the sidebar button and the tray

adnan-bhaldar46e628615555
diff --git a/src/Filee.App/Services/UpdateTexts.cs b/src/Filee.App/Services/UpdateTexts.cs
index ac23802e..2dc978e1 100644
--- a/src/Filee.App/Services/UpdateTexts.cs
+++ b/src/Filee.App/Services/UpdateTexts.cs
@@ -12,10 +12,13 @@ public static class UpdateTexts
/// <summary>What the update button does, for the notice and tooltips.</summary>
public static string HowKey => UpdateService.IsInstalled ? "update.notice_text" : "update.notice_text_portable";
- /// <summary>Short label for the sidebar button and the tray menu ("Update to 1.4.0", "Downloading… 42%").</summary>
+ /// <summary>
+ /// Short label for the sidebar button and the tray menu ("Update to 1.4.0", "Downloading… 42%"). The download has a
+ /// key of its own, without the article of the full sentence that <see cref="Status"/> shows.
+ /// </summary>
public static string Short(UpdateService updates, ILocalizer loc) => updates.Step switch
{
- UpdateStep.Downloading => loc.Format("update.downloading", updates.DownloadPercent),
+ UpdateStep.Downloading => loc.Format("update.downloading_short", updates.DownloadPercent),
UpdateStep.Installing => loc["update.installing_short"],
_ => updates.LatestVersion is { } latest ? loc.Format("update.sidebar", latest) : "",
};