Non-Unicode arguments: translate the desktop notice (follow-up to #1168) (#1359)

* Non-Unicode arguments: translate the notice; keep run's doc comment on run

The "Could not open" notice for a path that is not valid Unicode is
translated in every shipped language, and the CLI's "Run the CLI" doc
comment moves back onto run (run_os has its own).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01UHgFEHEsefoQoBParH47JA

* Non-Unicode arguments: Polish translations

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01UHgFEHEsefoQoBParH47JA

---------

Co-authored-by: Claude <[email protected]>
This commit is contained in:
BFlatandClaude Opus 5.5 authored and GitHub committed 2026-10-09 09:00:44 +07:00
1 parent c04624d119
commit b58b8df36b
14 files changed
+30 -2

No files matched your search

+4 -2
View File
@@ -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 {
+2
View File
@@ -2163,6 +2163,8 @@ cameraRaw Color Barvy
Channels: 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 Size
Contents: Obsah:
Can't render this file because it contains an unexpected character in line 6 and column 47.
+2
View File
@@ -2203,6 +2203,8 @@
Channels: Kanäle:
Knockout Aussparung
Apply 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 Size
Contents: Inhalt:
Can't render this file because it contains an unexpected character in line 6 and column 47.
+2
View File
@@ -2234,6 +2234,8 @@ cameraRaw Amount Cantidad
Channels: Canales:
Knockout Cobertura
Apply 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 Size
Contents: Contenido:
Can't render this file because it contains an unexpected character in line 4 and column 47.
+2
View File
@@ -2594,6 +2594,8 @@ cameraRaw Blending Fusion
Channels: Couches :
Knockout Masquage
Apply 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 Size
Contents: Contenu :
Can't render this file because it contains an unexpected character in line 6 and column 47.
+2
View File
@@ -2581,6 +2581,8 @@ cameraRaw Blending Pembauran
Channels: Channel:
Knockout Knockout
Apply 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 Size
Contents: Isi:
Can't render this file because it contains an unexpected character in line 4 and column 47.
+2
View File
@@ -2237,6 +2237,8 @@ cameraRaw Amount Quantità
Add to Swatches Aggiungi ai campioni
Convert to Layers Converti in livelli
Apply 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 Size
Contents: Contenuto:
1 # Italian (it) catalog. Columns, separated by a TAB: context <TAB> source <TAB> translation
2237
2238
2239
2240
2241
2242
2243
2244
+2
View File
@@ -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 Size
Contents: 内容:
Can't render this file because it contains an unexpected character in line 6 and column 47.
+2
View File
@@ -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 최적
1 # Korean (ko) catalog. UTF-8: context<TAB>English source<TAB>translation.
2753
2754
2755
2756
2757
2758
2759
2760
+2
View File
@@ -3194,6 +3194,8 @@ cameraRaw Roughness Chropowatość
More documents Więcej dokumentów
Developing {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 › Wklej
Can't render this file because it contains an unexpected character in line 6 and column 47.
+2
View File
@@ -2601,6 +2601,8 @@ cameraRaw Whites Brancos
Channels: Canais:
Knockout Vazado
Apply 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 Size
Contents: Conteúdo:
Can't render this file because it contains an unexpected character in line 6 and column 47.
+2
View File
@@ -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 Size
Contents: Содержимое:
Can't render this file because it contains an unexpected character in line 6 and column 47.
+2
View File
@@ -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 Size
Contents: 内容:
1 # Simplified Chinese (zh-hans) catalog. UTF-8, TAB-separated columns:
2171
2172
2173
2174
2175
2176
2177
2178
+2
View File
@@ -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 Size
Contents: 內容:
Can't render this file because it contains an unexpected character in line 6 and column 47.