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.
C# audio-converteravaloniabatch-conversionconvertercsharpdocument-converterdocx-to-pdfdotnetdrag-and-dropfile-conversionfile-converterheic-converterhwphwpximage-converterlinuxmacospdf-convertervideo-converterwindows
Update notices in every UI language, Polish lines for 1.12.0
KnifeLemon91bbd9e6a895
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 5130148e..61fa8798 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -7,7 +7,8 @@ Add a `## <version>` section before tagging a release. Write what someone usingfind it, what it does and doesn't do.Start the section with an `<!-- update -->` block (hidden on GitHub). The app's update notice shows its level and its-one-line summaries in the user's language (`ko`, `en`, `zh`; a line per change, a language may repeat):+one-line summaries in the user's language (`ko`, `en`, `zh`, `pl`; a line per change, a language may repeat; a language+without lines shows the English ones):- `required`: wrong or lost results, security, Filee not starting. The card shows every time Filee starts.- `recommended`: bug fixes. The card shows once per version.@@ -38,6 +39,13 @@ zh: 转换结束后会释放内存,在托盘中占用更少zh: 关闭窗口时可以选择保留在托盘或退出zh: 新增波兰语界面zh: 修复了部分 SVG 无法转换的问题和下拉列表的错误+pl: Konwersja PDF do PowerPointa lub do mniejszego PDF+pl: Zapis każdej klatki wideo jako obrazów+pl: Szybsze kodowanie wideo na karcie graficznej+pl: Filee oddaje pamięć po konwersjach i mniej obciąża zasobnik+pl: Wybór, czy zamknięcie okna zostawia Filee w zasobniku, czy je zamyka+pl: Język polski+pl: Naprawiono niektóre pliki SVG, których nie dało się przekonwertować, i błąd w listach rozwijanych-->### Newdiff --git a/src/Filee.App/Services/ReleaseNotes.cs b/src/Filee.App/Services/ReleaseNotes.csindex edeb0c43..61cd1ff1 100644--- a/src/Filee.App/Services/ReleaseNotes.cs+++ b/src/Filee.App/Services/ReleaseNotes.cs@@ -65,9 +65,8 @@ public static class ReleaseNotes"optional" => UpdateLevel.Optional,_ => UpdateLevel.Recommended,};- else if (key is "ko" or "en" or "zh" or "zh-cn")+ else if (LanguageOf(key) is { } language){- var language = key.StartsWith("zh", StringComparison.Ordinal) ? "zh-CN" : key;if (!summary.TryGetValue(language, out var lines))summary[language] = lines = [];lines.Add(value);@@ -77,6 +76,14 @@ public static class ReleaseNotesreturn new ReleaseNote(version, level, summary.ToDictionary(p => p.Key, p => (IReadOnlyList<string>)p.Value));}+ /// <summary>+ /// The UI language a summary line is for: any language Filee ships ("pl"), with "zh" for Chinese. Null for other+ /// keys, which a newer Filee may know.+ /// </summary>+ private static string? LanguageOf(string key) =>+ key is "zh" ? "zh-CN"+ : LocalizationService.Languages.FirstOrDefault(l => l.Code.Equals(key, StringComparison.OrdinalIgnoreCase)).Code;+/// <summary>The notes of the releases newer than <paramref name="current"/> up to <paramref name="latest"/>, newest first.</summary>public static IReadOnlyList<ReleaseNote> Between(IEnumerable<(string Tag, string? Body)> releases, string current, string latest){diff --git a/tests/Filee.App.Tests/ReleaseNotesTests.cs b/tests/Filee.App.Tests/ReleaseNotesTests.csindex 8c202834..f13bc97a 100644--- a/tests/Filee.App.Tests/ReleaseNotesTests.cs+++ b/tests/Filee.App.Tests/ReleaseNotesTests.cs@@ -36,6 +36,21 @@ public class ReleaseNotesTestsAssert.Equal(["Excel page breaks carry over to PDF"], note.In("ja")); // no Japanese: English}+ [Fact]+ public void Every_language_filee_ships_has_its_lines_and_unknown_ones_are_skipped()+ {+ var note = ReleaseNotes.Parse("1.12.0", """+ <!-- update+ en: Polish translation+ pl: Język polski+ xx: from a newer Filee+ -->+ """);++ Assert.Equal(["Język polski"], note.In("pl"));+ Assert.Equal(["Polish translation"], note.In("xx")); // not a Filee language: English+ }+[Fact]public void Releases_without_the_block_are_recommended_and_say_nothing(){