LightCraft: An open-source non-destructive photo editor written by scratch in pure Rust
i18n: translate the strings #312, #313 and #325 added (ja, pt-br, zh-hans, zh-hant)
Claudeb7f60a1fac95
diff --git a/crates/ui-egui/locales/ja-formats.json b/crates/ui-egui/locales/ja-formats.jsonindex 5a7d7a115..f5d7f284a 100644--- a/crates/ui-egui/locales/ja-formats.json+++ b/crates/ui-egui/locales/ja-formats.json@@ -4,9 +4,11 @@" · {} failed: {}": "・{}件失敗:{}"," · {} moved": "・{}件移動"," · {} not readable": "・{}件は読み込み不可",+ " · {} restored from Recently Deleted": "・最近削除した写真から{}枚を復元",", {failed} file{} not readable": "、{failed}件を読み込めません{:.0}","Add {local_n} to My Photos": "{local_n}枚をマイフォトに追加","Add {} Photo{}": "{}枚の写真を追加{:.0}",+ "Add {} Photo{}, restore {}": "{}枚の写真を追加{:.0}、{}枚を復元","Add “{}” to Favorites": "「{}」をお気に入りに追加","Added {n} photo{} to My Photos": "マイフォトに{n}枚を追加しました{:.0}","Added {n} photo{} to “{}”": "「{1}」に{n}枚を追加しました{0:.0}",@@ -53,6 +55,7 @@"Rename “{name}”": "「{name}」の名前を変更","Rendering on the CPU: {why}": "CPUで描画:{why}","Reset {} Channel": "{}チャンネルをリセット",+ "Restore {} Photo{}": "{}枚の写真を復元{:.0}","Saved export preset “{}”": "書き出しプリセット「{}」を保存しました","Show {hidden} hidden location{}": "非表示の{hidden}か所を表示{:.0}","Showing {n} of {}": "{}枚中{n}枚を表示",diff --git a/crates/ui-egui/locales/ja.json b/crates/ui-egui/locales/ja.jsonindex b6694c5ce..ab8024382 100644--- a/crates/ui-egui/locales/ja.json+++ b/crates/ui-egui/locales/ja.json@@ -40,6 +40,7 @@"Amount": "適用量","Aperture": "絞り","Application": "アプリケーション",+ "Apply": "適用","Apply Preset": "プリセットを適用","Approved": "承認済み","Aqua": "アクア",@@ -257,6 +258,7 @@"Edit in External Editor": "外部エディターで編集","Edited": "編集済み","Effects": "効果",+ "Empty Recently Deleted": "最近削除した写真を空にする","Enable Lens Corrections": "レンズ補正を有効にする","Enter Full Screen": "全画面表示","Erase": "消去",@@ -287,6 +289,9 @@"File Name": "ファイル名","File Path": "ファイルの場所","File Size": "ファイルサイズ",+ "Import as new": "新規として読み込む",+ "Lock": "ロック",+ "Locked": "ロック中","Random": "ランダム","Reshuffle": "シャッフルし直す","File name": "ファイル名",@@ -717,6 +722,8 @@"Resize to": "サイズ変更","Resolution (ppi)": "解像度(ppi)","Restore": "復元",+ "Restore keeps their edits; Import as new deletes the old record first.": "復元すると編集内容が残ります。新規として読み込むと、先に古い記録を削除します。",+ "Restore them": "復元する","Retouch": "レタッチ","Review Import": "読み込み内容を確認","Right-click a photo ▸ Set as Reference Photo, then View → Reference View (Shift+R)": "写真を右クリックして参照写真に設定し、「表示 → 参照表示」(⇧R)を選択してください",@@ -760,6 +767,7 @@"Set Color Label": "カラーラベルを設定","Set Develop Values": "現像設定を変更","Set Flag": "フラグを設定",+ "Set Image Zoom and Pan": "画像のズームとパンを設定","Set Point Curve": "ポイントカーブを変更","Set Profile": "プロファイルを設定","Set Rating": "評価を設定",@@ -934,6 +942,8 @@"Width (% of photo)": "幅(写真に対する%)","Width (px)": "幅(px)","Width × Height": "幅 × 高さ",+ "Will be replaced": "置き換えられます",+ "Will be restored": "復元されます","Window": "ウィンドウ","XMP sidecars": "XMPサイドカーファイル","Year": "年",diff --git a/crates/ui-egui/locales/pt-br-formats.json b/crates/ui-egui/locales/pt-br-formats.jsonindex 596056875..6c95cb3dd 100644--- a/crates/ui-egui/locales/pt-br-formats.json+++ b/crates/ui-egui/locales/pt-br-formats.json@@ -5,9 +5,11 @@" · {} failed: {}": " · {} falhou: {}"," · {} moved": " · {} movida(s)"," · {} not readable": " · {} não legível",+ " · {} restored from Recently Deleted": " · {} restaurada(s) de Excluídos recentemente",", {failed} file{} not readable": ", {failed} arquivo{:.0} não legível","Add {local_n} to My Photos": "Adicionar {local_n} a Minhas fotos","Add {} Photo{}": "Adicionar {} foto{:.0}",+ "Add {} Photo{}, restore {}": "Adicionar {} foto{:.0}, restaurar {}","Add “{}” to Favorites": "Adicionar “{}” aos favoritos","Added {n} photo{} to My Photos": "Adicionada {n} foto{:.0} a Minhas fotos","Added {n} photo{} to “{}”": "Adicionada {n} foto{:.0} a “{}”",@@ -68,6 +70,7 @@"Rendering on the CPU: {why}": "Renderizando na CPU: {why}","Reset {name}": "Redefinir {name}","Reset {} Channel": "Redefinir canal {}",+ "Restore {} Photo{}": "Restaurar {} foto{:.0}","Saved export preset “{}”": "Predefinição de exportação “{}” salva","Show {hidden} hidden location{}": "Mostrar {hidden} local{:.0} oculto","Showing {n} of {}": "Mostrando {n} de {}",diff --git a/crates/ui-egui/locales/pt-br.json b/crates/ui-egui/locales/pt-br.jsonindex 133de7d65..1f3a42feb 100644--- a/crates/ui-egui/locales/pt-br.json+++ b/crates/ui-egui/locales/pt-br.json@@ -49,6 +49,7 @@"Amount": "Quantidade","Aperture": "Abertura","Application": "Aplicativo",+ "Apply": "Aplicar","Apply Color Label Set": "Aplicar conjunto de rótulos de cor","Apply Filter Preset": "Aplicar predefinição de filtro","Apply Metadata Preset": "Aplicar predefinição de metadados",@@ -355,6 +356,7 @@"Edited": "Editada","Effect": "Efeito","Effects": "Efeitos",+ "Empty Recently Deleted": "Esvaziar Excluídos recentemente","Enable Lens Corrections": "Ativar correções de lente","End Interaction": "Encerrar interação","English": "Inglês",@@ -526,6 +528,7 @@"Import Presets…": "Importar predefinições…","Import Profiles": "Importar perfis","Import Profiles & Presets…": "Importar perfis e predefinições…",+ "Import as new": "Importar como novas","Import from Device": "Importar de dispositivo","Import from Folder…": "Importar de pasta…","Import photos with File → Import Photos… (Cmd+Shift+I), or drop them here": "Importe fotos com Arquivo → Importar fotos… (Cmd+Shift+I) ou solte-as aqui",@@ -613,6 +616,8 @@"Locate Missing File…": "Localizar arquivo ausente…","Locate Photo": "Localizar foto","Location": "Local",+ "Lock": "Travar",+ "Locked": "Travada","Long Edge": "Aresta longa","Looking for photos…": "Procurando fotos…","Lossless": "Sem perdas",@@ -952,6 +957,8 @@"Restore": "Restaurar","Restore Library from Backup…": "Restaurar biblioteca do backup…","Restore Version": "Restaurar versão",+ "Restore keeps their edits; Import as new deletes the old record first.": "Restaurar mantém as edições; Importar como novas apaga antes o registro antigo.",+ "Restore them": "Restaurá-las","Retouch": "Retoque","Revert": "Reverter","Review Import": "Revisar importação",@@ -1018,6 +1025,7 @@"Set Crop": "Definir recorte","Set Develop Values": "Definir valores de revelação","Set Flag": "Definir marcação",+ "Set Image Zoom and Pan": "Definir zoom e posição da imagem","Set Mask Adjustments": "Definir ajustes da máscara","Set Point Curve": "Definir curva de pontos","Set Profile": "Definir perfil",@@ -1245,6 +1253,8 @@"Width (% of photo)": "Largura (% da foto)","Width (px)": "Largura (px)","Width × Height": "Largura × altura",+ "Will be replaced": "Será substituída",+ "Will be restored": "Será restaurada","Window": "Janela","Winter Blue": "Azul invernal","XMP Sidecar Preferences": "Preferências de sidecar XMP",diff --git a/crates/ui-egui/locales/zh-hans-formats.json b/crates/ui-egui/locales/zh-hans-formats.jsonindex e4ae48f4b..b87d35fd2 100644--- a/crates/ui-egui/locales/zh-hans-formats.json+++ b/crates/ui-egui/locales/zh-hans-formats.json@@ -4,9 +4,11 @@" · {} failed: {}": " · {0} 个失败:{1}"," · {} moved": " · 已移动 {0} 个"," · {} not readable": " · {0} 个无法读取",+ " · {} restored from Recently Deleted": " · 已从“最近删除”恢复 {} 张",", {failed} file{} not readable": ",{failed} 个文件无法读取{0:.0}","Add {local_n} to My Photos": "将 {local_n} 张照片添加到我的照片","Add {} Photo{}": "添加 {0} 张照片{1:.0}",+ "Add {} Photo{}, restore {}": "添加 {0} 张照片{1:.0},恢复 {2} 张","Add “{}” to Favorites": "将“{0}”添加到收藏夹","Added {n} photo{} to My Photos": "已将 {n} 张照片添加到我的照片{0:.0}","Added {n} photo{} to “{}”": "已将 {n} 张照片添加到“{1}”{0:.0}",@@ -53,6 +55,7 @@"Rename “{name}”": "重命名“{name}”","Rendering on the CPU: {why}": "正在使用 CPU 渲染:{why}","Reset {} Channel": "重置 {0} 通道",+ "Restore {} Photo{}": "恢复 {0} 张照片{1:.0}","Saved export preset “{}”": "已保存导出预设“{0}”","Show {hidden} hidden location{}": "显示 {hidden} 个隐藏位置{0:.0}","Showing {n} of {}": "显示 {0} 张中的 {n} 张",diff --git a/crates/ui-egui/locales/zh-hans.json b/crates/ui-egui/locales/zh-hans.jsonindex 4a6693912..e9282fdb0 100644--- a/crates/ui-egui/locales/zh-hans.json+++ b/crates/ui-egui/locales/zh-hans.json@@ -46,6 +46,7 @@"Amount": "数量","Aperture": "光圈","Application": "应用程序",+ "Apply": "应用","Apply Color Label Set": "应用颜色标签集","Apply Filter Preset": "应用筛选器预设","Apply Metadata Preset": "应用元数据预设",@@ -348,6 +349,7 @@"Edited": "已编辑","Effect": "效果","Effects": "效果",+ "Empty Recently Deleted": "清空“最近删除”","Enable Lens Corrections": "启用镜头校正","End Interaction": "结束交互","English": "English",@@ -389,6 +391,9 @@"File Name": "文件名","File Path": "文件路径","File Size": "文件大小",+ "Import as new": "作为新照片导入",+ "Lock": "锁定",+ "Locked": "已锁定","Random": "随机","Reshuffle": "重新随机排序","File name": "文件名",@@ -936,6 +941,8 @@"Restore": "恢复","Restore Library from Backup…": "从备份恢复图库…","Restore Version": "恢复版本",+ "Restore keeps their edits; Import as new deletes the old record first.": "恢复会保留编辑;作为新照片导入会先删除旧记录。",+ "Restore them": "恢复","Retouch": "润饰","Revert": "恢复","Review Import": "查看导入内容",@@ -1001,6 +1008,7 @@"Set Crop": "设置裁切","Set Develop Values": "设置编辑参数","Set Flag": "设置旗标",+ "Set Image Zoom and Pan": "设置图像缩放和平移","Set Mask Adjustments": "设置蒙版调整","Set Point Curve": "设置点曲线","Set Profile": "设置配置文件",@@ -1222,6 +1230,8 @@"Width (% of photo)": "宽度(照片百分比)","Width (px)": "宽度 (px)","Width × Height": "宽度 × 高度",+ "Will be replaced": "将替换",+ "Will be restored": "将恢复","Window": "窗口","Winter Blue": "冬日蓝调","XMP Sidecar Preferences": "XMP 附属文件偏好设置",diff --git a/crates/ui-egui/locales/zh-hant-formats.json b/crates/ui-egui/locales/zh-hant-formats.jsonindex 1c1266c00..fa975732d 100644--- a/crates/ui-egui/locales/zh-hant-formats.json+++ b/crates/ui-egui/locales/zh-hant-formats.json@@ -4,9 +4,11 @@" · {} failed: {}": " · {} 個失敗:{}"," · {} moved": " · 已移動 {} 個"," · {} not readable": " · {} 個無法讀取",+ " · {} restored from Recently Deleted": " · 已從「最近刪除」還原 {} 張",", {failed} file{} not readable": ",{failed} 個檔案無法讀取{:.0}","Add {local_n} to My Photos": "將 {local_n} 張加入我的照片","Add {} Photo{}": "新增 {} 張照片{:.0}",+ "Add {} Photo{}, restore {}": "新增 {} 張照片{:.0},還原 {} 張","Add “{}” to Favorites": "將「{}」加入喜好項目","Added {n} photo{} to My Photos": "已將 {n} 張照片加入我的照片{:.0}","Added {n} photo{} to “{}”": "已將 {n} 張照片加入「{1}」{0:.0}",@@ -64,6 +66,7 @@"Rendering on the CPU: {why}": "使用 CPU 算繪:{why}","Reset {name}": "重設{name}","Reset {} Channel": "重設 {} 通道",+ "Restore {} Photo{}": "還原 {} 張照片{:.0}","Saved export preset “{}”": "已儲存匯出預設集「{}」","Show {hidden} hidden location{}": "顯示 {hidden} 個隱藏的位置{:.0}","Showing {n} of {}": "顯示 {n}/{} 張",diff --git a/crates/ui-egui/locales/zh-hant.json b/crates/ui-egui/locales/zh-hant.jsonindex 128c14116..f04bdbd9c 100644--- a/crates/ui-egui/locales/zh-hant.json+++ b/crates/ui-egui/locales/zh-hant.json@@ -46,6 +46,7 @@"Amount": "強度","Aperture": "光圈","Application": "應用程式",+ "Apply": "套用","Apply Color Label Set": "套用色彩標籤集","Apply Filter Preset": "套用篩選預設集","Apply Metadata Preset": "套用中繼資料預設集",@@ -348,6 +349,7 @@"Edited": "已編輯","Effect": "效果","Effects": "效果",+ "Empty Recently Deleted": "清空「最近刪除」","Enable Lens Corrections": "啟用鏡頭校正","End Interaction": "結束互動","English": "English",@@ -389,6 +391,9 @@"File Name": "檔案名稱","File Path": "檔案路徑","File Size": "檔案大小",+ "Import as new": "以新照片匯入",+ "Lock": "鎖定",+ "Locked": "已鎖定","Random": "隨機","Reshuffle": "重新隨機排序","File name": "檔案名稱",@@ -936,6 +941,8 @@"Restore": "還原","Restore Library from Backup…": "從備份還原照片庫…","Restore Version": "還原版本",+ "Restore keeps their edits; Import as new deletes the old record first.": "還原會保留編輯;以新照片匯入會先刪除舊紀錄。",+ "Restore them": "還原","Retouch": "修飾","Revert": "回復至上次儲存","Review Import": "檢視匯入",@@ -1001,6 +1008,7 @@"Set Crop": "設定裁切","Set Develop Values": "設定顯像參數","Set Flag": "設定旗標",+ "Set Image Zoom and Pan": "設定影像縮放與平移","Set Mask Adjustments": "設定遮色片調整","Set Point Curve": "設定點曲線","Set Profile": "設定描述檔",@@ -1222,6 +1230,8 @@"Width (% of photo)": "寬度(照片百分比)","Width (px)": "寬度(像素)","Width × Height": "寬度 × 高度",+ "Will be replaced": "將取代",+ "Will be restored": "將還原","Window": "視窗","Winter Blue": "冬日藍調","XMP Sidecar Preferences": "XMP 附屬檔案偏好設定",diff --git a/crates/ui-egui/src/import.rs b/crates/ui-egui/src/import.rsindex e88e518a2..922d08fe8 100644--- a/crates/ui-egui/src/import.rs+++ b/crates/ui-egui/src/import.rs@@ -625,9 +625,9 @@ fn finish(app: &mut LightcraftApp, ctx: &egui::Context, task: ImportTask) {let steps = app.session.undo.len().saturating_sub(task.undo0);let plural = |n: usize| if n == 1 { "" } else { "s" };let label = if task.imported == 0 && task.restored > 0 {- format!("Restore {} Photo{}", task.restored, plural(task.restored))+ crate::i18n::tr_format!("Restore {} Photo{}", task.restored, plural(task.restored))} else if task.restored > 0 {- format!("Add {} Photo{}, restore {}", task.imported, plural(task.imported), task.restored)+ crate::i18n::tr_format!("Add {} Photo{}, restore {}", task.imported, plural(task.imported), task.restored)} else {crate::i18n::tr_format!("Add {} Photo{}", task.imported, if task.imported == 1 { "" } else { "s" })};@@ -659,7 +659,7 @@ fn finish(app: &mut LightcraftApp, ctx: &egui::Context, task: ImportTask) {crate::i18n::tr_format!("Imported {} photo{}", task.imported, plural(task.imported))};if task.restored > 0 {- msg.push_str(&format!(" · {} restored from Recently Deleted", task.restored));+ msg.push_str(&crate::i18n::tr_format!(" · {} restored from Recently Deleted", task.restored));}if task.params["mode"] == "move" {msg.push_str(&crate::i18n::tr_format!(" · {} moved", task.moved));