aboutsummaryrefslogtreecommitdiff
path: root/src/handlers/file.rs
diff options
context:
space:
mode:
authorRuben Beltran del Rio <jj@r.bdr.sh>2026-03-23 20:52:55 +0100
committerRubén Beltrán del Río <jj@r.bdr.sh>2026-04-05 00:31:21 +0200
commit1d28fb5599337bf1891ac8cc43b7656975d239d7 (patch)
treee75bcfaed71d668c87afa65ca524d1a0338a0ce1 /src/handlers/file.rs
parentef32d65ac1852da581ac75d20f903dbcb2d0b5cd (diff)
Use english as the base language
Diffstat (limited to 'src/handlers/file.rs')
-rw-r--r--src/handlers/file.rs12
1 files changed, 10 insertions, 2 deletions
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(),
+ );
}
}
}