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.

Polish Japanese wording, font fallbacks and installer texts

KnifeLemoncfc6e7a8a515
diff --git a/build/tools/make-installer-engines.cs b/build/tools/make-installer-engines.cs
index 2c1379ce..4afbc11e 100644
--- a/build/tools/make-installer-engines.cs
+++ b/build/tools/make-installer-engines.cs
@@ -22,7 +22,7 @@ while (!File.Exists(Path.Combine(repo, "Filee.slnx")))
repo = Path.GetDirectoryName(repo) ?? throw new InvalidOperationException("Run this from inside the Filee repository.");
// [Languages] names in installer/Filee.iss → the app's translation files.
-(string Inno, string App)[] languages = [("en", "en"), ("ko", "ko"), ("zhcn", "zh-CN")];
+(string Inno, string App)[] languages = [("en", "en"), ("ko", "ko"), ("zhcn", "zh-CN"), ("ja", "ja")];
var texts = languages.ToDictionary(l => l.Inno, l => Load(Path.Combine(repo, "src", "Filee.App", "Assets", "i18n", l.App + ".json")));
// The file is included in the middle of [Code], where a ";" line would be Pascal: open a section first.
diff --git a/installer/Filee.iss b/installer/Filee.iss
index 45426a0f..473aa0d9 100644
--- a/installer/Filee.iss
+++ b/installer/Filee.iss
@@ -73,36 +73,46 @@ SetupLogging=yes
Name: "en"; MessagesFile: "compiler:Default.isl"
Name: "ko"; MessagesFile: "compiler:Languages\Korean.isl"
Name: "zhcn"; MessagesFile: "compiler:Languages\ChineseSimplified.isl"
+Name: "ja"; MessagesFile: "compiler:Languages\Japanese.isl"
; Texts shared with the app (engine names, the two options of the General page) are generated into obj\engines.iss.
[CustomMessages]
en.GroupOptions=Options:
ko.GroupOptions=옵션:
zhcn.GroupOptions=选项:
+ja.GroupOptions=オプション:
en.TaskModernMenu=Also show it at the top of the Windows 11 menu, not only under “Show more options”
ko.TaskModernMenu=Windows 11 기본 메뉴에도 표시 (“추가 옵션 표시”를 누르지 않아도 보여요)
zhcn.TaskModernMenu=也显示在 Windows 11 主菜单中,而不仅是“显示更多选项”里
+ja.TaskModernMenu=「その他のオプションを確認」の中だけでなく、Windows 11のメニューの最上部にも表示する
en.StatusRemovingOld=Removing the previous version (settings and engines are kept)...
ko.StatusRemovingOld=이전 버전을 정리하는 중 (설정과 엔진은 그대로 둬요)...
zhcn.StatusRemovingOld=正在移除旧版本(保留设置和引擎)...
+ja.StatusRemovingOld=以前のバージョンを削除しています(設定とエンジンは保持されます)...
en.StatusExplorerMenu=Adding Filee to the File Explorer menu...
ko.StatusExplorerMenu=탐색기 메뉴에 Filee를 추가하는 중...
zhcn.StatusExplorerMenu=正在将 Filee 添加到资源管理器菜单...
+ja.StatusExplorerMenu=エクスプローラーのメニューにFileeを追加しています...
en.ExplorerMenuFailed=Windows did not add Filee to the top of the File Explorer menu:%n%n%1%n%nFilee still appears under “Show more options”. You can try again in Filee under Settings → General.
ko.ExplorerMenuFailed=Windows가 탐색기 기본 메뉴에 Filee를 추가하지 못했어요:%n%n%1%n%nFilee는 “추가 옵션 표시” 안에는 계속 나타나요. Filee의 설정 → 일반에서 다시 시도할 수 있어요.
zhcn.ExplorerMenuFailed=Windows 未能将 Filee 添加到资源管理器主菜单:%n%n%1%n%nFilee 仍会出现在“显示更多选项”中。你可以在 Filee 的 设置 → 常规 中重试。
+ja.ExplorerMenuFailed=WindowsがエクスプローラーのメニューのトップにFileeを追加できませんでした:%n%n%1%n%nFileeは引き続き「その他のオプションを確認」の中に表示されます。Fileeの「設定」→「一般」から再試行できます。
en.ReadyEngines=Conversion engines (Filee downloads them when it starts):
ko.ReadyEngines=변환 엔진 (Filee가 시작하면서 내려받아요):
zhcn.ReadyEngines=转换引擎(Filee 启动后下载):
+ja.ReadyEngines=変換エンジン(Fileeの起動時にダウンロードされます):
en.FinishedRunning=Filee is installed and running in the notification area of the taskbar.%n%nTo convert files, drag them while holding the trigger key, or right-click them in File Explorer.
ko.FinishedRunning=Filee가 설치되어 작업 표시줄 알림 영역에서 실행 중이에요.%n%n파일을 변환하려면 지정한 키를 누른 채 파일을 끌거나, 탐색기에서 파일을 우클릭하세요.
zhcn.FinishedRunning=Filee 已安装,正在任务栏通知区域运行。%n%n要转换文件,请按住触发键拖动文件,或在资源管理器中右键单击文件。
+ja.FinishedRunning=Fileeがインストールされ、タスクバーの通知領域で実行中です。%n%nファイルを変換するには、設定したキーを押しながらファイルをドラッグするか、エクスプローラーでファイルを右クリックしてください。
en.TaskCli=Add the "filee" command to PATH (convert from the command line)
ko.TaskCli="filee" 명령어를 PATH에 추가 (명령줄에서 변환)
zhcn.TaskCli=将 "filee" 命令添加到 PATH(在命令行中转换)
+ja.TaskCli=「filee」コマンドをPATHに追加する(コマンドラインから変換)
en.FinishedEngines=The conversion engines you picked are downloading in the Filee window.
ko.FinishedEngines=선택한 변환 엔진은 Filee 창에서 내려받고 있어요.
zhcn.FinishedEngines=你选择的转换引擎正在 Filee 窗口中下载。
+ja.FinishedEngines=選択した変換エンジンは、Fileeのウィンドウでダウンロード中です。
[Tasks]
Name: "contextmenu"; Description: "{cm:TaskContextMenu}"; GroupDescription: "{cm:GroupOptions}"; Check: IsFreshInstall
diff --git a/src/Filee.App/Assets/i18n/en.json b/src/Filee.App/Assets/i18n/en.json
index 976f4200..a3f55941 100644
--- a/src/Filee.App/Assets/i18n/en.json
+++ b/src/Filee.App/Assets/i18n/en.json
@@ -621,6 +621,8 @@
"common.delete": "Delete",
"common.yes": "Yes",
"common.no": "No",
+ "common.on": "On",
+ "common.off": "Off",
"setup.title": "Choose conversion engines",
"setup.description": "Images, PDF, Office documents, HWP, e-books, archives, fonts, CAD and 3D models already convert.\nDownload engines only for video and audio or rare formats.",
diff --git a/src/Filee.App/Assets/i18n/es.json b/src/Filee.App/Assets/i18n/es.json
index a90d3ef4..7f2fc713 100644
--- a/src/Filee.App/Assets/i18n/es.json
+++ b/src/Filee.App/Assets/i18n/es.json
@@ -603,6 +603,8 @@
"common.delete": "Eliminar",
"common.yes": "Sí",
"common.no": "No",
+ "common.on": "Activado",
+ "common.off": "Desactivado",
"setup.title": "Elige motores de conversión",
"setup.description": "Imágenes, PDF, documentos de Office, HWP, libros electrónicos, archivos comprimidos, tipografías, CAD y modelos 3D ya se convierten.\nDescarga motores solo para vídeo y audio o formatos poco habituales.",
"setup.note": "Puedes instalar o quitar motores en cualquier momento en Ajustes → Motores.",
diff --git a/src/Filee.App/Assets/i18n/hi.json b/src/Filee.App/Assets/i18n/hi.json
index d3375df6..049ed77a 100644
--- a/src/Filee.App/Assets/i18n/hi.json
+++ b/src/Filee.App/Assets/i18n/hi.json
@@ -603,6 +603,8 @@
"common.delete": "हटाएँ",
"common.yes": "हाँ",
"common.no": "नहीं",
+ "common.on": "चालू",
+ "common.off": "बंद",
"setup.title": "कन्वर्ज़न इंजन चुनें",
"setup.description": "इमेज, PDF, Office दस्तावेज़, HWP, ई-बुक, आर्काइव, फ़ॉन्ट, CAD और 3D मॉडल पहले से कन्वर्ट होते हैं।\nइंजन केवल वीडियो और ऑडियो या दुर्लभ फ़ॉर्मैट के लिए डाउनलोड करें।",
"setup.note": "आप कभी भी सेटिंग्स → इंजन में इंजन इंस्टॉल या हटा सकते हैं।",
diff --git a/src/Filee.App/Assets/i18n/ja.json b/src/Filee.App/Assets/i18n/ja.json
index a23f2928..b018c32f 100644
--- a/src/Filee.App/Assets/i18n/ja.json
+++ b/src/Filee.App/Assets/i18n/ja.json
@@ -1,6 +1,6 @@
{
"app.name": "Filee",
- "app.tagline": "ドラッグ。ドロップ。変換完了。",
+ "app.tagline": "ドラッグ。ドロップ。\n変換完了。",
"nav.home": "ホーム",
"nav.general": "一般",
"nav.triggers": "ショートカット",
@@ -45,7 +45,7 @@
"donut.files_mixed": "{0}個のファイル",
"donut.drop_to": "ドロップ → {0}",
"donut.pick_in_group": "外側に動かして選択",
- "donut.group_empty": "このグループにプリセットがありません。「設定」→「ドーナツメニュー」で編集できます。",
+ "donut.group_empty": "このグループにプリセットがありません。「設定」→「ドーナツメニュー」で編集できます",
"donut.click_to": "クリック → {0}",
"donut.cancel": "ここにドロップしてキャンセル",
"donut.close_hint": "Escキーで閉じる",
@@ -58,27 +58,27 @@
"toast.done_errors": "{1}件中{0}件失敗",
"toast.failed": "変換に失敗しました",
"toast.cancelled": "キャンセルしました",
- "toast.skipped": "スキップしました(ファイルが存在します)",
+ "toast.skipped": "スキップしました(同名のファイルがあります)",
"toast.open_folder": "表示",
"toast.cancel": "キャンセル",
"error.unsupported_source": "このファイル形式には対応していません",
- "error.empty_file": "ファイルが空です(0バイト)。右クリックメニューの「新規作成」で作ったファイルは、対応アプリで開いて保存するまで空のままです。",
+ "error.empty_file": "ファイルが空です(0バイト)。右クリックメニューの「新規作成」で作ったファイルは、対応アプリで開いて保存するまで空のままです",
"format_request.request": "この形式への対応をリクエスト",
"format_request.notice_title": "Fileeはまだ{0}ファイルを変換できません",
"format_request.notice_text": "必要な形式を教えてください。\nリクエストをもとに、今後Fileeが対応する形式を決めます。\n暗号化またはコピー保護(DRM)されたファイルは、形式にかかわらず変換できません。",
"error.no_route": "この変換に対応するエンジンがありません",
"error.cannot_turn": "回転と反転は画像でのみ使えます",
- "error.too_many_frames": "画像として保存するフレーム数が多すぎます。「Nフレームごと」の値を大きくしてください。",
+ "error.too_many_frames": "画像として保存するフレーム数が多すぎます。「Nフレームごと」の値を大きくしてください",
"error.not_enough_space": "画像を保存するための空き容量が不足しています",
- "error.rhwp_timeout": "rhwpでは長い文書を時間内に処理できませんでした。",
- "error.rhwp_timeout_calibre": "rhwpでは長い文書を時間内に処理できませんでした。電子書籍の場合は、「設定」→「変換エンジン」でCalibreを「HWPX writer」より上に移動してください。Calibreを使うとPDFへの変換が大幅に速くなります。",
+ "error.rhwp_timeout": "文書が長いため、rhwpが制限時間内に処理を終えられませんでした",
+ "error.rhwp_timeout_calibre": "文書が長いため、rhwpが制限時間内に処理を終えられませんでした。電子書籍の場合は、「設定」→「変換エンジン」でCalibreを「HWPX writer」より上に移動してください。CalibreならPDFを大幅に速く作成できます",
"error.needs_shaping": "この文字体系の文書を正しく変換するにはLibreOfficeが必要です。「設定」→「変換エンジン」でインストールしてください",
"error.conversion_failed": "変換エンジンからエラーが報告されました",
"notice.pdf_not_smaller": "サイズを小さくできなかったため、元のままコピーしました",
"engine.reason.not_installed": "未インストール",
"engine.reason.error": "確認中にエラーが発生しました",
"engine.reason.unsupported_platform": "このプラットフォームでは利用できません",
- "engine.reason.needs_package": "{0}が必要です。「設定」→「変換エンジン」からインストールしてください。",
+ "engine.reason.needs_package": "{0}が必要です。「設定」→「変換エンジン」でインストールしてください",
"engine.magick.description": "JPG、PNG、WEBP、AVIF、HEIC、TIFF、GIF、APNG、PSD、カメラRAWなどに対応します。\n品質、サイズ、DPIはプリセットの設定に従います。",
"engine.wic.description": "Windows標準のコーデックを使い、WindowsのHDRスクリーンショットなどのJPEG XR画像(.jxr、.wdp、.hdp)をPNG、JPGなどに変換します。\nHDR画像はトーンマッピングされ、明るい部分のディテールが保たれます。",
"engine.pdfium.description": "PDFの各ページを、プリセットで指定した解像度でPNG、JPG、TIFFに変換します(複数ページTIFF、GIFにも対応)。",
@@ -90,7 +90,7 @@
"engine.ooxml.description": "マクロ有効ファイルやテンプレート(DOCM、XLSM、PPTM、DOTXなど)をDOCX、XLSX、PPTXと相互変換します。\nマクロは削除されます。",
"engine.hwpx-writer.description": "Word、Excel、PowerPoint、PDF、HTML、電子書籍、MarkdownからHWPXを作成します。\nOfficeを使わずに文書をPDFにする際の最初の変換段階です。",
"engine.docx-writer.description": "PDF、HWP/HWPX、Markdown、HTML、表計算ファイル、スライド、電子書籍からWord文書(DOCX)を作成します。",
- "engine.pdf-text.description": "PDFから、2段組みのページも含めて、読み順に沿ってテキストを抽出します(スキャン画像のOCRには対応していません)。",
+ "engine.pdf-text.description": "PDFのテキストを読み順に抽出します。2段組みのページにも対応します(スキャン画像のOCRには非対応)。",
"engine.pdf-slides.description": "PDFをPowerPointのスライドに変換します。各ページを画像にし、1ページずつ別のスライドに配置します(見た目はPDFと同じですが、編集はできません)。ページ内のテキストは発表者ノートに入ります。",
"engine.email.description": "メール(EML、Outlook MSG)を、差出人、宛先、日付、画像を含めてHTMLとテキストに変換します。添付ファイルはZIPにまとめます。\nMSGからEMLへの変換にも対応します。画像を含む保存済みのWebページ(MHTML)を、1つのHTMLファイルに変換します。",
"engine.data.description": "JSON、JSON Lines、YAML、TOML、XML、CSVを相互変換します。\nvCardの連絡先とCSVも相互変換できます。\nコメントは削除されます。CSVで扱えるのは表形式のデータだけです。",
@@ -105,7 +105,7 @@
"engine.ffmpeg.description": "動画と音声(MP4、MOV、MKV、WEBM、MP3、M4A、WAV、FLACなど)を変換します。\n音声や字幕の抽出、GIFやAPNGアニメーションの作成、画像のHEIC保存にも対応します。",
"engine.pandoc.description": "Markdown、HTMLとODT、RTFを相互変換し、DOCXをMarkdownに変換します。\nreStructuredText、LaTeX、Org、AsciiDoc、Typst、MediaWiki、DocBook、JupyterなどをMarkdown、HTML、DOCX、ODTと相互変換します。\nMarkdown、OrgからPPTXスライドを作成します。",
"engine.ghostscript.description": "EPS、PostScript、古いIllustratorファイルをPDFや画像に変換し、PDFをEPSやPSに変換します。",
- "engine.calibre.description": "一般的でない電子書籍形式(LIT、LRF、CHM、PDB、RBなど)を変換し、Kindle用のMOBI、AZW3形式で保存できます。\n「HWPX writer」より上に配置すると、電子書籍からPDFを作成できます(長い本では処理が大幅に速くなります)。",
+ "engine.calibre.description": "一般的でない電子書籍形式(LIT、LRF、CHM、PDB、RBなど)を変換し、Kindle用のMOBI、AZW3形式で保存できます。\n「HWPX writer」より上に置くと、電子書籍のPDF作成もCalibreが担当します(長い本では大幅に速くなります)。",
"engine.libreoffice.description": "古い形式や一般的でない形式(DOC、PPT、Pages、Keynote、Numbers、WordPerfect、ClarisWorks、Publisher、Visioなど)を読み込みます。\nDOC、XLS、PPT、ODT、ODP、OpenDocumentテンプレート、EMF形式での保存にも対応します。",
"profile.images": "画像",
"profile.pdf": "PDF",
@@ -125,7 +125,7 @@
"profile.data": "データ",
"profile.models": "3Dモデル",
"profile.mixed": "複数形式のファイル",
- "preset.half_size": "50%縮小",
+ "preset.half_size": "縮小 50%",
"preset.grayscale": "グレースケール",
"preset.remove_background": "背景を削除",
"preset.group_rotate": "回転",
@@ -140,16 +140,16 @@
"preset.flip_horizontal.short": "水平",
"preset.flip_vertical": "垂直方向に反転",
"preset.flip_vertical.short": "垂直",
- "preset.merge_pdf": "PDFを結合",
- "preset.split_pdf": "PDFを分割",
- "preset.compress_pdf": "PDFを圧縮",
- "preset.long_image": "縦長の画像",
- "preset.pdf_slides": "PPTX(スライド)",
+ "preset.merge_pdf": "結合",
+ "preset.split_pdf": "分割",
+ "preset.compress_pdf": "圧縮",
+ "preset.long_image": "縦連結",
+ "preset.pdf_slides": "PPTX (画像)",
"preset.extract": "展開",
- "preset.zip_all": "1つのZIPにまとめる",
- "preset.extract_subtitles": "字幕を抽出",
- "preset.trace_svg": "SVGトレース",
- "preset.trace_line_art": "線画→SVG",
+ "preset.zip_all": "ZIPにまとめる",
+ "preset.extract_subtitles": "字幕抽出",
+ "preset.trace_svg": "SVG化",
+ "preset.trace_line_art": "線画",
"preset.extract_frames_png": "フレームを抽出(PNG)",
"preset.extract_frames_jpg": "フレームを抽出(JPG)",
"format.folder": "フォルダー",
@@ -172,7 +172,7 @@
"format.category.Model3D": "3Dモデル",
"general.title": "一般",
"general.language": "言語",
- "general.language_auto": "システムの既定値",
+ "general.language_auto": "システム設定に合わせる",
"general.start_with_system": "サインイン時にFileeを起動",
"general.context_menu": "エクスプローラーのコンテキストメニューに「Fileeで変換」を表示",
"general.context_menu_label": "Fileeで変換",
@@ -181,13 +181,13 @@
"general.integration_macos": "Finderの右クリックメニューに表示されます(メニューが長い場合は「クイックアクション」または「サービス」の中にあります)。\nFileeは「アプリケーション」フォルダーに置いてください。",
"general.integration_linux": "Thunar、Nautilus、Nemo、Dolphinにファイル操作を追加します。\nThunarのショートカットを変更するときは、先にThunarを閉じ、変更後に開き直してください。",
"general.integration_failed": "システム連携を適用できませんでした:{0}",
- "general.modern_menu_hint": "Windows 11では、この項目は「その他のオプションを表示」の中にあります。\nメインメニューに追加することもできます(管理者の許可が一度必要です)。",
+ "general.modern_menu_hint": "Windows 11では、この項目は「その他のオプションを確認」の中にあります。\nメインメニューに追加することもできます(管理者の許可が一度必要です)。",
"general.modern_menu_on": "「Fileeで変換」はWindows 11のメインメニューに表示されています。",
"general.modern_menu_outdated": "メインメニューの項目は、古いバージョンのFileeか、移動前のFileeに紐づいています。\n項目を更新するには、もう一度追加してください。",
"general.modern_menu_add": "メインメニューに追加",
"general.modern_menu_remove": "メインメニューから削除",
"general.modern_menu_busy": "Windowsの応答を待っています…",
- "general.modern_menu_cancelled": "キャンセルしました。項目は「その他のオプションを表示」の中に残っています。",
+ "general.modern_menu_cancelled": "キャンセルしました。項目は「その他のオプションを確認」の中に残っています。",
"general.modern_menu_failed": "Windowsが項目を追加できませんでした:{0}",
"general.modern_menu_remove_failed": "Windowsが項目を削除できませんでした:{0}",
"general.default_output": "既定の保存先",
@@ -380,7 +380,7 @@
"presets.keep_enclosed_background_hint": "画像の端につながる背景だけを削除するため、ロゴの内側の白い部分は残ります。\n手書き文字ではオフにしてください(「o」のような文字の内側にある紙の部分も残ってしまうため)。",
"presets.background": "透明部分の背景色",
"presets.tiff_compression": "TIFF圧縮",
- "presets.webp_lossless": "可逆WEBP",
+ "presets.webp_lossless": "WEBP(可逆圧縮)",
"presets.multipage_tiff": "すべてのファイルを1つのマルチページTIFFにまとめる",
"presets.multipage_tiff_hint": "各画像と、PDFやTIFFの各ページを順番に1ページずつ配置します。\nPDF1つからでもマルチページTIFFを作成できます。",
"presets.animation_speed": "再生速度",
@@ -428,7 +428,7 @@
"presets.media_quality.Balanced": "標準",
"presets.media_quality.Small": "小さめ(共有向け)",
"presets.max_height": "高さの上限",
- "presets.max_height.original": "元のサイズ",
+ "presets.max_height.original": "元のまま",
"presets.audio_bitrate": "音声ビットレート",
"presets.audio_bitrate.auto": "自動",
"presets.remove_audio": "音声を削除",
@@ -581,14 +581,14 @@
"about.notices": "サードパーティのライセンス情報",
"about.github": "GitHubリポジトリ",
"about.support_title": "Fileeの成長を応援",
- "about.support_text": "Fileeは無料のオープンソースソフトウェアです。\nGitHubでのスター、バグ報告、アイデア、スポンサー支援が役立ちます。",
+ "about.support_text": "Fileeは無料のオープンソースソフトウェアです。\nGitHubでのスター、バグ報告、アイデア、スポンサー支援のどれもが力になります。",
"about.sponsor": "支援する",
"sponsor.title": "Fileeを支援",
"sponsor.lead": "Fileeは無料で、これからも無料です。開発を応援していただける場合は、ご都合に合う方法をお選びください。",
"sponsor.note.github": "GitHub経由でカード決済(月額または1回限り)",
"sponsor.note.fairy": "韓国のカードと簡単決済に対応",
"sponsor.note.patreon": "月額メンバーシップ",
- "sponsor.note.kofi": "アカウント不要の1回限りのコーヒー代",
+ "sponsor.note.kofi": "1回限りのコーヒー代(アカウント不要)",
"sponsor.note.paypal": "PayPalで任意の金額を支援",
"sponsor.thanks": "スポンサーの皆さま、ありがとうございます",
"sponsor.star": "GitHubで⭐を付けるのは無料で、ほかの人がFileeを見つける助けになります。",
@@ -603,6 +603,8 @@
"common.delete": "削除",
"common.yes": "はい",
"common.no": "いいえ",
+ "common.on": "オン",
+ "common.off": "オフ",
"setup.title": "変換エンジンを選択",
"setup.description": "画像、PDF、Office文書、HWP、電子書籍、アーカイブ、フォント、CAD、3Dモデルはすでに変換できます。\n動画・音声や一般的でない形式に必要なエンジンだけをダウンロードしてください。",
"setup.note": "エンジンはいつでも「設定」→「変換エンジン」でインストールまたは削除できます。",
@@ -694,7 +696,7 @@
"watch.preview": "プレビュー",
"watch.results": "最近の結果",
"watch.results_ok": "{0}個のファイルを変換しました(失敗なし)",
- "watch.results_failed": "{0}個のファイルを変換、{1}個失敗",
+ "watch.results_failed": "{0}個のファイルを変換 · {1}個失敗",
"watch.sample_file": "photo.jpg",
"watch.preview_keep": "元ファイルは元の場所に残ります",
"watch.preview_move": "元ファイルは「originals」に移動します",
diff --git a/src/Filee.App/Assets/i18n/ko.json b/src/Filee.App/Assets/i18n/ko.json
index 28d4ff54..9899eaaf 100644
--- a/src/Filee.App/Assets/i18n/ko.json
+++ b/src/Filee.App/Assets/i18n/ko.json
@@ -621,6 +621,8 @@
"common.delete": "삭제",
"common.yes": "예",
"common.no": "아니요",
+ "common.on": "켬",
+ "common.off": "끔",
"setup.title": "변환 엔진 선택",
"setup.description": "이미지, PDF, 오피스 문서, HWP, 전자책, 압축 파일, 글꼴, CAD, 3D 모델은 지금 바로 변환돼요.\n동영상·오디오나 드문 형식이 필요할 때만 엔진을 받으세요.",
diff --git a/src/Filee.App/Assets/i18n/pl.json b/src/Filee.App/Assets/i18n/pl.json
index eaa36e60..e1ffa18b 100644
--- a/src/Filee.App/Assets/i18n/pl.json
+++ b/src/Filee.App/Assets/i18n/pl.json
@@ -621,6 +621,8 @@
"common.delete": "Usuń",
"common.yes": "Tak",
"common.no": "Nie",
+ "common.on": "Wł.",
+ "common.off": "Wył.",
"setup.title": "Wybierz silniki konwersji",
"setup.description": "Obrazy, PDF, dokumenty Office, HWP, e-booki, archiwa, czcionki, CAD i modele 3D już się konwertują.\nPobieraj silniki tylko dla wideo i audio lub rzadkich formatów.",
diff --git a/src/Filee.App/Assets/i18n/zh-CN.json b/src/Filee.App/Assets/i18n/zh-CN.json
index d45972b6..66e6e91a 100644
--- a/src/Filee.App/Assets/i18n/zh-CN.json
+++ b/src/Filee.App/Assets/i18n/zh-CN.json
@@ -621,6 +621,8 @@
"common.delete": "删除",
"common.yes": "是",
"common.no": "否",
+ "common.on": "开",
+ "common.off": "关",
"setup.title": "选择转换引擎",
"setup.description": "图片、PDF、Office 文档、HWP、电子书、压缩文件、字体、CAD 和 3D 模型现在就能转换。\n只有视频、音频或少见格式才需要下载引擎。",
diff --git a/src/Filee.App/Program.cs b/src/Filee.App/Program.cs
index 385811bf..19c9d4d4 100644
--- a/src/Filee.App/Program.cs
+++ b/src/Filee.App/Program.cs
@@ -273,8 +273,8 @@ internal static class Program
.LogToTrace();
}
-/// <summary>Embedded Noto fonts: <c>fonts:Filee#Noto Sans</c>, <c>#Noto Sans KR</c>, <c>#Noto Sans SC</c>,
-/// <c>#Noto Sans Devanagari</c>.</summary>
+/// <summary>Embedded Noto fonts: <c>fonts:Filee#Noto Sans</c>, <c>#Noto Sans JP</c>, <c>#Noto Sans KR</c>,
+/// <c>#Noto Sans SC</c>, <c>#Noto Sans Devanagari</c>.</summary>
internal sealed class FileeFontCollection() : Avalonia.Media.Fonts.EmbeddedFontCollection(
new Uri("fonts:Filee", UriKind.Absolute),
new Uri("avares://Filee/Assets/Fonts", UriKind.Absolute));
diff --git a/src/Filee.App/Services/ThemeService.cs b/src/Filee.App/Services/ThemeService.cs
index e9a870d5..5b6d715b 100644
--- a/src/Filee.App/Services/ThemeService.cs
+++ b/src/Filee.App/Services/ThemeService.cs
@@ -20,12 +20,15 @@ public sealed class ThemeService(IPlatformServices platform)
/// <summary>Embedded Noto fonts (see build/fetch-fonts.ps1). Missing files fall back to system fonts.</summary>
private const string Latin = "fonts:Filee#Noto Sans";
- private const string Japanese = "fonts:Filee#Noto Sans JP";
- private const string Korean = "fonts:Filee#Noto Sans KR";
- private const string Chinese = "fonts:Filee#Noto Sans SC";
private const string Devanagari = "fonts:Filee#Noto Sans Devanagari";
- private const string SystemFallbacks =
- "Segoe UI, Nirmala UI, Yu Gothic UI, Meiryo, Hiragino Sans, Malgun Gothic, Microsoft YaHei, PingFang SC, Apple SD Gothic Neo, Kohinoor Devanagari, sans-serif";
+
+ /// <summary>Each CJK region's embedded font and its system fonts (Windows, then macOS).</summary>
+ private static readonly (string Embedded, string System) Japanese =
+ ("fonts:Filee#Noto Sans JP", "Yu Gothic UI, Meiryo, Hiragino Sans");
+ private static readonly (string Embedded, string System) Korean =
+ ("fonts:Filee#Noto Sans KR", "Malgun Gothic, Apple SD Gothic Neo");
+ private static readonly (string Embedded, string System) Chinese =
+ ("fonts:Filee#Noto Sans SC", "Microsoft YaHei, PingFang SC");
/// <summary>
/// theme.json colour names → the brushes in Styles/Soft.axaml they replace. Must cover exactly
@@ -80,13 +83,7 @@ public sealed class ThemeService(IPlatformServices platform)
res["ControlCornerRadius"] = new CornerRadius(Math.Round(r * 0.55));
res["OverlayCornerRadius"] = new CornerRadius(r);
- // Han characters vary by region: put the UI language's CJK font first.
- var cjk = language.StartsWith("ja", StringComparison.OrdinalIgnoreCase)
- ? $"{Japanese}, {Korean}, {Chinese}"
- : language.StartsWith("zh", StringComparison.OrdinalIgnoreCase)
- ? $"{Chinese}, {Korean}, {Japanese}"
- : $"{Korean}, {Chinese}, {Japanese}";
- res["AppFontFamily"] = FontFamily.Parse($"{Latin}, {Devanagari}, {cjk}, {SystemFallbacks}");
+ res["AppFontFamily"] = FontFamily.Parse(FontFamilies(language));
// Application.Resources is searched before the styles, so these theme dictionaries win over Soft.axaml's.
ApplyCustom(res, ThemeVariant.Light, custom?.Light);
@@ -96,6 +93,20 @@ public sealed class ThemeService(IPlatformServices platform)
}
/// <summary>Replaces (or, with no colours, removes) the user's colours for one variant.</summary>
+ /// <summary>
+ /// The UI font chain. Han characters look different in Japanese, Korean and Chinese fonts, so the UI language's
+ /// CJK fonts come first, embedded and system ones alike; other languages keep Korean first.
+ /// </summary>
+ internal static string FontFamilies(string language)
+ {
+ (string Embedded, string System)[] cjk =
+ language.StartsWith("ja", StringComparison.OrdinalIgnoreCase) ? [Japanese, Korean, Chinese]
+ : language.StartsWith("zh", StringComparison.OrdinalIgnoreCase) ? [Chinese, Korean, Japanese]
+ : [Korean, Chinese, Japanese];
+ return $"{Latin}, {Devanagari}, {string.Join(", ", cjk.Select(f => f.Embedded))}, Segoe UI, Nirmala UI, "
+ + $"{string.Join(", ", cjk.Select(f => f.System))}, Kohinoor Devanagari, sans-serif";
+ }
+
private static void ApplyCustom(IResourceDictionary res, ThemeVariant variant, IReadOnlyDictionary<string, string>? colors)
{
var dictionary = new ResourceDictionary();
diff --git a/src/Filee.App/Styles/Soft.axaml b/src/Filee.App/Styles/Soft.axaml
index 4bf9c2d1..da9add1b 100644
--- a/src/Filee.App/Styles/Soft.axaml
+++ b/src/Filee.App/Styles/Soft.axaml
@@ -52,10 +52,10 @@
</ResourceDictionary>
</Styles.Resources>
- <!-- Reuse existing translated state labels instead of ToggleSwitch's English defaults. -->
+ <!-- ToggleSwitch's own On / Off labels are English only. -->
<Style Selector="ToggleSwitch">
- <Setter Property="OnContent" Value="{DynamicResource triggers.enabled}" />
- <Setter Property="OffContent" Value="{DynamicResource watch.status_off}" />
+ <Setter Property="OnContent" Value="{DynamicResource common.on}" />
+ <Setter Property="OffContent" Value="{DynamicResource common.off}" />
</Style>
<!-- ───────── Windows & typography ───────── -->
diff --git a/src/Filee.App/Views/CloseAskWindow.axaml b/src/Filee.App/Views/CloseAskWindow.axaml
index b865d35d..2f84eabb 100644
--- a/src/Filee.App/Views/CloseAskWindow.axaml
+++ b/src/Filee.App/Views/CloseAskWindow.axaml
@@ -16,7 +16,7 @@
<TextBlock Classes="caption" TextWrapping="Wrap" Text="{DynamicResource close.text}" />
</StackPanel>
<CheckBox x:Name="DontAsk" Content="{DynamicResource close.dont_ask}" />
- <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" Spacing="8">
+ <StackPanel Orientation="Horizontal" HorizontalAlignment="Right" Spacing="8">
<Button MinWidth="88" HorizontalContentAlignment="Center" Content="{DynamicResource common.cancel}"
Click="OnCancel" IsCancel="True" />
<Button MinWidth="88" HorizontalContentAlignment="Center" Content="{DynamicResource close.quit}" Click="OnQuit" />
diff --git a/src/Filee.App/Views/MainWindow.axaml b/src/Filee.App/Views/MainWindow.axaml
index d3ced861..aaeb24a0 100644
--- a/src/Filee.App/Views/MainWindow.axaml
+++ b/src/Filee.App/Views/MainWindow.axaml
@@ -12,13 +12,13 @@
<!-- Navigation -->
<Border Background="{DynamicResource SurfaceBrush}" BorderBrush="{DynamicResource SubtleBorderBrush}" BorderThickness="0,0,1,0">
<DockPanel Margin="14,18">
- <Grid DockPanel.Dock="Top" ColumnDefinitions="30,*" ColumnSpacing="10" Margin="8,0,0,20">
- <Image Source="avares://Filee/Assets/Icons/filee.png" Width="30" Height="30" VerticalAlignment="Center" />
- <StackPanel Grid.Column="1" VerticalAlignment="Center">
+ <StackPanel DockPanel.Dock="Top" Orientation="Horizontal" Spacing="10" Margin="8,0,0,20">
+ <Image Source="avares://Filee/Assets/Icons/filee.png" Width="30" Height="30" />
+ <StackPanel VerticalAlignment="Center">
<TextBlock Text="Filee" FontSize="18" FontWeight="Bold" />
- <TextBlock Classes="caption" Text="{DynamicResource app.tagline}" TextWrapping="Wrap" />
+ <TextBlock Classes="caption" Text="{DynamicResource app.tagline}" />
</StackPanel>
- </Grid>
+ </StackPanel>
<!-- Bottom: the running version, and a download button when a newer release is out. -->
<StackPanel DockPanel.Dock="Bottom" Spacing="8" Margin="4,12,4,0">
<!-- Accent for required and recommended updates, plain for optional ones; a pill says which -->
diff --git a/tests/Filee.App.Tests/LocalizationTests.cs b/tests/Filee.App.Tests/LocalizationTests.cs
index 53f0d05f..4c8f7da7 100644
--- a/tests/Filee.App.Tests/LocalizationTests.cs
+++ b/tests/Filee.App.Tests/LocalizationTests.cs
@@ -1,5 +1,6 @@
using System.Text.Json;
using System.Text.RegularExpressions;
+using Filee.App.Services;
namespace Filee.App.Tests;
@@ -59,6 +60,30 @@ public partial class LocalizationTests
Assert.Empty(missing);
}
+ [Fact]
+ public void Japanese_is_offered_under_its_own_name()
+ {
+ Assert.Contains(("ja", "日本語"), LocalizationService.Languages);
+ Assert.Equal("ja", LocalizationService.Resolve("JA"));
+ }
+
+ /// <summary>Han characters look different in Japanese, Korean and Chinese fonts: the UI language's come first.</summary>
+ [Theory]
+ [InlineData("ja", "Noto Sans JP", "Yu Gothic UI")]
+ [InlineData("ko", "Noto Sans KR", "Malgun Gothic")]
+ [InlineData("zh-CN", "Noto Sans SC", "Microsoft YaHei")]
+ [InlineData("en", "Noto Sans KR", "Malgun Gothic")]
+ public void The_ui_languages_cjk_fonts_come_first(string language, string embedded, string system)
+ {
+ var families = ThemeService.FontFamilies(language).Split(", ").Select(f => f.Replace("fonts:Filee#", "")).ToList();
+ string[] embeddedCjk = ["Noto Sans JP", "Noto Sans KR", "Noto Sans SC"];
+ string[] systemCjk = ["Yu Gothic UI", "Malgun Gothic", "Microsoft YaHei"];
+
+ Assert.Equal(embedded, families.First(embeddedCjk.Contains));
+ Assert.Equal(system, families.First(systemCjk.Contains));
+ Assert.True(embeddedCjk.Max(families.IndexOf) < systemCjk.Min(families.IndexOf), "embedded fonts before system ones");
+ }
+
private static HashSet<string> Placeholders(string text) =>
PlaceholderPattern().Matches(text).Select(m => m.Value).ToHashSet();