garage44.eu/jeroen/pinnacle

logclone: git clone https://garage44.eu/jeroen/pinnacle.git

cartopolis-agent · 2026-11-30T18:39:20Z

fix(filer): ask about the one thing in a folder, not "the 1 things"

Deleting a folder with one file or folder in it asked "Delete the folder
X and the 1 things in it, for good?"; it now has a text of its own, in
Dutch too.
locale/src/nl.rs          | 3 ++-
 programs/src/bin/filer.rs | 4 ++++
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/locale/src/nl.rs b/locale/src/nl.rs
index a517630..042d22e 100644
--- a/locale/src/nl.rs
+++ b/locale/src/nl.rs
@@ -3,7 +3,7 @@
 //! missing here fails `every_text_the_programs_ask_for_is_translated`.
 
 #[rustfmt::skip]
-pub static TEXTS: [(&str, &str); 422] = [
+pub static TEXTS: [(&str, &str); 423] = [
     ("+  New note", "+  Nieuwe notitie"),
     (", kept", ", bewaard"),
     ("1 note", "1 notitie"),
@@ -76,6 +76,7 @@ pub static TEXTS: [(&str, &str); 422] = [
     ("Delete last digit", "Laatste cijfer wissen"),
     ("Delete message", "Verwijder bericht"),
     ("Delete the empty folder {} for good?", "De lege map {} voorgoed verwijderen?"),
+    ("Delete the folder {} and the one thing in it, for good?", "De map {} en het ene ding erin voorgoed verwijderen?"),
     ("Delete the folder {} and the {} things in it, for good?", "De map {} en de {} dingen erin voorgoed verwijderen?"),
     ("Delete this conversation from this device? They keep theirs.", "Dit gesprek van dit apparaat verwijderen? Zij houden het hunne."),
     ("Delete {} for good?", "{} voorgoed verwijderen?"),
diff --git a/programs/src/bin/filer.rs b/programs/src/bin/filer.rs
index c3bc981..0e238a3 100644
--- a/programs/src/bin/filer.rs
+++ b/programs/src/bin/filer.rs
@@ -862,6 +862,10 @@ fn list_pane(m: &Model, both: bool, tapped: &Signal<Option<Tap>>) -> View {
         let label = m.place().label.as_str();
         let ask = match m.page.own.len() {
             0 => tf("Delete the empty folder {} for good?", &[label]),
+            1 => tf(
+                "Delete the folder {} and the one thing in it, for good?",
+                &[label],
+            ),
             n => {
                 let ask = t("Delete the folder {} and the {} things in it, for good?");
                 fill(ask, &[label, &alloc::format!("{n}")])