Skip to content

LightCraft: An open-source non-destructive photo editor written by scratch in pure Rust

M16: merge origin/main into Japanese localisation (PR #114)

Brandon Thomasd6c7228dd4b4
diff --cc apps/lightcraft/src/main.rs
index ea0f0c112,0971f0157..49fd24ffc
--- a/apps/lightcraft/src/main.rs
+++ b/apps/lightcraft/src/main.rs
@@@ -340,8 -434,15 +439,16 @@@ fn main() -> eframe::Result
if let Some(ui) = prefs {
app.ui = ui;
}
+ lightcraft_ui_egui::i18n::set_language(app.ui.language);
app.integrated_titlebar = cfg!(target_os = "macos");
+ app.notices.extend(prefs_warning);
+ // what's on disk now: only changes are written
+ let writer = PrefsWriter {
+ written: serde_json::to_vec_pretty(&app.ui).unwrap_or_default(),
+ library: app.ui.settings.library_path.clone(),
+ keep_file: keep_prefs_file,
+ ..Default::default()
+ };
if let Some(port) = control_port {
let rx = control_server::start(port, cc.egui_ctx.clone());
app = app.with_control(rx);
diff --cc crates/ui-egui/locales/ja-formats.json
index f98e64d22,000000000..9da942f87
mode 100644,000000..100644
--- a/crates/ui-egui/locales/ja-formats.json
+++ b/crates/ui-egui/locales/ja-formats.json
@@@ -1,101 -1,0 +1,104 @@@
+{
+ " · {skipped} skipped (file exists)": "・{skipped}件は同名ファイルのためスキップ",
+ " · {} duplicate{} skipped": "・重複{}枚をスキップ{:.0}",
+ " · {} failed: {}": "・{}件失敗:{}",
+ " · {} moved": "・{}件移動",
+ " · {} not readable": "・{}件は読み込み不可",
+ ", {failed} file{} not readable": "、{failed}件を読み込めません{:.0}",
+ "Add {local_n} to My Photos": "{local_n}枚をマイフォトに追加",
+ "Add {} Photo{}": "{}枚の写真を追加{:.0}",
+ "Add “{}” to Favorites": "「{}」をお気に入りに追加",
+ "Added {n} photo{} to My Photos": "マイフォトに{n}枚を追加しました{:.0}",
+ "Added {n} photo{} to “{}”": "「{1}」に{n}枚を追加しました{0:.0}",
+ "All {n} selected photos move by the same amount.": "選択中の{n}枚を同じ時間だけずらします",
+ "Auto Sync: edits apply to {n} photos": "自動同期:{n}枚に編集を適用",
+ "Automatic ({} MB)": "自動({}MB)",
+ "Click {}:1": "クリック時 {}:1",
+ "Create {n} Virtual Copies": "{n}枚の仮想コピーを作成",
+ "Decoder: {reason}": "デコーダー:{reason}",
+ "Delete \"{label}\"": "「{label}」を削除",
+ "Delete \"{label}\" (and the mask)": "「{label}」とマスクを削除",
+ "Delete {n} Photos": "{n}枚の写真を削除",
+ "Delete “{current}”": "「{current}」を削除",
+ "Duplicate \"{label}\"": "「{label}」を複製",
+ "Example: {example}": "例:{example}",
+ "Exported {n} photo{}": "{n}枚を書き出しました{:.0}",
+ "Exported {ok} of {total} photo{}": "{total}枚中{ok}枚を書き出しました{:.0}",
+ "Exported {} point curve preset{}": "{}件のポイントカーブを書き出しました{:.0}",
+ "Exported {} preset{}": "{}件のプリセットを書き出しました{:.0}",
+ "Exporting {} of {total}": "書き出し中:{total}枚中{}枚",
+ "Filter bar — {active} active filter{}": "フィルターバー:{active}件適用中{:.0}",
+ "Healed {n} dust spot{}": "{n}か所のほこりを修復しました{:.0}",
+ "Imported {n} point curve preset{}": "{n}件のポイントカーブを読み込みました{:.0}",
+ "Imported {n} preset{}": "{n}件のプリセットを読み込みました{:.0}",
+ "Imported {n} preset{}, {f} file{} not readable": "{n}件のプリセットを読み込みました{:.0}。{f}件は読み込めません{:.0}",
+ "Imported {} photo{}": "{}枚を読み込みました{:.0}",
+ "Matches: {}": "一致条件:{}",
+ "Merging… {stage} {:.0}%": "合成中… {stage} {:.0}%",
+ "Move {what} to Recently Deleted?": "{what}を「最近削除した写真」に移動しますか?",
+ "Named ({named_n})": "名前付き({named_n})",
+ "Paste into {n} photo{} — only settings that were copied are pasted": "{n}枚に貼り付け{:.0}(コピーされた設定だけを適用)",
+ "Preset: {name}": "プリセット:{name}",
+ "Preview only — editing the camera's embedded JPEG ({})": "プレビューのみ:カメラ内蔵のJPEGを編集中({})",
+ "Preview only — {}": "プレビューのみ:{}",
+ "Profile: {}": "プロファイル:{}",
+ "Proof Copy ({})": "校正用コピー({})",
+ "Proof Preview · {}": "校正プレビュー・{}",
+ "Quick Develop · {n} photos": "クイック現像・{n}枚",
+ "Rated {}": "評価:{}",
+ "Reading photos… {done} of {total}": "写真を読み込み中:{total}枚中{done}枚",
+ "Redo {}": "やり直す:{}",
+ "Remove “{}” from Favorites": "「{}」をお気に入りから削除",
+ "Rename {n} Photos…": "{n}枚の写真の名前を変更…",
+ "Rename “{name}”": "「{name}」の名前を変更",
+ "Rendering on the CPU: {why}": "CPUで描画:{why}",
+ "Reset {} Channel": "{}チャンネルをリセット",
+ "Saved export preset “{}”": "書き出しプリセット「{}」を保存しました",
+ "Show {hidden} hidden location{}": "非表示の{hidden}か所を表示{:.0}",
+ "Showing {n} of {}": "{}枚中{n}枚を表示",
+ "Smart album: {}": "スマートアルバム:{}",
+ "Undo {}": "取り消す:{}",
+ "Version {} — a clean-room, pure-Rust photo library and raw developer.": "バージョン{} — Rust製の写真管理・RAW現像アプリ",
+ "Version: {}": "バージョン:{}",
+ "none (CPU rendering): {why}": "なし(CPU描画):{why}",
+ "the {n} selected photos": "選択中の{n}枚",
+ "the {} photos in view": "表示中の{}枚",
+ "these {count} photos": "この{count}枚の写真",
+ "{count} smart preview{} · {:.1} MB": "スマートプレビュー{count}枚{:.0}・{:.1}MB",
+ "{f} folders (and their subfolders)": "{f}個のフォルダとそのサブフォルダ",
+ "{label} Grading": "{label}のカラーグレーディング",
+ "{label} {d:+} on every selected photo": "選択したすべての写真の{label}を{d:+}調整",
+ "{label}, {n} photos": "{label}、{n}枚",
+ "{matching} of {t} photos": "{t}枚中{matching}枚",
+ "{matching} photos": "{matching}枚",
+ "{mode} spot {} of {}": "{mode}:{1}か所中{0}か所",
+ "{msg} ({failed} failed)": "{msg}({failed}件失敗)",
+ "{name} Label": "{name}のラベル",
+ "{name} Off": "{name}を無効にする",
+ "{name} On": "{name}を有効にする",
+ "{name} — double-click to reset it": "{name}:ダブルクリックでリセット",
+ "{n} change{} saved in memory but not written to disk: {e}\nLightCraft retries automatically; quitting now would lose {}.": "{n}件の変更{:.0}をディスクに保存できません:{e}\n自動で再試行します。終了すると変更が失われます{:.0}",
+ "{n} found · {sel} selected": "{n}枚検出・{sel}枚選択",
+ "{n} photos": "{n}枚",
+ "{n} photos in {} are hidden by the filters above": "{}の{n}枚は上のフィルターで非表示になっています",
+ "{n} photo{}": "{n}枚{:.0}",
+ "{n} photo{} match · updates automatically as photos change": "{n}枚が一致{:.0}・写真の変更に応じて自動更新",
+ "{n} photo{} now · updates automatically as photos change": "現在{n}枚{:.0}・写真の変更に応じて自動更新",
+ "{sel_n} selected · {counted}": "{sel_n}枚選択・{counted}",
+ "{stage}… {:.0}%": "{stage}… {:.0}%",
+ "{what} merge added": "{what}合成を追加しました",
+ "{what} merge failed: {e}": "{what}合成に失敗:{e}",
+ "{} and higher": "{}以上",
+ "{} files": "{}個のファイル",
+ "{} files and {f} folder{}": "{}個のファイルと{f}個のフォルダ{:.0}",
+ "{} of 4 guides — drag along lines that should be vertical or horizontal.": "ガイド4本中{}本:垂直または水平にする線に沿ってドラッグ",
+ "{} photos": "{}枚",
+ "{} photo{} not readable": "{}枚を読み込めません{:.0}",
+ "{} spot(s) on this photo": "この写真に{}か所のスポット",
+ "· {dups} already in the library": "・{dups}枚は読み込み済み",
+ "· {n} photo{}": "・{n}枚{:.0}",
- "… and {more} more": "…ほか{more}件"
++ "… and {more} more": "…ほか{more}件",
++ "Import cancelled · {} photo{} added": "読み込みを中止しました・{}枚を追加{:.0}",
++ "Reading photos… {} of {}": "写真を確認中:{1}枚中{0}枚",
++ "Adding photos… {} of {}": "写真を追加中:{1}枚中{0}枚"
+}
diff --cc crates/ui-egui/locales/ja.json
index 6878d37df,000000000..4e5c71a5f
mode 100644,000000..100644
--- a/crates/ui-egui/locales/ja.json
+++ b/crates/ui-egui/locales/ja.json
@@@ -1,1011 -1,0 +1,1021 @@@
+{
+ "+ Group": "+ グループ",
+ "+ Rule": "+ 条件",
+ "0: nothing is rejected.": "0:不採用にしません",
+ "A filter is hiding this view's photos: change it, or clear it (View → Clear Filters)": "フィルターで写真が非表示になっています。条件を変更するか、「表示 → フィルターを解除」を選んでください",
+ "About LightCraft": "LightCraftについて",
+ "Activity": "処理状況",
+ "Add": "追加",
+ "Add Catchlight": "キャッチライトを追加",
+ "Add Folder to Local": "ローカルにフォルダを追加",
+ "Add Selected Photos": "選択した写真を追加",
+ "Add a rule (⌥-click: a group)": "条件を追加(⌥クリックでグループ)",
+ "Add in place": "現在の場所から追加",
+ "Add in place: the library references the files where they are; nothing is copied or moved.": "現在の場所のファイルを参照します。コピーや移動はしません",
+ "Add keyword": "キーワードを追加",
+ "Add number": "番号を付ける",
+ "Add to": "追加先",
+ "Add to Album": "アルバムに追加",
+ "Add to Favorites": "お気に入りに追加",
+ "Add to My Photos": "マイフォトに追加",
+ "Add to Selected Photos": "選択した写真に追加",
+ "Add/Subtract/Intersect Mask": "マスクを追加/減算/交差",
+ "Added to photos you import that don't already have it.": "読み込む写真に、この情報がない場合だけ追加します",
+ "Adding": "追加中",
+ "After": "編集後",
+ "After 30 days": "30日後",
+ "After 7 days": "7日後",
+ "After 90 days": "90日後",
+ "After a year": "1年後",
+ "Album": "アルバム",
+ "Albums": "アルバム",
+ "All": "すべて",
+ "All Metadata": "すべてのメタデータ",
+ "All Metadata…": "すべてのメタデータ…",
+ "All Photos": "すべての写真",
+ "All rights reserved": "すべての権利を留保",
+ "All types": "すべての形式",
+ "Alt Text": "代替テキスト",
+ "Always": "常に",
+ "Amount": "適用量",
+ "Aperture": "絞り",
+ "Application": "アプリケーション",
+ "Apply Preset": "プリセットを適用",
+ "Approved": "承認済み",
+ "Aqua": "アクア",
+ "Aqua Hue": "アクアの色相",
+ "Aqua Luminance": "アクアの輝度",
+ "Aqua Saturation": "アクアの彩度",
+ "As Shot": "撮影時の設定",
+ "As shot": "撮影時の設定",
+ "Ascending": "昇順",
+ "Aspect": "縦横比",
+ "Aspect Ratio": "縦横比",
+ "Assisted Culling": "写真の選別を補助",
+ "Assisted Culling…": "写真の選別を補助…",
+ "Auto": "自動",
+ "Auto Advance": "自動送り",
+ "Auto Advance Off": "自動送りを無効にする",
+ "Auto Advance On": "自動送りを有効にする",
+ "Auto Advance after rating or flagging": "評価やフラグを付けたら次の写真へ移動",
+ "Auto Advance: move to the next photo after rating or flagging": "評価やフラグを付けたら次の写真へ移動",
+ "Auto Align": "自動整列",
+ "Auto Crop": "自動切り抜き",
+ "Auto Import": "自動読み込み",
+ "Auto Mask": "自動マスク",
+ "Auto Settings": "自動設定",
+ "Auto Sync": "自動同期",
+ "Auto-Stack by Capture Time": "撮影日時で自動スタック",
+ "Auto-Stack by Capture Time…": "撮影日時で自動スタック…",
+ "Auto-Tag from Tracklog": "GPS軌跡から位置情報を付ける",
+ "Auto-Tag from Tracklog…": "GPS軌跡から位置情報を付ける…",
+ "Automatic": "自動",
+ "Automatically Write Changes into XMP": "変更をXMPに自動保存",
+ "Automatically write changes into XMP sidecars": "変更をXMPサイドカーファイルに自動保存",
+ "B&W": "白黒",
+ "B&W Mix": "白黒ミックス",
+ "B&W Mixer": "白黒ミキサー",
+ "Back": "戻る",
+ "Back to Edit": "編集に戻る",
+ "Back to Edit (E)": "編集に戻る(E)",
+ "Back to Grid": "グリッドに戻る",
+ "Background": "背景",
+ "Balance": "バランス",
+ "Before": "編集前",
+ "Before/After (Y)": "編集前/編集後(Y)",
+ "Before/After Settings": "編集前/編集後の設定",
+ "Before/After Split": "編集前/編集後の分割表示",
+ "Before/After Split Top/Bottom": "編集前/編集後の上下分割表示",
+ "Before/After Top/Bottom": "編集前/編集後の上下表示",
+ "Bit depth": "ビット深度",
+ "Black & White": "白黒",
+ "Blacks": "黒レベル",
+ "Blending": "ブレンド",
+ "Blue": "ブルー",
+ "Blue Hue": "ブルーの色相",
+ "Blue Luminance": "ブルーの輝度",
+ "Blue Primary": "ブルー原色",
+ "Blue Saturation": "ブルーの彩度",
+ "Blue channel": "ブルーチャンネル",
+ "Blue/Yellow Fringe": "青/黄のフリンジ",
+ "Blurry photos below the score are flagged as rejects.": "基準値未満のぼけた写真に不採用フラグを付けます",
+ "Boundary Warp": "境界の変形",
+ "Bring All to Front": "すべてを手前に移動",
+ "Browse Folder…": "フォルダを参照…",
+ "Browse Profiles": "プロファイルを参照",
+ "Browse…": "参照…",
+ "Brush": "ブラシ",
+ "Brush Stroke": "ブラシ描画",
+ "Build Previews": "プレビューを作成",
+ "Build Smart Previews": "スマートプレビューを作成",
+ "By Date": "日付別",
+ "By day (YYYY/YYYY-MM-DD)": "日別(YYYY/YYYY-MM-DD)",
+ "By month (YYYY/YYYY-MM)": "月別(YYYY/YYYY-MM)",
+ "Calibration": "キャリブレーション",
+ "Camera": "カメラ",
+ "Cameras and Cards": "カメラとメモリーカード",
+ "Cancel": "キャンセル",
+ "Candidate": "候補",
+ "Caption": "キャプション",
+ "Capture Date": "撮影日時",
+ "Captured": "撮影日時",
+ "Check All": "すべて選択",
+ "Choose Edit Settings to Copy": "コピーする編集設定を選択",
+ "Choose Edit Settings to Copy…": "コピーする編集設定を選択…",
+ "Choose Folder…": "フォルダを選択…",
+ "Choose a photo in the grid or filmstrip": "グリッドまたはフィルムストリップから写真を選択してください",
+ "Choose…": "選択…",
+ "City": "市区町村",
+ "Clarity": "明瞭度",
+ "Clear": "消去",
+ "Clear Cache": "キャッシュを消去",
+ "Clear Filters": "フィルターを解除",
+ "Clear Guides": "ガイドを消去",
+ "Clear History": "履歴を消去",
+ "Clear Quick Collection": "クイックコレクションを空にする",
+ "Clear Reference": "参照写真を解除",
+ "Clear all": "すべて解除",
+ "Click Zoom Ratio": "クリック時の拡大率",
+ "Click a tag to insert it. Examples are for IMG_0042.CR3 taken 14 Jan 2026, 05:58:48.": "タグをクリックすると挿入できます。例は2026年1月14日05:58:48撮影のIMG_0042.CR3です",
+ "Click photos in the grid to toggle the keyword; Esc stops": "グリッドの写真をクリックしてキーワードを付け外し(Escで終了)",
+ "Click the photo to pick a colour · ⇧-click adds more": "写真をクリックして色を選択(⇧クリックで追加)",
+ "Click the photo to pick a colour; ⇧-click adds more (up to 5)": "写真をクリックして色を選択(⇧クリックで5色まで追加)",
+ "Clone": "コピースタンプ",
+ "Close": "閉じる",
+ "Close Panel": "パネルを閉じる",
+ "Close Window": "ウィンドウを閉じる",
+ "Cloudy": "曇り",
+ "Collapse All Stacks": "すべてのスタックを閉じる",
+ "Color": "カラー",
+ "Color Grading": "カラーグレーディング",
+ "Color Mixer": "カラーミキサー",
+ "Color Noise Reduction": "カラーノイズ軽減",
+ "Color Priority": "カラー優先",
+ "Color Range": "色範囲",
+ "Color space": "色空間",
+ "Color space: sRGB (AVIF)": "色空間:sRGB(AVIF)",
+ "Compare": "比較",
+ "Compare (Shift+C)": "比較(⇧C)",
+ "Compare Before and After": "編集前と編集後を比較",
+ "Compare needs at least two photos": "比較には2枚以上の写真が必要です",
+ "Component options": "構成要素の設定",
+ "Compression": "圧縮",
+ "Confirm before deleting": "削除前に確認",
+ "Confirm before moving photos to Recently Deleted": "「最近削除した写真」に移動する前に確認",
+ "Constrain Crop": "切り抜きを制限",
+ "Contrast": "コントラスト",
+ "Copy": "コピー",
+ "Copy After's Settings to Before": "編集後の設定を編集前にコピー",
+ "Copy Before's Settings to After": "編集前の設定を編集後にコピー",
+ "Copy Edit Settings": "編集設定をコピー",
+ "Copy History Step Settings to Before": "履歴の設定を編集前にコピー",
+ "Copy Metadata": "メタデータをコピー",
+ "Copy as DNG": "DNGとしてコピー",
+ "Copy into the library (else use the files where they are)": "ライブラリ内にコピー(オフの場合は現在の場所を参照)",
+ "Copy the files (into the library's Originals/, or a folder you choose)": "ライブラリのOriginalsフォルダまたは指定フォルダにコピー",
+ "Copy to": "コピー先",
+ "Copy to Clipboard": "クリップボードにコピー",
+ "Copy: the files are copied to the folder below and the library uses the copies; the originals are left as they are.": "下のフォルダへコピーし、そのコピーを使用します。元のファイルはそのまま残します",
+ "Copyright": "著作権",
+ "Copyright Info URL": "著作権情報のURL",
+ "Copyright Status": "著作権の状態",
+ "Country": "国",
+ "Create Album": "アルバムを作成",
+ "Create Album…": "アルバムを作成…",
+ "Create Folder": "フォルダを作成",
+ "Create Folder…": "フォルダを作成…",
+ "Create New Mask": "新しいマスクを作成",
+ "Create Preset": "プリセットを作成",
+ "Create Preset…": "プリセットを作成…",
+ "Create Proof Copy": "校正用コピーを作成",
+ "Create Smart Album": "スマートアルバムを作成",
+ "Create Smart Album from Filter…": "現在のフィルターからスマートアルバムを作成…",
+ "Create Smart Album…": "スマートアルバムを作成…",
+ "Create Stack": "スタックを作成",
+ "Create Version": "バージョンを作成",
+ "Create Version from Step": "この履歴からバージョンを作成",
+ "Create Virtual Copy": "仮想コピーを作成",
+ "Creator": "作成者",
+ "Crop": "切り抜き",
+ "Crop & Rotate": "切り抜きと回転",
+ "Crop & Rotate (C)": "切り抜きと回転(C)",
+ "Culling": "写真の選別",
+ "Curve": "カーブ",
+ "Custom": "カスタム",
+ "Cylindrical": "円筒",
+ "Darken": "暗くする",
+ "Darks": "暗部",
+ "Date Groups": "日付グループ",
+ "Day": "日",
+ "Daylight": "昼光",
+ "Defringe": "フリンジ軽減",
+ "Deghost Amount": "ゴースト除去量",
+ "Dehaze": "かすみの除去",
+ "Delete": "削除",
+ "Delete (⌫)": "削除(⌫)",
+ "Delete Album": "アルバムを削除",
+ "Delete All Masks": "すべてのマスクを削除",
+ "Delete Keyword": "キーワードを削除",
+ "Delete Mask": "マスクを削除",
+ "Delete Permanently": "完全に削除",
+ "Delete Photo": "写真を削除",
+ "Delete Photos": "写真を削除",
+ "Delete Preset": "プリセットを削除",
+ "Delete Version": "バージョンを削除",
+ "Delete all": "すべて削除",
+ "Delete all spots": "すべてのスポットを削除",
+ "Delete mask": "マスクを削除",
+ "Delete them": "削除する",
+ "Density": "密度",
+ "Depth Range": "深度範囲",
+ "Descending": "降順",
+ "Deselect All": "選択を解除",
+ "Detail": "詳細",
+ "Detail (D)": "詳細(D)",
+ "Diagonal": "対角線",
+ "Discard Preview Cache": "プレビューキャッシュを破棄",
+ "Display P3": "Display P3",
+ "Distortion": "ゆがみ",
+ "Don't enlarge": "拡大しない",
+ "Done": "完了",
+ "Drag along the horizon; double-click for Auto": "水平線に沿ってドラッグ(ダブルクリックで自動補正)",
+ "Drag over an eye on the photo; the pupil inside is found automatically.": "写真の目をドラッグすると、瞳孔を自動検出します",
+ "Draw Guides": "ガイドを描く",
+ "Duplicate": "複製",
+ "Duplicate Mask": "マスクを複製",
+ "Duplicate and Invert Mask": "マスクを複製して反転",
+ "Each / starts a folder level; tags are filled in per photo (a level with missing metadata is \"unknown\").": "「/」でフォルダ階層を区切ります。タグは写真ごとに展開し、情報がない階層は「unknown」になります",
+ "Edit": "編集",
+ "Edit (E)": "編集(E)",
+ "Edit Capture Time": "撮影日時を変更",
+ "Edit Capture Time…": "撮影日時を変更…",
+ "Edit Color Label Names": "カラーラベル名を編集",
+ "Edit Label Names…": "ラベル名を編集…",
+ "Edit Sections": "編集項目",
+ "Edit Smart Album": "スマートアルバムを編集",
+ "Edit Smart Album…": "スマートアルバムを編集…",
+ "Edit in External Editor": "外部エディターで編集",
+ "Edited": "編集済み",
+ "Effects": "効果",
+ "Enable Lens Corrections": "レンズ補正を有効にする",
+ "Enter Full Screen": "全画面表示",
+ "Erase": "消去",
+ "Every EXIF, GPS and XMP field in the file": "ファイル内のすべてのEXIF・GPS・XMP情報",
+ "Existing previews": "既存のプレビュー",
+ "Expand All Stacks": "すべてのスタックを展開",
+ "Export": "書き出し",
+ "Export Album with Preset": "プリセットでアルバムを書き出す",
+ "Export Album…": "アルバムを書き出す…",
+ "Export Group…": "グループを書き出す…",
+ "Export Now": "今すぐ書き出す",
+ "Export Point Curve Presets": "ポイントカーブのプリセットを書き出す",
+ "Export Presets": "プリセットを書き出す",
+ "Export Presets…": "プリセットを書き出す…",
+ "Export User Presets…": "ユーザープリセットを書き出す…",
+ "Export with Preset": "プリセットで書き出す",
+ "Export with Previous": "前回の設定で書き出す",
+ "Exporting": "書き出し中",
+ "Export…": "書き出す…",
+ "Exposure": "露出",
+ "Exposure (shutter · aperture · ISO)": "露出(シャッター速度・絞り・ISO)",
+ "Extended Description": "詳しい説明",
+ "External Editor": "外部エディター",
+ "Favorites": "お気に入り",
+ "Feather": "ぼかし",
+ "File": "ファイル",
+ "File & date": "ファイルと日付",
+ "File Name": "ファイル名",
+ "File Path": "ファイルの場所",
+ "File Size": "ファイルサイズ",
+ "File name": "ファイル名",
+ "Fill Edges": "境界を補完",
+ "Filmstrip": "フィルムストリップ",
+ "Filter": "フィルター",
+ "Filter Bar": "フィルターバー",
+ "Filter Presets": "フィルタープリセット",
+ "Filter bar": "フィルターバー",
+ "Filter fields": "項目を絞り込む",
+ "Find Dust Spots": "ほこりを検出",
+ "Find Missing Photos…": "見つからない写真を検索…",
+ "Find Similar Photos": "似た写真を検索",
+ "Fit": "全体を表示",
+ "Fit (F)": "全体表示(F)",
+ "Flag": "フラグ",
+ "Flag as Pick": "採用フラグを付ける",
+ "Flag as Reject": "不採用フラグを付ける",
+ "Flash": "フラッシュ",
+ "Flip H": "左右反転",
+ "Flip Horizontal": "左右反転",
+ "Flip Overlay (⇧O)": "重ね表示の向きを変更(⇧O)",
+ "Flip V": "上下反転",
+ "Flip Vertical": "上下反転",
+ "Flow": "流量",
+ "Fluorescent": "蛍光灯",
+ "Focal length": "焦点距離",
+ "Folder": "フォルダ",
+ "Folder name (renamed on disk; its photos follow)": "フォルダ名(ディスク上で変更し、写真の参照先も更新)",
+ "Folders": "フォルダ",
+ "Folders and {date} use the capture time; a photo without one uses today's date.": "フォルダと{date}には撮影日を使います。撮影日がない写真には今日の日付を使います",
+ "Forget unchanged photos": "変更のない写真をカタログから外す",
+ "Format": "形式",
+ "Forward": "進む",
+ "Free": "自由",
+ "Full": "全体",
+ "Full Screen Preview": "全画面プレビュー",
+ "Full size": "元のサイズ",
+ "GPS Track Log": "GPS軌跡ファイル",
+ "General": "一般",
+ "Geometry": "ジオメトリ",
+ "Global Hue": "全体の色相",
+ "Global Luminance": "全体の輝度",
+ "Global Saturation": "全体の彩度",
+ "Glossy": "光沢紙",
+ "Golden": "黄金比",
+ "Grain": "粒子",
+ "Graphic": "画像",
+ "Green": "グリーン",
+ "Green Amount": "グリーンの適用量",
+ "Green Hue": "グリーンの色相",
+ "Green Hue High": "グリーンの色相上限",
+ "Green Hue Low": "グリーンの色相下限",
+ "Green Luminance": "グリーンの輝度",
+ "Green Primary": "グリーン原色",
+ "Green Saturation": "グリーンの彩度",
+ "Green channel": "グリーンチャンネル",
+ "Grid": "グリッド",
+ "Grid Info": "グリッドの情報",
+ "Group": "グループ",
+ "Group by Day": "日別",
+ "Group by Month": "月別",
+ "Group by Year": "年別",
+ "Group by date": "日付でグループ化",
+ "Group into Stack": "スタックにまとめる",
+ "Guided": "ガイド付き",
+ "Guided Upright": "ガイド付き遠近補正",
+ "HDR Merge": "HDR合成",
+ "HDR Panorama Merge": "HDRパノラマ合成",
+ "HDR Panorama…": "HDRパノラマ合成…",
+ "HDR…": "HDR合成…",
+ "Heal": "修復",
+ "Heal the small, soft dark spots sensor dust leaves on smooth areas": "センサーのほこりによる小さくぼんやりした暗い点を修復",
+ "Height": "高さ",
+ "Height (px)": "高さ(px)",
+ "Help": "ヘルプ",
+ "Hide LightCraft": "LightCraftを隠す",
+ "Hide Mask": "マスクを隠す",
+ "Hide Others": "ほかを隠す",
+ "Hides this shortcut only; the folder and its photos stay as they are": "この表示だけを隠します。フォルダと写真はそのまま残ります",
+ "High": "強",
+ "Highlight": "ハイライト",
+ "Highlights": "ハイライト",
+ "Highlights Hue": "ハイライトの色相",
+ "Highlights Luminance": "ハイライトの輝度",
+ "Highlights Saturation": "ハイライトの彩度",
+ "Highlights split": "ハイライトの境界",
+ "Histogram": "ヒストグラム",
+ "History": "履歴",
+ "History & Activity (Y)": "履歴と処理状況(Y)",
+ "Horizontal": "水平",
+ "Hue": "色相",
+ "Hue Range": "色相の範囲",
+ "If file exists": "同名ファイルがある場合",
+ "Import": "読み込み",
+ "Import Date": "読み込み日時",
+ "Import Photos": "写真を読み込む",
+ "Import Photos…": "写真を読み込む…",
+ "Import Point Curve Presets": "ポイントカーブのプリセットを読み込む",
+ "Import Presets": "プリセットを読み込む",
+ "Import Presets…": "プリセットを読み込む…",
+ "Import Profiles & Presets…": "プロファイルとプリセットを読み込む…",
+ "Import from Device": "デバイスから読み込む",
+ "Import from Folder…": "フォルダから読み込む…",
+ "Import photos with File → Import Photos… (Cmd+Shift+I), or drop them here": "「ファイル → 写真を読み込む…」(⌘⇧I)から読み込むか、ここに写真をドロップしてください",
+ "Imported Photos": "写真を読み込み",
+ "Importing": "読み込み中",
+ "Importing scans the source for photos; it doesn't add the folder to Local (use Local → Browse Folder… to work in a folder without importing).": "読み込みでは写真を検索しますが、フォルダはローカルに追加されません。読み込まずに作業する場合は「ローカル → フォルダを参照…」を使ってください",
+ "In library": "ライブラリ内",
+ "In memory — nothing is saved": "メモリ上のみ(保存されません)",
+ "In use": "使用中",
+ "In-memory session: these settings last until LightCraft quits.": "メモリ上のセッション:設定はLightCraftの終了まで有効です",
+ "Include subfolders": "サブフォルダを含める",
+ "Info": "情報",
+ "Info (I)": "情報(I)",
+ "Info overlay": "情報の重ね表示",
+ "Interface": "インターフェース",
+ "Intersect": "交差",
+ "Intersect with": "交差させる",
+ "Into one folder": "1つのフォルダにまとめる",
+ "Invert": "反転",
+ "Invert Mask": "マスクを反転",
+ "Keep in Local": "ローカルに残す",
+ "Keep it on a drive with room: smart previews are about 1 MB per photo. The thumbnail cache stays in the library.": "スマートプレビューは1枚あたり約1MBです。空き容量のあるドライブを指定してください。サムネイルキャッシュはライブラリに残ります",
+ "Keyboard Shortcuts": "キーボードショートカット",
+ "Keyboard shortcuts": "キーボードショートカット",
+ "Keyword": "キーワード",
+ "Keyword Painter": "キーワード付けツール",
+ "Keyword Set": "キーワードセット",
+ "Keyword Sets": "キーワードセット",
+ "Keyword Suggestions": "キーワード候補",
+ "Keyword to paint": "写真に付けるキーワード",
+ "Keywords": "キーワード",
+ "Keywords you add appear here; ⌥1–⌥9 apply them.": "追加したキーワードはここに表示されます(⌥1〜⌥9で適用)",
+ "Landscape": "風景",
+ "Language": "言語",
+ "Largest long edge the Detail view renders at; larger is sharper on big displays but slower.": "詳細表示の長辺の上限です。大きいほど鮮明になりますが、描画に時間がかかります",
+ "Last": "前回",
+ "Last view": "前回の表示",
+ "Lateral Chromatic Aberration": "倍率色収差",
+ "Leave them": "そのまま残す",
+ "Lens": "レンズ",
+ "Lens Corrections": "レンズ補正",
+ "Level": "水平",
+ "Library": "ライブラリ",
+ "Library Originals": "ライブラリの元画像フォルダ",
+ "Light": "明るさ",
+ "LightCraft Default": "LightCraft標準",
+ "LightCraft Help": "LightCraftのヘルプ",
+ "LightCraft Preset": "LightCraftプリセット",
+ "LightCraft Presets": "LightCraftプリセット",
+ "LightCraft Website": "LightCraftの公式サイト",
+ "LightCraft on GitHub": "LightCraftのソースコード",
+ "LightCraft website": "LightCraftの公式サイト",
+ "LightCraft — Second Window": "LightCraft — 第2ウィンドウ",
+ "Lights": "明部",
+ "Limit file size (KB, 0 = off)": "ファイルサイズ上限(KB、0で無効)",
+ "Linear Gradient": "線形グラデーション",
+ "List this folder in Local from now on": "今後このフォルダをローカルに表示",
+ "Local": "ローカル",
+ "Local folders": "ローカルフォルダ",
+ "Local library — no cloud account needed": "ローカルのライブラリ(クラウドアカウント不要)",
+ "Locate Missing File…": "見つからないファイルを指定…",
+ "Location": "保存場所",
+ "Long Edge": "長辺",
+ "Looking for photos…": "写真を検索中…",
+ "Lossless": "可逆圧縮",
+ "Low": "弱",
+ "Luminance": "輝度",
+ "Luminance Range": "輝度範囲",
+ "Magenta": "マゼンタ",
+ "Magenta Hue": "マゼンタの色相",
+ "Magenta Luminance": "マゼンタの輝度",
+ "Magenta Saturation": "マゼンタの彩度",
+ "Make Candidate the Select": "候補の写真を選択側にする",
+ "Manual": "手動",
+ "Masking": "マスク",
+ "Masking (M)": "マスク(M)",
+ "Masks": "マスク",
+ "Match": "一致条件",
+ "Matte": "マット紙",
+ "Med": "中",
+ "Megapixels": "メガピクセル",
+ "Memory for caches": "キャッシュ用メモリ",
+ "Menu": "メニュー",
+ "Merge": "合成",
+ "Merge Keywords": "キーワードを統合",
+ "Merge into…": "統合先…",
+ "Merging…": "合成中…",
+ "Metadata": "メタデータ",
+ "Metadata Preset": "メタデータプリセット",
+ "Metadata Presets": "メタデータプリセット",
+ "Metadata preset": "メタデータプリセット",
+ "Midpoint": "中心点",
+ "Midtones": "中間調",
+ "Midtones Hue": "中間調の色相",
+ "Midtones Luminance": "中間調の輝度",
+ "Midtones Saturation": "中間調の彩度",
+ "Midtones split": "中間調の境界",
+ "Minimize": "最小化",
+ "Missing Photos": "見つからない写真",
+ "Mode": "モード",
+ "Modified Date": "変更日時",
+ "Monochrome": "モノクロ",
+ "Month": "月",
+ "More": "その他",
+ "More preset options": "その他のプリセット設定",
+ "Move": "移動",
+ "Move Down in Stack": "スタック内で下に移動",
+ "Move Folder To…": "フォルダを移動…",
+ "Move Up in Stack": "スタック内で上に移動",
+ "Move the files (into the library's Originals/, or a folder you choose), removing them from the source": "ライブラリのOriginalsまたは指定フォルダへ移動し、元の場所から削除",
+ "Move them": "移動する",
+ "Move to": "移動先",
+ "Move to Group": "グループに移動",
+ "Move: the files are moved to the folder below; each original (and its XMP sidecar) is removed from the source only after its copy is verified. Duplicates and files that fail stay where they are.": "下のフォルダへ移動します。コピーを検証してから元のファイルとXMPを削除します。重複や失敗したファイルは元の場所に残します",
+ "My Photos": "マイフォト",
+ "Name": "名前",
+ "Named": "名前付き",
+ "Names appear in the label menu, the filter bar and the Info panel, and are written to XMP. Empty = the colour's name.": "ラベル名はメニュー・フィルターバー・情報パネルに表示され、XMPに保存されます。空欄の場合は色名を使います",
+ "Navigator": "ナビゲーター",
+ "Needs Work": "要修整",
+ "Neutral": "ニュートラル",
+ "Never": "しない",
+ "New Album…": "新しいアルバム…",
+ "New Folder…": "新しいフォルダ…",
+ "New Group…": "新しいグループ…",
+ "New Smart Album": "新しいスマートアルバム",
+ "New Smart Album from Filter…": "現在のフィルターからスマートアルバムを作成…",
+ "New Smart Album…": "新しいスマートアルバム…",
+ "New album": "新しいアルバム",
+ "New album…": "新しいアルバム…",
+ "New name": "新しい名前",
+ "No": "いいえ",
+ "No Camera or Card Found": "カメラやメモリーカードが見つかりません",
+ "No Date Groups": "日付でまとめない",
+ "No Stars": "星なし",
+ "No Tool": "ツールなし",
+ "No automatic versions.": "自動バージョンはありません",
+ "No camera": "カメラ情報なし",
+ "No date": "日付なし",
+ "No dust spots found": "ほこりは見つかりませんでした",
+ "No edits yet.": "まだ編集していません",
+ "No exposure information": "露出情報がありません",
+ "No filter presets yet": "フィルタープリセットはまだありません",
+ "No lens data embedded in this file (DNG lens opcodes only).": "このファイルにレンズ情報は含まれていません(DNGのレンズ情報のみ対応)",
+ "No masks yet. Choose a mask type above.": "マスクはありません。上から種類を選択してください",
+ "No matching photos": "一致する写真がありません",
+ "No metadata found": "メタデータがありません",
+ "No new presets": "新しいプリセットはありません",
+ "No photo selected": "写真が選択されていません",
+ "No photos": "写真がありません",
+ "No photos found": "写真が見つかりません",
+ "No photos in this folder": "このフォルダに写真はありません",
+ "No photos match the active filters": "現在のフィルターに一致する写真がありません",
+ "No photos match the filters (View → Clear Filters)": "フィルターに一致する写真がありません(表示 → フィルターを解除)",
+ "No raw photos yet: cameras appear here once their photos are in the library.": "RAW写真はまだありません。読み込むとカメラがここに表示されます",
+ "No reference photo": "参照写真がありません",
+ "No usable GPU found: rendering on the CPU": "利用できるGPUがないため、CPUで描画します",
+ "No versions yet. Create one to keep this look.": "バージョンはありません。現在の仕上がりを保存できます",
+ "Noise": "ノイズ",
+ "Noise Reduction": "ノイズ軽減",
+ "Non-raw photos": "RAW以外の写真",
+ "None": "なし",
+ "Nothing to compare": "比較する写真がありません",
+ "Nothing to survey": "一覧比較する写真がありません",
+ "OK": "OK",
+ "Object": "オブジェクト",
+ "Off": "オフ",
+ "Offset X": "水平位置",
+ "Offset Y": "垂直位置",
+ "Opacity": "不透明度",
+ "Opacity (%)": "不透明度(%)",
+ "Open Library": "ライブラリを開く",
+ "Open Library…": "ライブラリを開く…",
+ "Open in": "次で開く",
+ "Open in Detail": "詳細表示で開く",
+ "Open the place in OpenStreetMap": "OpenStreetMapでこの場所を開く",
+ "Optics": "レンズ補正",
+ "Optional name": "名前(任意)",
+ "Orange": "オレンジ",
+ "Orange Hue": "オレンジの色相",
+ "Orange Luminance": "オレンジの輝度",
+ "Orange Saturation": "オレンジの彩度",
+ "Original": "元の比率",
+ "Original files": "元ファイル",
+ "Original offline · editing the smart preview": "元画像がオフライン:スマートプレビューを編集中",
+ "Original offline · no smart preview": "元画像がオフライン:スマートプレビューなし",
+ "Originals": "元画像",
+ "Other images (JPEG, PNG, TIFF, HEIC…)": "その他の画像(JPEG・PNG・TIFF・HEICなど)",
+ "Overlay": "重ね表示",
+ "Overwrite": "上書き",
+ "Paint": "描画",
+ "Paint only areas like the one under the brush": "ブラシ下と似た領域だけに適用",
+ "Paint over a distraction on the photo to remove it.": "除去する部分をブラシでなぞってください",
+ "Paint overlay": "マスクの重ね表示",
+ "Panorama Merge": "パノラマ合成",
+ "Panorama…": "パノラマ合成…",
+ "Parametric curve": "パラメトリックカーブ",
+ "Paste Edit Settings": "編集設定を貼り付け",
+ "Paste Metadata": "メタデータを貼り付け",
+ "Paste Selected Settings": "選択した設定を貼り付け",
+ "Paste Selected Settings…": "選択した設定を貼り付け…",
+ "Percent": "割合",
+ "Percentage": "割合",
+ "Performance": "パフォーマンス",
+ "Perspective": "遠近法",
+ "Pet Eye": "ペットの目の補正",
+ "Photo": "写真",
+ "Photo Grid": "写真グリッド",
+ "Photo Grid (G)": "写真グリッド(G)",
+ "Photo Merge": "写真を合成",
+ "Photo ▸ Edit in External Editor (⇧⌘E) renders a 16-bit TIFF copy, stacks it with the original and opens it here (an app name on macOS, a program path elsewhere).": "「写真 → 外部エディターで編集」(⇧⌘E)で16ビットTIFFコピーを作成し、元画像とスタックにまとめて開きます。Macではアプリ名を指定してください",
+ "Photos": "写真",
+ "Photos seen in Local but never added or changed leave the catalog when their folder hasn't been browsed for this long (checked when the library opens). Files stay on disk; browsing the folder shows them again.": "ローカルで参照しただけの写真は、この期間フォルダを開いていなければカタログから外します。ファイルはディスクに残り、再びフォルダを開くと表示されます",
+ "Photos that arrive in this folder (tethering, a scanner, a sync app) are added as soon as they're complete.": "このフォルダに転送された写真は、転送が完了すると自動で追加されます",
+ "Pick": "採用",
+ "Pick a colour on the photo with the eyedropper.": "スポイトで写真の色を選択してください",
+ "Pick the sharpest photo of each burst": "連写ごとに最も鮮明な写真を採用",
+ "Picked": "採用",
+ "Picks": "採用した写真",
+ "Pixels": "ピクセル",
+ "Point Color": "ポイントカラー",
+ "Point Curve": "ポイントカーブ",
+ "Point Curve Presets": "ポイントカーブのプリセット",
+ "Point curve": "ポイントカーブ",
+ "Portrait": "ポートレート",
+ "Position": "位置",
+ "Preset": "プリセット",
+ "Preset name": "プリセット名",
+ "Presets": "プリセット",
+ "Presets & Profiles": "プリセットとプロファイル",
+ "Presets (Shift+P)": "プリセット(⇧P)",
+ "Presets ▾": "プリセット ▼",
+ "Preview": "プレビュー",
+ "Preview only": "プレビューのみ",
+ "Preview size": "プレビューサイズ",
+ "Previews": "プレビュー",
+ "Print": "印刷用",
+ "Profile": "プロファイル",
+ "Profile Distortion": "プロファイルのゆがみ補正",
+ "Profile Vignetting": "プロファイルの周辺光量補正",
+ "Profile:": "プロファイル:",
+ "Profiles": "プロファイル",
+ "Projection": "投影法",
+ "Public domain": "パブリックドメイン",
+ "Pupil Size": "瞳孔のサイズ",
+ "Purple": "パープル",
+ "Purple Amount": "パープルの適用量",
+ "Purple Hue": "パープルの色相",
+ "Purple Hue High": "パープルの色相上限",
+ "Purple Hue Low": "パープルの色相下限",
+ "Purple Luminance": "パープルの輝度",
+ "Purple Saturation": "パープルの彩度",
+ "Put the locations you removed from Local back (no files change)": "ローカルから除いた場所を再表示(ファイルは変更しません)",
+ "Quality": "品質",
+ "Quick Collection": "クイックコレクション",
+ "Quick Develop": "クイック現像",
+ "Quit LightCraft": "LightCraftを終了",
+ "Radial Gradient": "円形グラデーション",
+ "Radius": "半径",
+ "Range": "範囲",
+ "Rating": "評価",
+ "Ratings & flags": "評価とフラグ",
+ "Raw default": "RAWの初期設定",
+ "Raw defaults": "RAWの初期設定",
+ "Raw files": "RAWファイル",
+ "Raw photos": "RAW写真",
+ "Raw photos as DNG, with the edits embedded. Size, color and output options don't apply.": "編集情報を含むDNGとしてRAW写真を書き出します。サイズ・色・出力の設定は適用されません",
+ "Read Metadata from File": "ファイルからメタデータを読み込む",
+ "Reading": "読み込み中",
+ "Reading folder…": "フォルダを読み込み中…",
+ "Recently Added": "最近追加した写真",
+ "Recently Deleted": "最近削除した写真",
+ "Red": "レッド",
+ "Red Eye": "赤目補正",
+ "Red Hue": "レッドの色相",
+ "Red Luminance": "レッドの輝度",
+ "Red Primary": "レッド原色",
+ "Red Saturation": "レッドの彩度",
+ "Red channel": "レッドチャンネル",
+ "Red/Cyan Fringe": "赤/シアンのフリンジ",
+ "Redo": "やり直す",
+ "Reference": "参照",
+ "Reference View": "参照表示",
+ "Reference the files where they are": "現在の場所にあるファイルを参照",
+ "Refresh Source (/)": "コピー元を更新(/)",
+ "Reject below focus": "ピントの基準値未満を不採用にする",
+ "Rejected": "不採用",
+ "Rejects": "不採用の写真",
+ "Remove": "除去",
+ "Remove (H)": "除去(H)",
+ "Remove CA": "色収差を除去",
+ "Remove Chromatic Aberration": "色収差を除去",
+ "Remove from Album": "アルバムから削除",
+ "Remove from Favorites": "お気に入りから削除",
+ "Remove from Local": "ローカルから除く",
+ "Remove from Photo": "写真から削除",
+ "Remove from Selected Photos": "選択した写真から削除",
+ "Remove from Stack": "スタックから外す",
+ "Remove from survey": "一覧比較から除く",
+ "Remove location info": "位置情報を除去",
+ "Remove this filter": "このフィルターを解除",
+ "Remove this group": "このグループを削除",
+ "Remove this rule": "この条件を削除",
+ "Rename": "名前を変更",
+ "Rename Album": "アルバム名を変更",
+ "Rename Folder…": "フォルダ名を変更…",
+ "Rename Keyword": "キーワード名を変更",
+ "Rename Keyword…": "キーワード名を変更…",
+ "Rename Photos": "写真の名前を変更",
+ "Rename Photos…": "写真の名前を変更…",
+ "Rename Version": "バージョン名を変更",
+ "Rename…": "名前を変更…",
+ "Rendering": "描画",
+ "Rendering…": "描画中…",
+ "Reset": "リセット",
+ "Reset All Curves": "すべてのカーブをリセット",
+ "Reset Before to Import State": "編集前を読み込み時の状態に戻す",
+ "Reset Control": "設定をリセット",
+ "Reset Crop": "切り抜きをリセット",
+ "Reset Edits": "編集をリセット",
+ "Reset Parametric Curve": "パラメトリックカーブをリセット",
+ "Reset Section": "項目をリセット",
+ "Reset Tone Curve": "トーンカーブをリセット",
+ "Reset all curves: point curves (all channels) and parametric (double-click a channel to reset only that one)": "すべてのポイントカーブとパラメトリックカーブをリセット(チャンネルのダブルクリックで個別にリセット)",
+ "Reset all edits (Cmd+Shift+R)": "すべての編集をリセット(⌘⇧R)",
+ "Resize to": "サイズ変更",
+ "Resolution (ppi)": "解像度(ppi)",
+ "Restore": "復元",
+ "Retouch": "レタッチ",
+ "Review Import": "読み込み内容を確認",
+ "Right-click a photo ▸ Set as Reference Photo, then View → Reference View (Shift+R)": "写真を右クリックして参照写真に設定し、「表示 → 参照表示」(⇧R)を選択してください",
+ "Right-click a preset to delete it": "プリセットを右クリックして削除",
+ "Rights Usage Terms": "利用条件",
+ "Rotate": "回転",
+ "Rotate Left": "左に回転",
+ "Rotate Right": "右に回転",
+ "Roughness": "粗さ",
+ "Roundness": "丸み",
+ "Same as raw default": "RAWの初期設定と同じ",
+ "Sample a colour on the photo": "写真から色を選択",
+ "Saturation": "彩度",
+ "Saturation Range": "彩度の範囲",
+ "Save": "保存",
+ "Save Current Filter as Preset…": "現在のフィルターをプリセットとして保存…",
+ "Save Current Keywords as Set…": "現在のキーワードをセットとして保存…",
+ "Save Metadata to File": "メタデータをファイルに保存",
+ "Save Point Curve…": "ポイントカーブを保存…",
+ "Save as Preset": "プリセットとして保存",
+ "Save as Smart Album…": "スマートアルバムとして保存…",
+ "Save as set": "セットとして保存",
+ "Save preset": "プリセットを保存",
+ "Scale": "拡大率",
+ "Scanning": "検索中",
+ "Scores stay on the photos: filter or make smart albums with Focus and Best of Similar Shots.": "評価結果は写真に保存されます。ピント評価や類似写真内のベストショットで絞り込み・スマートアルバム作成ができます",
+ "Screen": "画面用",
+ "Search Photos": "写真を検索",
+ "Second Window": "第2ウィンドウ",
+ "Select": "選択",
+ "Select All": "すべて選択",
+ "Select Luminance Range": "輝度範囲を選択",
+ "Select a photo to edit": "編集する写真を選択してください",
+ "Select by": "条件で選択",
+ "Select by Flag, Rating or Label": "フラグ・評価・ラベルで選択",
+ "Select photos, then choose View → Survey (N)": "写真を選び、「表示 → 一覧比較」(N)を選択してください",
+ "Select two photos, then choose View → Compare (Shift+C)": "2枚を選び、「表示 → 比較」(⇧C)を選択してください",
+ "Selected": "選択中",
+ "Send Feedback…": "フィードバックを送る…",
+ "Services": "サービス",
+ "Set Color Label": "カラーラベルを設定",
+ "Set Develop Values": "現像設定を変更",
+ "Set Flag": "フラグを設定",
+ "Set Point Curve": "ポイントカーブを変更",
+ "Set Profile": "プロファイルを設定",
+ "Set Rating": "評価を設定",
+ "Set as Album Cover": "アルバムのカバーに設定",
+ "Set as Before": "編集前に設定",
+ "Set as Reference Photo": "参照写真に設定",
+ "Set as Target Album": "追加先アルバムに設定",
+ "Set as Target Album (B adds to it)": "追加先アルバムに設定(Bで追加)",
+ "Set as Top of Stack": "スタックの先頭に設定",
+ "Set the mix from the photo's colours": "写真の色からミックスを自動設定",
+ "Settings": "設定",
+ "Settings new raw photos start from. Changing them doesn't touch photos already in the library.": "新しく読み込むRAW写真の初期設定です。既存の写真には影響しません",
+ "Settings to include": "含める設定",
+ "Settings…": "設定…",
+ "Shade": "日陰",
+ "Shadow": "シャドウ",
+ "Shadows": "シャドウ",
+ "Shadows Hue": "シャドウの色相",
+ "Shadows Luminance": "シャドウの輝度",
+ "Shadows Saturation": "シャドウの彩度",
+ "Shadows Tint": "暗部の色かぶり補正",
+ "Shadows split": "シャドウの境界",
+ "Sharpen": "シャープ処理",
+ "Sharpening": "シャープ",
+ "Sharpness": "シャープネス",
+ "Short Edge": "短辺",
+ "Show All": "すべて表示",
+ "Show Clipping": "白飛び・黒つぶれを表示",
+ "Show Deghost Overlay": "ゴースト除去範囲を表示",
+ "Show Hidden Local Locations": "非表示にしたローカルの場所を表示",
+ "Show Luminance Map": "輝度マップを表示",
+ "Show Mask": "マスクを表示",
+ "Show Mask Overlay": "マスクの重ね表示",
+ "Show Mask Pins": "マスクのピンを表示",
+ "Show Original": "元の写真を表示",
+ "Show Photo Counts": "写真の枚数を表示",
+ "Show Photos with Keyword": "このキーワードの写真を表示",
+ "Show Pins": "ピンを表示",
+ "Show Source": "コピー元を表示",
+ "Show Thumbnails": "サムネイルを表示",
+ "Show destination gamut warning": "出力先の色域警告を表示",
+ "Show display gamut warning": "ディスプレイの色域警告を表示",
+ "Show file names": "ファイル名を表示",
+ "Show in Finder": "Finderで表示",
+ "Show on Map": "地図で表示",
+ "Show overlay (O)": "重ね表示(O)",
+ "Show ratings, flags and edit badges": "評価・フラグ・編集済みマークを表示",
+ "Show the Navigator while zoomed in": "拡大時にナビゲーターを表示",
+ "Show the template tags; click one to insert it": "テンプレートのタグを表示(クリックで挿入)",
+ "Show/hide My Photos panel": "マイフォトパネルを表示/非表示",
+ "Shutter speed": "シャッター速度",
+ "Sidecar names": "サイドカーファイル名",
+ "Size": "サイズ",
+ "Size (% of short edge)": "サイズ(短辺に対する%)",
+ "Size limit": "サイズの上限",
+ "Skip": "スキップ",
+ "Sky": "空",
+ "Smart Album": "スマートアルバム",
+ "Smart previews": "スマートプレビュー",
+ "Smoothness": "滑らかさ",
+ "Soft Proofing": "ソフト校正",
+ "Sort": "並べ替え",
+ "Sort by": "並べ替え",
+ "Source": "読み込み元",
+ "Source code on GitHub": "GitHubのソースコード",
+ "Spherical": "球面",
+ "Spiral": "螺旋",
+ "Square Grid": "正方形グリッド",
+ "Square Grid (G toggles)": "正方形グリッド(Gで切り替え)",
+ "Square Grid: show file names and formats": "正方形グリッド:ファイル名と形式を表示",
+ "Stack": "スタック",
+ "Stack photos taken within this time of each other:": "この時間内に撮影した写真をスタックにまとめる:",
+ "Stacks": "スタック",
+ "Standard": "標準",
+ "Start at": "開始番号",
+ "Start number": "開始番号",
+ "Startup": "起動時",
+ "State / Province": "都道府県・州",
+ "Stop": "停止",
+ "Stop Building Previews": "プレビュー作成を停止",
+ "Stop Using as Target Album": "追加先アルバムを解除",
+ "Stopping…": "停止中…",
+ "Straighten": "角度補正",
+ "Straighten Tool": "角度補正ツール",
+ "Style": "スタイル",
+ "Subfolder": "サブフォルダ",
+ "Subfolder name": "サブフォルダ名",
+ "Subject": "被写体",
+ "Subtract": "減算",
+ "Suggestions": "候補",
+ "Survey": "一覧比較",
+ "Survey (N)": "一覧比較(N)",
+ "Swap": "入れ替え",
+ "Swap Aspect (X)": "縦横比を入れ替え(X)",
+ "Swap Before and After Settings": "編集前と編集後の設定を入れ替える",
+ "Sync Settings": "設定を同期",
+ "System Info": "システム情報",
+ "System Info…": "システム情報…",
+ "System default": "システム標準",
+ "Tags": "タグ",
+ "Tags: see Tags beside the template. Files are renamed on disk (with their XMP sidecars); existing names get -1, -2…": "テンプレート横の「タグ」を参照してください。ファイルとXMPの名前を変更し、同名の場合は-1、-2…を付けます",
+ "Targeted adjustment: drag up/down on the photo to adjust the colours there": "写真の上を上下にドラッグして、その部分の色を調整",
+ "Targeted adjustment: drag up/down on the photo to adjust the curve there": "写真の上を上下にドラッグして、その部分のカーブを調整",
+ "Temp": "色温度",
+ "Temperature": "色温度",
+ "Template": "テンプレート",
+ "Text": "文字",
+ "Texture": "テクスチャ",
+ "The original files, unchanged, each with an XMP sidecar holding its edits.": "元のファイルを変更せず、編集内容を保存したXMPサイドカーファイルを添えて書き出します",
+ "The photo has these settings": "この写真に適用されている設定",
+ "They can be restored from Recently Deleted until it is emptied.": "「最近削除した写真」を空にするまでは復元できます",
+ "Thirds": "三分割",
+ "This folder is not available (drive disconnected?). Smart previews are not built or used until it is back or you choose another folder.": "このフォルダにアクセスできません。ドライブを接続するか別のフォルダを選ぶまで、スマートプレビューは作成・使用されません",
+ "This photo can't be opened": "この写真を開けません",
+ "Threshold": "しきい値",
+ "Thumbnail cache": "サムネイルキャッシュ",
+ "Tint": "色かぶり補正",
+ "Title": "タイトル",
+ "Tone Curve": "トーンカーブ",
+ "Tools": "ツール",
+ "Top Level": "最上位",
+ "Transfer": "転送",
+ "Treatment": "処理",
+ "Triangle": "三角形",
+ "Tungsten": "白熱灯",
+ "Turn Off": "無効にする",
+ "Turn on Include subfolders, or pick another folder under Local": "サブフォルダを含める設定を有効にするか、ローカルから別のフォルダを選択してください",
+ "Uncheck All": "すべて選択解除",
+ "Undo": "取り消す",
+ "Unedited": "未編集",
+ "Unflag": "フラグを解除",
+ "Unflagged": "フラグなし",
+ "Ungroup Stack": "スタックを解除",
+ "Unrated": "未評価",
+ "Unreadable": "読み込み不可",
+ "Update": "更新",
+ "Update Rules from Current Filter": "現在のフィルターから条件を更新",
+ "Update Version": "バージョンを更新",
+ "Update with Current Settings": "現在の設定で更新",
+ "Upright": "遠近補正",
+ "Use Library Folder": "ライブラリのフォルダを使用",
+ "Use camera-specific defaults": "カメラごとの初期設定を使用",
+ "Use the GPU for rendering": "描画にGPUを使用",
+ "User Presets": "ユーザープリセット",
+ "Value": "値",
+ "Variance": "ばらつき",
+ "Version": "バージョン",
+ "Version name": "バージョン名",
+ "Versions": "バージョン",
+ "Versions (Shift+V)": "バージョン(⇧V)",
+ "Vertical": "垂直",
+ "Vibrance": "自然な彩度",
+ "Videos": "動画",
+ "View": "表示",
+ "Vignette": "周辺光量補正",
+ "Vignetting": "周辺光量補正",
+ "Visualize Spots": "スポットを表示",
+ "Visualize Spots (A)": "スポットを表示(A)",
+ "Visualize range": "範囲を表示",
+ "Vivid": "鮮やか",
+ "Watched folder": "監視フォルダ",
+ "Watermark": "透かし",
+ "What's New": "新着情報",
+ "When rated or hovered": "評価時またはカーソルを合わせたとき",
+ "White Balance": "ホワイトバランス",
+ "White Balance Selector": "ホワイトバランス選択",
+ "White Balance Selector (W)": "ホワイトバランス選択(W)",
+ "Whites": "白レベル",
+ "Width": "幅",
+ "Width (% of photo)": "幅(写真に対する%)",
+ "Width (px)": "幅(px)",
+ "Width × Height": "幅 × 高さ",
+ "Window": "ウィンドウ",
+ "XMP sidecars": "XMPサイドカーファイル",
+ "Year": "年",
+ "Yellow": "イエロー",
+ "Yellow Hue": "イエローの色相",
+ "Yellow Luminance": "イエローの輝度",
+ "Yellow Saturation": "イエローの彩度",
+ "Yes": "はい",
+ "Zoom": "拡大/縮小",
+ "Zoom 100%": "100%表示",
+ "Zoom In": "拡大",
+ "Zoom Out": "縮小",
+ "Zoom to Fit": "全体を表示",
+ "and": "と",
+ "comma, separated": "カンマ区切り",
+ "memory only": "メモリ上のみ",
+ "none": "なし",
+ "not available here": "ここでは利用できません",
+ "of the following rules:": "以下の条件に一致:",
+ "Effect": "効果",
+ "Image": "画像",
+ "Layer": "レイヤー",
+ "Type": "書式",
+ "Save As…": "別名で保存…",
+ "Exit": "終了",
+ "New…": "新規…",
+ "New": "新規",
+ "Orientation": "組み方向",
+ "Layers": "レイヤー",
+ "Properties": "プロパティ",
+ "Brush Settings": "ブラシ設定",
+ "Options": "オプション",
+ "Fit on Screen": "画面に合わせる",
+ "Cut": "切り取り",
+ "Paste": "貼り付け",
+ "Deselect": "選択を解除",
+ "Export As…": "形式を指定して書き出し…",
+ "Search…": "検索…",
+ "Theme": "テーマ",
+ "Pages": "ページ",
+ "Preferences": "環境設定",
+ "Preferences…": "環境設定…",
+ "Interface language": "表示言語",
+ "Open…": "開く…",
+ "New blank PDF": "空白の PDF を作成",
+ "Create PDF from file…": "ファイルから PDF を作成…",
+ "Create PDF from images…": "画像から PDF を作成…",
+ "Create PDF from clipboard": "クリップボードから PDF を作成",
+ "Combine files…": "ファイルを結合…",
+ "Save as…": "別名で保存…",
+ "Close file": "ファイルを閉じる",
+ "Close all": "すべて閉じる",
+ "Revert": "保存済みの状態に戻す",
+ "Print…": "印刷…",
+ "Document properties…": "文書のプロパティ…",
+ "Find…": "検索…",
+ "Advanced search…": "高度な検索…",
+ "Copy pages": "ページをコピー",
+ "Cut pages": "ページを切り取り",
+ "Paste pages": "ページを貼り付け",
+ "Fit visible": "表示範囲に合わせる",
+ "Marquee zoom": "範囲指定ズーム",
+ "Take a snapshot": "スナップショットを作成",
+ "Full screen mode": "全画面表示",
+ "Read mode": "閲覧モード",
+ "Switch light / dark theme": "明るい/暗いテーマを切り替え",
+ "Comments panel": "コメントパネル",
+ "Form fields panel": "フォームフィールドパネル",
+ "Clear form": "フォームをクリア",
+ "Find tools and commands…": "ツールとコマンドを検索…",
+ "Actual size": "実際のサイズ",
+ "Zoom to page level": "ページ全体を表示",
+ "Fit to width": "幅に合わせる",
+ "Display theme": "表示テーマ",
+ "Side panels": "サイドパネル",
+ "Text direction": "文字の方向",
+ "Horizontal text": "横書き",
- "Vertical text": "縦書き"
++ "Vertical text": "縦書き",
++ "Your library couldn't be opened": "ライブラリを開けませんでした",
++ "LightCraft couldn't find where to keep your library.": "ライブラリの保存場所が見つかりませんでした。",
++ "LightCraft couldn't open the library at": "次の場所にあるライブラリを開けませんでした:",
++ "Try Again": "再試行",
++ "Choose Another Library…": "別のライブラリを選択…",
++ "Continue Without Saving": "保存せずに続行",
++ "Quit": "終了",
++ "Temporary session — your library isn't open, and nothing you do here is saved.": "一時セッション:ライブラリが開かれていないため、ここでの操作は保存されません。",
++ "Back Up Library…": "ライブラリをバックアップ…",
++ "Restore Library from Backup…": "バックアップからライブラリを復元…"
+}
diff --cc crates/ui-egui/src/import.rs
index a4fa55692,2058eb97f..7e520bb38
--- a/crates/ui-egui/src/import.rs
+++ b/crates/ui-egui/src/import.rs
@@@ -368,17 -576,22 +578,22 @@@ fn commit_batch(app: &mut LightcraftApp
task.failed += n;
}
}
- ctx.request_repaint();
- if !task.queue.is_empty() {
- return;
- }
- let Some(task) = app.import.take() else { return };
+ }
+
+ /// The import is done (or cancelled): one undo step, select the first photo, say what happened.
+ fn finish(app: &mut LightcraftApp, ctx: &egui::Context, task: ImportTask) {
let steps = app.session.undo.len().saturating_sub(task.undo0);
- let label = format!("Add {} Photo{}", task.imported, if task.imported == 1 { "" } else { "s" });
+ let label = crate::i18n::tr_format!("Add {} Photo{}", task.imported, if task.imported == 1 { "" } else { "s" });
app.session.merge_undo(steps, &label);
+ if task.auto {
+ if task.imported > 0 {
+ app.toast(ctx, format!("Auto Import: added {} photo{}", task.imported, if task.imported == 1 { "" } else { "s" }));
+ }
+ return;
+ }
if task.browse {
if task.failed > 0 {
- app.toast(ctx, format!("{} photo{} not readable", task.failed, if task.failed == 1 { "" } else { "s" }));
+ app.toast(ctx, crate::i18n::tr_format!("{} photo{} not readable", task.failed, if task.failed == 1 { "" } else { "s" }));
}
return;
}
@@@ -386,9 -599,13 +601,13 @@@
let _ = app.run("library.select", json!({"ids": [f]}));
}
let plural = |n: usize| if n == 1 { "" } else { "s" };
- let mut msg = crate::i18n::tr_format!("Imported {} photo{}", task.imported, plural(task.imported));
+ let mut msg = if task.cancelled {
- format!("Import cancelled · {} photo{} added", task.imported, plural(task.imported))
++ crate::i18n::tr_format!("Import cancelled · {} photo{} added", task.imported, plural(task.imported))
+ } else {
- format!("Imported {} photo{}", task.imported, plural(task.imported))
++ crate::i18n::tr_format!("Imported {} photo{}", task.imported, plural(task.imported))
+ };
if task.params["mode"] == "move" {
- msg.push_str(&format!(" · {} moved", task.moved));
+ msg.push_str(&crate::i18n::tr_format!(" · {} moved", task.moved));
if task.kept > 0 {
msg.push_str(&format!(" · {} original{} left at the source", task.kept, plural(task.kept)));
}
@@@ -407,16 -625,28 +627,32 @@@ pub fn progress(app: &mut LightcraftApp
let Some(task) = &app.import else { return };
let t = Tokens::get(ctx);
let frac = task.done as f32 / task.total.max(1) as f32;
- let text = format!("{} photos… {} of {}", if task.browse { "Reading" } else { "Adding" }, task.done, task.total);
+ let text = if task.cancelled {
- "Stopping…".to_string()
++ crate::i18n::tr("Stopping…").to_string()
++ } else if task.browse {
++ crate::i18n::tr_format!("Reading photos… {} of {}", task.done, task.total)
+ } else {
- format!("{} photos… {} of {}", if task.browse { "Reading" } else { "Adding" }, task.done, task.total)
++ crate::i18n::tr_format!("Adding photos… {} of {}", task.done, task.total)
+ };
+ let mut cancel = false;
- egui::Window::new("Importing").title_bar(false).resizable(false).anchor(Align2::CENTER_BOTTOM, [0.0, -80.0]).fixed_size([340.0, 80.0]).show(
- ctx,
- |ui| {
+ egui::Window::new(crate::i18n::tr("Importing"))
+ .title_bar(false)
+ .resizable(false)
+ .anchor(Align2::CENTER_BOTTOM, [0.0, -80.0])
- .fixed_size([340.0, 60.0])
++ .fixed_size([340.0, 80.0])
+ .show(ctx, |ui| {
ui.label(egui::RichText::new(text).color(t.text));
ui.add(egui::ProgressBar::new(frac).desired_width(320.0));
- let r = ui.add_enabled(!task.cancelled, egui::Button::new("Cancel"));
++ let r = ui.add_enabled(!task.cancelled, egui::Button::new(crate::i18n::tr("Cancel")));
+ register(ui.ctx(), "button:importCancel", r.rect);
+ cancel = r.clicked();
- },
- );
+ });
+ if cancel && let Some(task) = app.import.as_mut() {
+ task.cancelled = true;
+ if let Some(run) = &task.run {
+ run.cancel.store(true, Ordering::Relaxed);
+ }
+ }
}
/// The dialog body: options, then the candidate grid.
diff --cc crates/ui-egui/src/lib.rs
index ae7050bcb,7b22e1568..4f489f885
--- a/crates/ui-egui/src/lib.rs
+++ b/crates/ui-egui/src/lib.rs
@@@ -439,8 -480,8 +480,9 @@@ impl LightcraftApp
/// Per-frame logic before layout (control channel, renders, shortcuts, drops).
pub fn logic(&mut self, ctx: &egui::Context) {
+ i18n::set_language(self.ui.language);
let t0 = now_ms();
+ panels::library_problem::logic(self);
self.logic_inner(ctx);
self.perf.logic_ms = now_ms() - t0;
}
diff --cc crates/ui-egui/src/panels/dialogs.rs
index ea1bfa136,31ffb7865..6f94330e2
--- a/crates/ui-egui/src/panels/dialogs.rs
+++ b/crates/ui-egui/src/panels/dialogs.rs
@@@ -313,21 -360,28 +360,28 @@@ pub fn show(app: &mut LightcraftApp, ct
});
field(ui, "Start at", |ui| ui.add(egui::DragValue::new(start).range(0..=999_999)));
ui.label(
- egui::RichText::new("Tags: see Tags beside the template. Files are renamed on disk (with their XMP sidecars); existing names get -1, -2…")
+ egui::RichText::new(crate::i18n::tr("Tags: see Tags beside the template. Files are renamed on disk (with their XMP sidecars); existing names get -1, -2…"))
.color(t.text_dim),
);
- let preview = app.session.execute("photo.renamePreview", &json!({"template": template, "start": start})).unwrap_or_default();
- egui::Grid::new("rename-preview").num_columns(3).spacing([8.0, 2.0]).show(ui, |ui| {
- for pl in preview.as_array().into_iter().flatten().take(6) {
- ui.label(egui::RichText::new(pl["from"].as_str().unwrap_or("")).color(t.text_dim));
- ui.label(egui::RichText::new("→").color(t.text_dim));
- ui.label(egui::RichText::new(pl["to"].as_str().unwrap_or("")).color(t.text));
- ui.end_row();
+ let (preview, total) = rename_preview(app, ui.ctx(), template, *start as usize);
+ match &preview {
+ Some(rows) => {
+ egui::Grid::new("rename-preview").num_columns(3).spacing([8.0, 2.0]).show(ui, |ui| {
+ for pl in rows {
+ ui.label(egui::RichText::new(&pl.from).color(t.text_dim));
+ ui.label(egui::RichText::new("→").color(t.text_dim));
+ ui.label(egui::RichText::new(&pl.to).color(t.text));
+ ui.end_row();
+ }
+ });
}
- });
- let more = preview.as_array().map_or(0, Vec::len).saturating_sub(6);
+ None => {
+ ui.label(egui::RichText::new("Checking names…").color(t.text_dim));
+ }
+ }
+ let more = total.saturating_sub(RENAME_PREVIEW_ROWS);
if more > 0 {
- ui.label(egui::RichText::new(format!("… and {more} more")).color(t.text_dim));
+ ui.label(egui::RichText::new(crate::i18n::tr_format!("… and {more} more", more = more)).color(t.text_dim));
}
}
Dialog::RenameKeyword { from, to } => {
diff --cc crates/ui-egui/src/panels/grid.rs
index 927bdb6b0,dcebe199f..760abbfe0
--- a/crates/ui-egui/src/panels/grid.rs
+++ b/crates/ui-egui/src/panels/grid.rs
@@@ -879,17 -867,18 +879,18 @@@ pub fn context_menu(app: &mut Lightcraf
}
ui.separator();
// the original moved or its drive is gone: point the photo at the file again
- let missing = matches!(&app.session.catalog.photo(id).map(|p| p.source.clone()), Some(lightcraft_catalog::Source::File { path }) if !std::path::Path::new(path).exists());
+ // (a cached answer, checked off the UI thread)
+ let missing = matches!(&app.session.catalog.photo(id).map(|p| p.source.clone()), Some(lightcraft_catalog::Source::File { path }) if app.session.media.availability.is_offline(path));
- if missing && ui.button("Locate Missing File…").clicked() {
+ if missing && ui.button(crate::i18n::tr("Locate Missing File…")).clicked() {
let _ = app.run("photo.locate", json!({}));
}
- if ui.add_enabled(crate::menus::ui_enabled(app, "app.showInFinder"), egui::Button::new("Show in Finder")).clicked() {
+ if ui.add_enabled(crate::menus::ui_enabled(app, "app.showInFinder"), egui::Button::new(crate::i18n::tr("Show in Finder"))).clicked() {
let _ = app.run("app.showInFinder", json!({}));
}
- if ui.button("Export…").clicked() {
+ if ui.button(crate::i18n::tr("Export…")).clicked() {
let _ = app.run("dialog.export", json!({}));
}
- ui.menu_button("Export with Preset", |ui| {
+ ui.menu_button(crate::i18n::tr("Export with Preset"), |ui| {
for (p, _) in app.session.all_export_presets() {
if ui.button(&p.name).clicked() {
match app.run("app.export", json!({"preset": p.name, "background": true})) {
diff --cc crates/ui-egui/src/panels/library_problem.rs
index 000000000,a8a97148b..3cdcc605e
mode 000000,100644..100644
--- a/crates/ui-egui/src/panels/library_problem.rs
+++ b/crates/ui-egui/src/panels/library_problem.rs
@@@ -1,0 -1,182 +1,184 @@@
+ //! The library couldn't be opened at launch (issue #100): never a silent in-memory session. A
+ //! blocking window says which library and why, and offers Try Again, Choose Another Library…,
+ //! Continue Without Saving and Quit. Continuing shows a banner under the top bar for as long as the
+ //! session is temporary.
+
+ use egui::{Align2, RichText, vec2};
+ use serde_json::json;
+
+ use crate::LightcraftApp;
+ use crate::theme::Tokens;
+ use crate::widgets::register;
+
+ /// A library that failed to open (set by the host at launch).
+ #[derive(Clone, Debug, Default, PartialEq)]
+ pub struct LibraryProblem {
+ /// The library folder ("" when there was none to try, e.g. no home folder).
+ pub path: String,
+ /// Why it didn't open.
+ pub error: String,
+ /// Continue Without Saving was chosen: the banner shows instead of the window.
+ pub dismissed: bool,
+ /// Files from the command line, imported once a library opens.
+ pub pending_import: Vec<String>,
+ /// Try Again reopens `path` as a library folder (`false` in the browser, whose storage isn't
+ /// a folder: reloading the page tries again).
+ pub can_retry: bool,
+ }
+
+ impl LibraryProblem {
+ pub fn new(path: impl Into<String>, error: impl Into<String>) -> LibraryProblem {
+ LibraryProblem { path: path.into(), error: error.into(), can_retry: true, ..Default::default() }
+ }
+
+ /// `ui.inspect` → `libraryProblem`.
+ pub fn to_json(&self) -> serde_json::Value {
+ json!({"path": self.path, "error": self.error, "temporarySession": self.dismissed, "pendingImport": self.pending_import.len()})
+ }
+ }
+
+ /// What the user chose.
+ enum Choice {
+ Retry,
+ Choose,
+ Temporary,
+ Quit,
+ }
+
+ /// Open `path` (`None`: ask for a folder) through `app.openLibrary`; on success the problem is
+ /// over (and command-line files are imported), else it shows the new error.
+ fn open(app: &mut LightcraftApp, path: Option<String>) {
+ let params = match &path {
+ Some(p) => json!({"path": p}),
+ None => json!({}),
+ };
+ match app.run("app.openLibrary", params) {
+ Ok(serde_json::Value::Null) => {} // folder dialog cancelled
+ Ok(_) => {
+ let files = app.library_problem.take().map(|p| p.pending_import).unwrap_or_default();
+ if !files.is_empty() {
+ let _ = app.run("library.import", json!({"paths": files}));
+ }
+ }
+ Err(e) => {
+ if let Some(p) = app.library_problem.as_mut() {
+ if let Some(path) = path {
+ p.path = path;
+ }
+ p.error = e;
+ p.dismissed = false;
+ }
+ }
+ }
+ }
+
+ /// Clear the problem once a library is open (e.g. through Settings → Open Library…).
+ pub fn logic(app: &mut LightcraftApp) {
+ if app.library_problem.is_some() && app.session.library.is_some() {
+ app.library_problem = None;
+ }
+ }
+
+ /// The blocking window (until a choice is made).
+ pub fn show(app: &mut LightcraftApp, ctx: &egui::Context) {
+ let Some(problem) = app.library_problem.clone() else { return };
+ if problem.dismissed {
+ return;
+ }
+ let t = Tokens::get(ctx);
+ let screen = ctx.content_rect();
+ egui::Area::new(egui::Id::new("library-problem-dim")).order(egui::Order::Middle).fixed_pos(screen.min).interactable(true).show(ctx, |ui| {
+ // swallows clicks: nothing behind the window can be used meanwhile
+ ui.allocate_rect(screen, egui::Sense::click_and_drag());
+ ui.painter().rect_filled(screen, 0.0, egui::Color32::from_black_alpha(160));
+ });
+ let mut choice = None;
+ let frame = egui::Frame::window(&ctx.global_style()).inner_margin(egui::Margin::symmetric(18, 14));
- egui::Window::new("Your library couldn't be opened")
++ egui::Window::new(crate::i18n::tr("Your library couldn't be opened"))
+ .id(egui::Id::new("library-problem"))
+ .order(egui::Order::Foreground)
+ .collapsible(false)
+ .resizable(false)
+ .frame(frame)
+ .anchor(Align2::CENTER_CENTER, [0.0, 0.0])
+ .default_width(460.0)
+ .show(ctx, |ui| {
+ // a fixed width: a wrapped label in an auto-sized, centred window would move it every frame
+ ui.set_width(440.0);
+ ui.spacing_mut().item_spacing.y = 8.0;
+ if problem.path.is_empty() {
- ui.label(RichText::new("LightCraft couldn't find where to keep your library.").color(t.text));
++ ui.label(RichText::new(crate::i18n::tr("LightCraft couldn't find where to keep your library.")).color(t.text));
+ } else {
- ui.label(RichText::new("LightCraft couldn't open the library at").color(t.text_label));
++ ui.label(RichText::new(crate::i18n::tr("LightCraft couldn't open the library at")).color(t.text_label));
+ ui.label(RichText::new(&problem.path).font(t.semibold(12.5)).color(t.text));
+ }
+ ui.add(egui::Label::new(RichText::new(&problem.error).color(t.caution)).wrap());
+ ui.label(
+ RichText::new(
+ "Your photos and edits in it are untouched. You can try again (e.g. after closing another program that has it open \
+ or reconnecting its drive), open a different library or create a new one, or continue without a library — \
+ then nothing you do is saved.",
+ )
+ .color(t.text_dim),
+ );
+ ui.add_space(4.0);
+ ui.horizontal(|ui| {
+ let mut button = |ui: &mut egui::Ui, id: &str, label: &str, enabled: bool, c: Choice| {
- let r = ui.add_enabled(enabled, egui::Button::new(label).min_size(vec2(0.0, 26.0)));
++ let r = ui.add_enabled(enabled, egui::Button::new(crate::i18n::tr(label)).min_size(vec2(0.0, 26.0)));
+ register(ui.ctx(), format!("button:{id}"), r.rect);
+ if r.clicked() {
+ choice = Some(c);
+ }
+ };
+ button(ui, "libraryRetry", "Try Again", problem.can_retry && !problem.path.is_empty(), Choice::Retry);
+ button(ui, "libraryChoose", "Choose Another Library…", app.services.pick_folder.is_some(), Choice::Choose);
+ button(ui, "libraryTemporary", "Continue Without Saving", true, Choice::Temporary);
+ button(ui, "libraryQuit", "Quit", true, Choice::Quit);
+ });
+ });
+ match choice {
+ Some(Choice::Retry) => open(app, Some(problem.path)),
+ Some(Choice::Choose) => open(app, None),
+ Some(Choice::Temporary) => {
+ if let Some(p) = app.library_problem.as_mut() {
+ p.dismissed = true;
+ }
+ let files = app.library_problem.as_mut().map(|p| std::mem::take(&mut p.pending_import)).unwrap_or_default();
+ if !files.is_empty() {
+ let _ = app.run("library.import", json!({"paths": files}));
+ }
+ }
+ Some(Choice::Quit) => app.ui.quit = true,
+ None => {}
+ }
+ }
+
+ /// The banner under the top bar while the session is temporary (Continue Without Saving).
+ pub fn banner(app: &mut LightcraftApp, ui: &mut egui::Ui) {
+ if !app.library_problem.as_ref().is_some_and(|p| p.dismissed) {
+ return;
+ }
+ let t = Tokens::get(ui.ctx());
+ let mut reopen = false;
+ egui::Panel::top("library-problem-banner")
+ .exact_size(30.0)
+ .frame(egui::Frame::NONE.fill(t.caution).inner_margin(egui::Margin::symmetric(12, 0)))
+ .show(ui, |ui| {
+ ui.horizontal_centered(|ui| {
+ let r = ui.label(
- RichText::new("Temporary session — your library isn't open, and nothing you do here is saved.")
++ RichText::new(crate::i18n::tr("Temporary session — your library isn't open, and nothing you do here is saved."))
+ .font(t.semibold(12.5))
+ .color(t.canvas),
+ );
+ register(ui.ctx(), "indicator:temporarySession", r.rect);
- let b = ui.add(egui::Button::new(RichText::new("Open Library…").color(t.canvas)).fill(egui::Color32::from_black_alpha(40)));
++ let b = ui.add(
++ egui::Button::new(RichText::new(crate::i18n::tr("Open Library…")).color(t.canvas)).fill(egui::Color32::from_black_alpha(40)),
++ );
+ register(ui.ctx(), "button:libraryReopen", b.rect);
+ reopen = b.clicked();
+ });
+ });
+ if reopen && let Some(p) = app.library_problem.as_mut() {
+ p.dismissed = false;
+ }
+ }