From ede7b4fade5c396b47d386bd616e05805622b647 Mon Sep 17 00:00:00 2001 From: Joris Date: Sun, 13 Nov 2016 11:58:22 +0100 Subject: Show a different message on weekly report if there were no activity during the previous week --- src/server/Model/Message/Key.hs | 1 + src/server/Model/Message/Translations.hs | 5 +++++ 2 files changed, 6 insertions(+) (limited to 'src/server/Model') diff --git a/src/server/Model/Message/Key.hs b/src/server/Model/Message/Key.hs index e64cfb5..d00d8b8 100644 --- a/src/server/Model/Message/Key.hs +++ b/src/server/Model/Message/Key.hs @@ -131,6 +131,7 @@ data Key = -- Weekly report | WeeklyReport + | WeeklyReportEmpty | PaymentCreated | PaymentsCreated | PaymentEdited diff --git a/src/server/Model/Message/Translations.hs b/src/server/Model/Message/Translations.hs index cf11a5e..23e3a6c 100644 --- a/src/server/Model/Message/Translations.hs +++ b/src/server/Model/Message/Translations.hs @@ -492,6 +492,11 @@ m l WeeklyReport = English -> "Weekly report" French -> "Rapport hebdomadaire" +m l WeeklyReportEmpty = + case l of + English -> "No activity the previous week." + French -> "Pas d'activité la semaine passée." + m l PaymentCreated = case l of English -> "{1} payment created:" -- cgit v1.2.3