diff options
| author | Ruben Beltran del Rio <jj@r.bdr.sh> | 2026-03-23 20:52:55 +0100 |
|---|---|---|
| committer | Rubén Beltrán del Río <jj@r.bdr.sh> | 2026-04-05 00:31:21 +0200 |
| commit | 1d28fb5599337bf1891ac8cc43b7656975d239d7 (patch) | |
| tree | e75bcfaed71d668c87afa65ca524d1a0338a0ce1 /src/handlers | |
| parent | ef32d65ac1852da581ac75d20f903dbcb2d0b5cd (diff) | |
Use english as the base language
Diffstat (limited to 'src/handlers')
| -rw-r--r-- | src/handlers/export.rs | 6 | ||||
| -rw-r--r-- | src/handlers/file.rs | 12 |
2 files changed, 15 insertions, 3 deletions
diff --git a/src/handlers/export.rs b/src/handlers/export.rs index bf9dfc5..6fb1713 100644 --- a/src/handlers/export.rs +++ b/src/handlers/export.rs @@ -42,6 +42,10 @@ pub fn export_to_file(model: &AppModel, path: &PathBuf, format: ImageFormat) { }; if let Err(error) = result { - dialogs::show_error(&model.window, &tr!("error.file.export"), &error); + dialogs::show_error( + &model.window, + &tr!("Could not export image. Please make sure the destination is writable."), + &error, + ); } } diff --git a/src/handlers/file.rs b/src/handlers/file.rs index bd501e8..f816e62 100644 --- a/src/handlers/file.rs +++ b/src/handlers/file.rs @@ -36,7 +36,11 @@ pub fn load_file(model: &mut AppModel, path: PathBuf) { model.modified = false; } Err(error) => { - dialogs::show_error(&model.window, &tr!("errors.file.open"), &error.to_string()); + dialogs::show_error( + &model.window, + &tr!("Could not open file. Please make sure the file is readable."), + &error.to_string(), + ); } } } @@ -59,7 +63,11 @@ pub fn save_to_file(model: &mut AppModel, path: PathBuf, close_after: bool) { } } Err(error) => { - dialogs::show_error(&model.window, &tr!("errors.file.save"), &error.to_string()); + dialogs::show_error( + &model.window, + &tr!("Could not save file. Please make sure the destination is writable."), + &error.to_string(), + ); } } } |