PhotoCraft: An open-source, photo editor written by scratch in pure Rust
Non-Unicode arguments: translate the desktop notice (follow-up to #1168) (#1359)
BFlatb58b8df36b22
diff --git a/apps/photocraft/src/main.rs b/apps/photocraft/src/main.rsindex 146fdaade..e67a819f5 100644--- a/apps/photocraft/src/main.rs+++ b/apps/photocraft/src/main.rs@@ -439,8 +439,10 @@ fn main() -> eframe::Result {// Paths on the command line (Linux/Windows file associations, `photocraft a.psd`).app.open_paths(&files);if !unreadable_paths.is_empty() {- let lines = unreadable_paths.iter().map(|p| format!("{p}: the path is not valid Unicode; rename the file and open it again.")).collect();- photocraft_ui_egui::notices::post(&mut app, "Could not open", lines, true, None);+ use photocraft_ui_egui::i18n;+ let line = i18n::t("{path}: the path is not valid Unicode; rename the file and open it again.");+ let lines = unreadable_paths.iter().map(|p| i18n::fmt(line, &[("path", p.as_str())])).collect();+ photocraft_ui_egui::notices::post(&mut app, i18n::t("Could not open"), lines, true, None);}// Portable marker found but its data folder isn't writable (#228): say where settings went.if let Some(w) = &app_dirs::current().warning {diff --git a/crates/ui-egui/src/i18n/cs.tsv b/crates/ui-egui/src/i18n/cs.tsvindex 5a5bbb95c..0e95bc5ac 100644--- a/crates/ui-egui/src/i18n/cs.tsv+++ b/crates/ui-egui/src/i18n/cs.tsv@@ -2163,6 +2163,8 @@ cameraRaw Color BarvyChannels: Kanály:Knockout VyřazeníApply At Canvas Bounds Použít efekt na hranicích plátna+ Could not open Nelze otevřít+ {path}: the path is not valid Unicode; rename the file and open it again. {path}: cesta není platný Unicode; přejmenujte soubor a otevřete jej znovu.# Fill dialog, layer style contours and Image SizeContents: Obsah:diff --git a/crates/ui-egui/src/i18n/de.tsv b/crates/ui-egui/src/i18n/de.tsvindex b7d3c853f..3e41e5d9e 100644--- a/crates/ui-egui/src/i18n/de.tsv+++ b/crates/ui-egui/src/i18n/de.tsv@@ -2203,6 +2203,8 @@Channels: Kanäle:Knockout AussparungApply At Canvas Bounds Effekt an Arbeitsflächenbegrenzungen anwenden+ Could not open Öffnen nicht möglich+ {path}: the path is not valid Unicode; rename the file and open it again. {path}: Der Pfad ist kein gültiges Unicode; benennen Sie die Datei um und öffnen Sie sie erneut.# Fill dialog, layer style contours and Image SizeContents: Inhalt:diff --git a/crates/ui-egui/src/i18n/es.tsv b/crates/ui-egui/src/i18n/es.tsvindex e1f4c19b7..840ff8304 100644--- a/crates/ui-egui/src/i18n/es.tsv+++ b/crates/ui-egui/src/i18n/es.tsv@@ -2234,6 +2234,8 @@ cameraRaw Amount CantidadChannels: Canales:Knockout CoberturaApply At Canvas Bounds Aplicar efecto en los límites del lienzo+ Could not open No se pudo abrir+ {path}: the path is not valid Unicode; rename the file and open it again. {path}: la ruta no es Unicode válido; cambia el nombre del archivo y vuelve a abrirlo.# Fill dialog, layer style contours and Image SizeContents: Contenido:diff --git a/crates/ui-egui/src/i18n/fr.tsv b/crates/ui-egui/src/i18n/fr.tsvindex c0de419d3..a37c383d9 100644--- a/crates/ui-egui/src/i18n/fr.tsv+++ b/crates/ui-egui/src/i18n/fr.tsv@@ -2594,6 +2594,8 @@ cameraRaw Blending FusionChannels: Couches :Knockout MasquageApply At Canvas Bounds Appliquer l’effet aux limites de la zone de travail+ Could not open Impossible d’ouvrir+ {path}: the path is not valid Unicode; rename the file and open it again. {path} : le chemin n’est pas un Unicode valide ; renommez le fichier puis rouvrez-le.# Fill dialog, layer style contours and Image SizeContents: Contenu :diff --git a/crates/ui-egui/src/i18n/id.tsv b/crates/ui-egui/src/i18n/id.tsvindex 86a9d98e0..af653b21f 100644--- a/crates/ui-egui/src/i18n/id.tsv+++ b/crates/ui-egui/src/i18n/id.tsv@@ -2581,6 +2581,8 @@ cameraRaw Blending PembauranChannels: Channel:Knockout KnockoutApply At Canvas Bounds Terapkan efek di batas kanvas+ Could not open Tidak dapat membuka+ {path}: the path is not valid Unicode; rename the file and open it again. {path}: jalur bukan Unicode yang valid; ganti nama file lalu buka lagi.# Fill dialog, layer style contours and Image SizeContents: Isi:diff --git a/crates/ui-egui/src/i18n/it.tsv b/crates/ui-egui/src/i18n/it.tsvindex 162b3fc10..69ae7fa53 100644--- a/crates/ui-egui/src/i18n/it.tsv+++ b/crates/ui-egui/src/i18n/it.tsv@@ -2237,6 +2237,8 @@ cameraRaw Amount QuantitàAdd to Swatches Aggiungi ai campioniConvert to Layers Converti in livelliApply At Canvas Bounds Applica effetto ai limiti dell’area di lavoro+ Could not open Impossibile aprire+ {path}: the path is not valid Unicode; rename the file and open it again. {path}: il percorso non è Unicode valido; rinomina il file e riaprilo.# Fill dialog, layer style contours and Image SizeContents: Contenuto:diff --git a/crates/ui-egui/src/i18n/ja.tsv b/crates/ui-egui/src/i18n/ja.tsvindex b3f30cd47..c9f725d63 100644--- a/crates/ui-egui/src/i18n/ja.tsv+++ b/crates/ui-egui/src/i18n/ja.tsv@@ -2146,6 +2146,8 @@ cameraRaw Color カラーChannels: チャンネル:Knockout ノックアウトApply At Canvas Bounds カンバスの境界に効果を適用+ Could not open 開けませんでした+ {path}: the path is not valid Unicode; rename the file and open it again. {path}: パスが有効な Unicode ではありません。ファイル名を変更してから開き直してください。# Fill dialog, layer style contours and Image SizeContents: 内容:diff --git a/crates/ui-egui/src/i18n/ko.tsv b/crates/ui-egui/src/i18n/ko.tsvindex e10cfeb8c..1cf49d392 100644--- a/crates/ui-egui/src/i18n/ko.tsv+++ b/crates/ui-egui/src/i18n/ko.tsv@@ -2753,6 +2753,8 @@ cameraRaw Color 색상Channels: 채널:Knockout 녹아웃Apply At Canvas Bounds 캔버스 경계에 효과 적용+ Could not open 열 수 없음+ {path}: the path is not valid Unicode; rename the file and open it again. {path}: 경로가 올바른 유니코드가 아닙니다. 파일 이름을 바꾼 뒤 다시 여세요.Good 좋음Best 최적diff --git a/crates/ui-egui/src/i18n/pl.tsv b/crates/ui-egui/src/i18n/pl.tsvindex 59ae547b4..25c296494 100644--- a/crates/ui-egui/src/i18n/pl.tsv+++ b/crates/ui-egui/src/i18n/pl.tsv@@ -3194,6 +3194,8 @@ cameraRaw Roughness ChropowatośćMore documents Więcej dokumentówDeveloping {name} Wywoływanie {name}Camera Raw ({name}) Camera Raw ({name})+ Could not open Nie można otworzyć+ {path}: the path is not valid Unicode; rename the file and open it again. {path}: ścieżka nie jest prawidłowym Unicode; zmień nazwę pliku i otwórz go ponownie.Native file drag-and-drop is not supported on Wayland yet. Use File › Open, or copy the image in your file manager and paste it with {paste}. Natywne przeciąganie i upuszczanie plików nie jest jeszcze obsługiwane w Wayland. Użyj Plik › Otwórz albo skopiuj obraz w menedżerze plików i wklej go za pomocą {paste}.To drop files, start PhotoCraft under XWayland: `{command}` Aby upuszczać pliki, uruchom PhotoCraft pod XWayland: `{command}`Edit › Paste Edycja › Wklejdiff --git a/crates/ui-egui/src/i18n/pt-br.tsv b/crates/ui-egui/src/i18n/pt-br.tsvindex 6d0b464a7..4111d3250 100644--- a/crates/ui-egui/src/i18n/pt-br.tsv+++ b/crates/ui-egui/src/i18n/pt-br.tsv@@ -2601,6 +2601,8 @@ cameraRaw Whites BrancosChannels: Canais:Knockout VazadoApply At Canvas Bounds Aplicar efeito nos limites da tela+ Could not open Não foi possível abrir+ {path}: the path is not valid Unicode; rename the file and open it again. {path}: o caminho não é Unicode válido; renomeie o arquivo e abra-o novamente.# Fill dialog, layer style contours and Image SizeContents: Conteúdo:diff --git a/crates/ui-egui/src/i18n/ru.tsv b/crates/ui-egui/src/i18n/ru.tsvindex 9626313ba..8dae0f1af 100644--- a/crates/ui-egui/src/i18n/ru.tsv+++ b/crates/ui-egui/src/i18n/ru.tsv@@ -2440,6 +2440,8 @@ cameraRaw Roughness НеровностьChannels: Каналы:Knockout ПросвечиваниеApply At Canvas Bounds Применить эффект на границах холста+ Could not open Не удалось открыть+ {path}: the path is not valid Unicode; rename the file and open it again. {path}: путь не является допустимым Unicode; переименуйте файл и откройте его снова.# Fill dialog, layer style contours and Image SizeContents: Содержимое:diff --git a/crates/ui-egui/src/i18n/zh-hans.tsv b/crates/ui-egui/src/i18n/zh-hans.tsvindex 7df29203a..84f1a0ca8 100644--- a/crates/ui-egui/src/i18n/zh-hans.tsv+++ b/crates/ui-egui/src/i18n/zh-hans.tsv@@ -2171,6 +2171,8 @@ cameraRaw Blending 混合Channels: 通道:Knockout 挖空Apply At Canvas Bounds 应用画布边界的效果+ Could not open 无法打开+ {path}: the path is not valid Unicode; rename the file and open it again. {path}:路径不是有效的 Unicode;请重命名文件后再打开。# Fill dialog, layer style contours and Image SizeContents: 内容:diff --git a/crates/ui-egui/src/i18n/zh-hant.tsv b/crates/ui-egui/src/i18n/zh-hant.tsvindex 877862127..285ec4407 100644--- a/crates/ui-egui/src/i18n/zh-hant.tsv+++ b/crates/ui-egui/src/i18n/zh-hant.tsv@@ -2140,6 +2140,8 @@ cameraRaw Blending 混合Channels: 色版:Knockout 去底色Apply At Canvas Bounds 套用效果至版面邊界+ Could not open 無法開啟+ {path}: the path is not valid Unicode; rename the file and open it again. {path}:路徑不是有效的 Unicode;請重新命名檔案後再開啟。# Fill dialog, layer style contours and Image SizeContents: 內容: