From afc928626a5927f84da63065b568cd1acc6ad643 Mon Sep 17 00:00:00 2001 From: Steven Cohnd Date: Mon, 21 Oct 2024 16:29:43 -0400 Subject: [PATCH] Add due date to Reminder toast notification #1571 --- OneMore/Commands/CommandService.cs | 2 +- OneMore/Commands/Reminders/ReminderService.cs | 1 + OneMore/Properties/Resources.Designer.cs | 2 +- OneMore/Properties/Resources.ar-SA.resx | 2 +- OneMore/Properties/Resources.de-DE.resx | 2 +- OneMore/Properties/Resources.es-ES.resx | 2 +- OneMore/Properties/Resources.fr-FR.resx | 2 +- OneMore/Properties/Resources.he-IL.resx | 2 +- OneMore/Properties/Resources.ja-JP.resx | 2 +- OneMore/Properties/Resources.nl-NL.resx | 2 +- OneMore/Properties/Resources.pl-PL.resx | 2 +- OneMore/Properties/Resources.pt-BR.resx | 2 +- OneMore/Properties/Resources.resx | 2 +- OneMore/Properties/Resources.zh-CN.resx | 2 +- 14 files changed, 14 insertions(+), 13 deletions(-) diff --git a/OneMore/Commands/CommandService.cs b/OneMore/Commands/CommandService.cs index dedefd26a5..e5acee24c4 100644 --- a/OneMore/Commands/CommandService.cs +++ b/OneMore/Commands/CommandService.cs @@ -76,7 +76,7 @@ public void Startup() await server.WaitForConnectionAsync(); var buffer = new byte[MaxBytes]; - await server.ReadAsync(buffer, 0, MaxBytes); + _ = await server.ReadAsync(buffer, 0, MaxBytes); data = Encoding.UTF8.GetString(buffer, 0, buffer.Length).Trim((char)0); //logger.WriteLine($"pipe received [{data}]"); diff --git a/OneMore/Commands/Reminders/ReminderService.cs b/OneMore/Commands/Reminders/ReminderService.cs index 1a53d622f5..cf132e7bd3 100644 --- a/OneMore/Commands/Reminders/ReminderService.cs +++ b/OneMore/Commands/Reminders/ReminderService.cs @@ -122,6 +122,7 @@ await ReminderIsValid(reminder, pageID, one)) Send( string.Format( Resx.Reminder_PastStart, + reminder.Start.ToShortFriendlyString(), reminder.Due.ToShortFriendlyString(), reminder.Subject ), diff --git a/OneMore/Properties/Resources.Designer.cs b/OneMore/Properties/Resources.Designer.cs index 390a1fbc72..7a94593d97 100644 --- a/OneMore/Properties/Resources.Designer.cs +++ b/OneMore/Properties/Resources.Designer.cs @@ -6547,7 +6547,7 @@ internal static string Reminder_PastDue { } /// - /// Looks up a localized string similar to Task is past its start date of {0}, "{1}". Click here to navigate to this task. + /// Looks up a localized string similar to Task is past its start date of {0}; due {1}. "{2}". Click here to navigate to this task. /// internal static string Reminder_PastStart { get { diff --git a/OneMore/Properties/Resources.ar-SA.resx b/OneMore/Properties/Resources.ar-SA.resx index e6443d0849..abe15e997c 100644 --- a/OneMore/Properties/Resources.ar-SA.resx +++ b/OneMore/Properties/Resources.ar-SA.resx @@ -2518,7 +2518,7 @@ ISO-code then comma then language name toast message - تجاوزت المهمة تاريخ بدايتها في {0} ، "{1}". + لقد تجاوزت المهمة تاريخ بدايتها {0}؛ مستحق {1}. "{2}". انقر هنا للانتقال إلى هذه المهمة toast message diff --git a/OneMore/Properties/Resources.de-DE.resx b/OneMore/Properties/Resources.de-DE.resx index 1da254dfa3..676d616250 100644 --- a/OneMore/Properties/Resources.de-DE.resx +++ b/OneMore/Properties/Resources.de-DE.resx @@ -2516,7 +2516,7 @@ Aufgeschoben toast message - Aufgabe hat das Startdatum {0}, "{1}" überschritten. + Die Aufgabe hat ihr Startdatum {0} überschritten; fällig {1}. „{2}“. Klicken Sie hier, um zu dieser Aufgabe zu navigieren toast message diff --git a/OneMore/Properties/Resources.es-ES.resx b/OneMore/Properties/Resources.es-ES.resx index 3afee8308e..4c4a131d74 100644 --- a/OneMore/Properties/Resources.es-ES.resx +++ b/OneMore/Properties/Resources.es-ES.resx @@ -2518,7 +2518,7 @@ Diferido toast message - La tarea ha superado su fecha de inicio de {0}, "{1}". + La tarea ya pasó su fecha de inicio de {0}; debido {1}. "{2}". Haga clic aquí para navegar a esta tarea toast message diff --git a/OneMore/Properties/Resources.fr-FR.resx b/OneMore/Properties/Resources.fr-FR.resx index fd3bb381fb..1c3cb84a32 100644 --- a/OneMore/Properties/Resources.fr-FR.resx +++ b/OneMore/Properties/Resources.fr-FR.resx @@ -2518,7 +2518,7 @@ Différé toast message - La tâche a dépassé sa date de début de {0}, "{1}". + La tâche a dépassé sa date de début de {0} ; dû {1}. "{2}". Cliquez ici pour accéder à cette tâche toast message diff --git a/OneMore/Properties/Resources.he-IL.resx b/OneMore/Properties/Resources.he-IL.resx index 190d449e18..e8b686ef6b 100644 --- a/OneMore/Properties/Resources.he-IL.resx +++ b/OneMore/Properties/Resources.he-IL.resx @@ -2519,7 +2519,7 @@ ISO-code then comma then language name toast message - המשימה עברה את תאריך ההתחלה שלה של {0}, "{1}". לחץ כאן כדי לנווט למשימה זו + המשימה עברה את תאריך ההתחלה שלה של {0}; לפירעון {1}. "{2}". לחץ כאן כדי לנווט למשימה זו toast message diff --git a/OneMore/Properties/Resources.ja-JP.resx b/OneMore/Properties/Resources.ja-JP.resx index 4beed8f514..c69bd6e1d3 100644 --- a/OneMore/Properties/Resources.ja-JP.resx +++ b/OneMore/Properties/Resources.ja-JP.resx @@ -2521,7 +2521,7 @@ ISO-code then comma then language name toast message - タスクの開始日 {0} が過ぎています: "{1}"。ここをクリックしてこのタスクに移動します + タスクは開始日 {0} を過ぎています。期限は {1} です。 「{2}」。このタスクに移動するにはここをクリックしてください toast message diff --git a/OneMore/Properties/Resources.nl-NL.resx b/OneMore/Properties/Resources.nl-NL.resx index 700c71471b..76ef3d9806 100644 --- a/OneMore/Properties/Resources.nl-NL.resx +++ b/OneMore/Properties/Resources.nl-NL.resx @@ -2519,7 +2519,7 @@ Verschoven toast message - Taak is voorbij de startdatum van {0}, "{1}". + De taak heeft de startdatum van {0} overschreden; vervalt {1}. "{2}". Klik hier om naar deze taak te navigeren toast message diff --git a/OneMore/Properties/Resources.pl-PL.resx b/OneMore/Properties/Resources.pl-PL.resx index e216cdc48d..7b58aa78b0 100644 --- a/OneMore/Properties/Resources.pl-PL.resx +++ b/OneMore/Properties/Resources.pl-PL.resx @@ -2519,7 +2519,7 @@ Odroczony toast message - Zadaniem jest data rozpoczęcia {0}, "{1}". Kliknij tutaj, aby przejść do tego zadania + Data rozpoczęcia zadania minęła {0}; termin {1}. „{2}”. Kliknij tutaj, aby przejść do tego zadania toast message diff --git a/OneMore/Properties/Resources.pt-BR.resx b/OneMore/Properties/Resources.pt-BR.resx index 5257548439..0fe3393ff8 100644 --- a/OneMore/Properties/Resources.pt-BR.resx +++ b/OneMore/Properties/Resources.pt-BR.resx @@ -2519,7 +2519,7 @@ Diferido toast message - A tarefa já passou da data de início de {0}, "{1}". + A data de início da tarefa já passou de {0}; devido {1}. "{2}". Clique aqui para navegar até esta tarefa toast message diff --git a/OneMore/Properties/Resources.resx b/OneMore/Properties/Resources.resx index b3edbe0830..7c08a04dbc 100644 --- a/OneMore/Properties/Resources.resx +++ b/OneMore/Properties/Resources.resx @@ -2519,7 +2519,7 @@ Deferred toast message - Task is past its start date of {0}, "{1}". Click here to navigate to this task + Task is past its start date of {0}; due {1}. "{2}". Click here to navigate to this task toast message diff --git a/OneMore/Properties/Resources.zh-CN.resx b/OneMore/Properties/Resources.zh-CN.resx index 20cf852b30..f3bf27384d 100644 --- a/OneMore/Properties/Resources.zh-CN.resx +++ b/OneMore/Properties/Resources.zh-CN.resx @@ -2517,7 +2517,7 @@ ISO-code then comma then language name toast message - 任务已超过其开始日期 {0},“{1}”。 + 任务已超过其开始日期 {0};截止日期为{1}。 “{2}”。单击此处导航至此任务 toast message