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.

Merge remote-tracking branch 'origin/main' into feature/engines-page-tidy

KnifeLemonba3c7e0651b9
diff --cc src/Filee.App/Assets/i18n/en.json
index 9b60cc5f,8ac0cd5f..ea67de3a
--- a/src/Filee.App/Assets/i18n/en.json
+++ b/src/Filee.App/Assets/i18n/en.json
@@@ -477,10 -473,19 +477,19 @@@ Most conversions still work."
"about.notices": "Third-party notices",
"about.github": "GitHub repository",
"about.support_title": "Help Filee grow",
- "about.support_text": "Filee is free and open source. A star on GitHub, a bug report, a feature idea or a sponsorship all help it get better and reach more people.",
+ "about.support_text": "Filee is free and open source.\nA star on GitHub, a bug report, an idea or a sponsorship all help.",
"about.sponsor": "Sponsor",
+ "sponsor.title": "Sponsor Filee",
+ "sponsor.lead": "Filee is free and stays free. If you'd like to support its development, pick whichever way suits you.",
+ "sponsor.note.github": "Monthly or one-time, by card through GitHub",
+ "sponsor.note.fairy": "Korean cards and easy-pay",
+ "sponsor.note.patreon": "Monthly membership",
+ "sponsor.note.kofi": "A one-time coffee, no account needed",
+ "sponsor.note.paypal": "Any amount with PayPal",
+ "sponsor.thanks": "Thank you to our sponsors",
+ "sponsor.star": "A ⭐ on GitHub costs nothing and helps other people find Filee.",
"feedback.notice_title": "Is Filee helping you?",
- "feedback.notice_text": "A star on GitHub helps other people find Filee. Problems and ideas are welcome too.",
+ "feedback.notice_text": "A star on GitHub helps other people find Filee.\nProblems and ideas are welcome too.",
"feedback.star": "Star on GitHub",
"feedback.issue": "Report a problem or idea",
diff --cc src/Filee.App/Assets/i18n/ko.json
index 62f96691,ff94c6a9..c71e883f
--- a/src/Filee.App/Assets/i18n/ko.json
+++ b/src/Filee.App/Assets/i18n/ko.json
@@@ -476,10 -473,19 +476,19 @@@ Filee는 응용 프로그램 폴더에
"about.notices": "서드파티 고지",
"about.github": "GitHub 저장소",
"about.support_title": "Filee 응원하기",
- "about.support_text": "Filee는 무료 오픈소스예요. GitHub 별, 버그 신고, 기능 제안, 후원 모두 Filee가 나아지고 더 많은 분께 알려지는 데 큰 힘이 돼요.",
+ "about.support_text": "Filee는 무료 오픈소스예요.\nGitHub 별, 버그 신고, 기능 제안, 후원 모두 큰 힘이 돼요.",
"about.sponsor": "후원하기",
+ "sponsor.title": "Filee 후원하기",
+ "sponsor.lead": "Filee는 앞으로도 무료예요. 편한 방법으로 개발을 응원해 주세요.",
+ "sponsor.note.github": "GitHub에서 카드로 매월 또는 한 번",
+ "sponsor.note.fairy": "국내 카드·간편결제",
+ "sponsor.note.patreon": "매월 멤버십",
+ "sponsor.note.kofi": "가입 없이 커피 한 잔",
+ "sponsor.note.paypal": "PayPal로 원하는 금액",
+ "sponsor.thanks": "후원해 주신 분들, 고맙습니다",
+ "sponsor.star": "돈이 들지 않는 GitHub ⭐도 다른 분들이 Filee를 찾는 데 큰 도움이 돼요.",
"feedback.notice_title": "Filee가 도움이 되고 있나요?",
- "feedback.notice_text": "GitHub에 별(⭐)을 남겨 주시면 다른 분들이 Filee를 찾는 데 큰 도움이 돼요. 불편한 점이나 원하는 기능도 알려 주세요.",
+ "feedback.notice_text": "GitHub 별(⭐)은 다른 분들이 Filee를 찾는 데 큰 도움이 돼요.\n불편한 점이나 원하는 기능도 알려 주세요.",
"feedback.star": "GitHub에서 별 주기",
"feedback.issue": "문제 신고 · 기능 제안",
diff --cc src/Filee.App/Assets/i18n/zh-CN.json
index 33067109,e41398ce..8ec41bb7
--- a/src/Filee.App/Assets/i18n/zh-CN.json
+++ b/src/Filee.App/Assets/i18n/zh-CN.json
@@@ -475,10 -473,19 +475,19 @@@
"about.notices": "第三方声明",
"about.github": "GitHub 仓库",
"about.support_title": "支持 Filee",
- "about.support_text": "Filee 免费开源。在 GitHub 上点星、报告错误、提出功能建议或赞助,都能帮助它变得更好、让更多人知道。",
+ "about.support_text": "Filee 免费开源。\n在 GitHub 上点星、报告错误、提出想法或赞助,都是很大的支持。",
"about.sponsor": "赞助",
+ "sponsor.title": "赞助 Filee",
+ "sponsor.lead": "Filee 免费,并将一直免费。想支持开发的话,选一种方便的方式即可。",
+ "sponsor.note.github": "通过 GitHub 用银行卡按月或一次性赞助",
+ "sponsor.note.fairy": "韩国银行卡和快捷支付",
+ "sponsor.note.patreon": "按月会员",
+ "sponsor.note.kofi": "无需注册,请喝一杯咖啡",
+ "sponsor.note.paypal": "用 PayPal 支付任意金额",
+ "sponsor.thanks": "感谢各位赞助者",
+ "sponsor.star": "在 GitHub 点个 ⭐ 不花钱,也能让更多人发现 Filee。",
"feedback.notice_title": "Filee 对你有帮助吗?",
- "feedback.notice_text": "在 GitHub 上点个星(⭐)能帮助更多人发现 Filee。也欢迎反馈问题或提出想法。",
+ "feedback.notice_text": "在 GitHub 上点个星(⭐)能帮助更多人发现 Filee。\n也欢迎反馈问题或提出想法。",
"feedback.star": "在 GitHub 上点星",
"feedback.issue": "报告问题 · 提出建议",
diff --cc tests/Filee.App.Tests/RenderTests.cs
index 1027ec93,26208f47..4a1abc28
--- a/tests/Filee.App.Tests/RenderTests.cs
+++ b/tests/Filee.App.Tests/RenderTests.cs
@@@ -359,21 -359,61 +359,74 @@@ public class RenderTest
Assert.Equal("JPG 3개", vm.CenterTitle);
Save(window, "donut-images-ko.png");
window.Close();
+ }
+
+ [AvaloniaFact]
+ public void LibreOffice_options_window_renders()
+ {
+ TestServices.EnsureInitialized("ko");
+ using var vm = new Filee.App.ViewModels.Pages.EnginesPageViewModel(AppHost.Get<Filee.Core.Settings.UserDataStore>(),
+ AppHost.Get<Filee.Core.Conversion.ConverterCatalog>(), AppHost.Get<Filee.Core.Localization.ILocalizer>(), AppHost.Get<EngineDownloadService>());
+ var window = new Filee.App.Views.LibreOfficeOptionsWindow { DataContext = vm };
+ window.Show();
+ Pump();
+ Save(window, "window-libreoffice-options-ko.png");
+ window.Close();
}
+ [AvaloniaTheory]
+ [InlineData("en")]
+ [InlineData("ko")]
+ public void Sponsor_window_renders(string language)
+ {
+ TestServices.EnsureInitialized(language);
+ var window = Filee.App.Views.SponsorWindow.Create(AppHost.Get<Filee.Core.Localization.ILocalizer>());
+ window.Show();
+ Pump();
+ Save(window, $"window-sponsor-{language}.png");
+ window.Close();
+ }
+
+ [AvaloniaFact]
+ public void Sponsor_window_with_supporters_renders()
+ {
+ TestServices.EnsureInitialized("en");
+ var window = Filee.App.Views.SponsorWindow.Create(AppHost.Get<Filee.Core.Localization.ILocalizer>());
+ var view = window.Supporters;
+ view.Show(new SupporterList(
+ [new Supporter("Acme", "https://acme.example", "acme.png"), new Supporter("Globex", "https://globex.example")],
+ [new("Kim"), new("Lee"), new("Park")]), _ => Logo());
+ window.Show();
+ Pump();
+ Save(window, "window-sponsor-supporters-en.png");
+ window.Close();
+
+ var vm = new MainWindowViewModel(AppHost.Services, AppHost.Get<Filee.Core.Localization.ILocalizer>(), AppHost.Get<UpdateService>());
+ vm.Navigate("about");
+ var main = new MainWindow { DataContext = vm, Width = 1080, Height = 820 };
+ main.Show();
+ Pump();
+ var about = main.GetVisualDescendants().OfType<Filee.App.Views.Pages.AboutPage>().Single();
+ about.Supporters.Show(new SupporterList(
+ [new Supporter("Acme", "https://acme.example", "acme.png"), new Supporter("Globex", "https://globex.example")],
+ [new("Kim"), new("Lee"), new("Park")]), _ => Logo());
+ Pump();
+ Save(main, "page-about-supporters-en.png");
+ main.Close();
+
+ // A stand-in logo: a wide coloured mark like a company's.
+ static Avalonia.Media.Imaging.Bitmap Logo()
+ {
+ var bitmap = new Avalonia.Media.Imaging.RenderTargetBitmap(new Avalonia.PixelSize(120, 32));
+ using (var context = bitmap.CreateDrawingContext())
+ {
+ context.DrawRectangle(new Avalonia.Media.SolidColorBrush(Avalonia.Media.Color.Parse("#3B6FD8")), null, new Avalonia.Rect(0, 4, 24, 24), 6, 6);
+ context.DrawRectangle(new Avalonia.Media.SolidColorBrush(Avalonia.Media.Color.Parse("#7A8699")), null, new Avalonia.Rect(32, 10, 84, 12), 3, 3);
+ }
+ return bitmap;
+ }
+ }
+
[AvaloniaTheory]
[InlineData("en")]
[InlineData("ko")]