Allow granular per-chat reminder configuration

This commit is contained in:
2024-02-11 10:30:20 +01:00
parent d338f89a15
commit 454bcf5307
10 changed files with 359 additions and 108 deletions

View File

@@ -1,10 +1,31 @@
messages:
next_appointment: "Next meeting: %{weekday}, %{date} (%{uk_time} UK time)"
appointment_hours:
one: "Next meeting starts in 1 hour"
other: "Next meeting starts in %{no_hours} hours"
appointment_today: "Next meeting is today at %{start_time} (%{uk_time} UK time)"
appointment_tomorrow: "Next meeting is tomorrow at %{start_time} (%{uk_time} UK time)"
appointment_soon: "Next meeting is in %{no_days} days at %{start_time} (%{uk_time} UK time)"
starting_now: "The meeting starts now"
reminders_deleted: "The reminders have been deleted"
reminders_set: "The following reminders have been set:\n\n"
reminders:
delta: "%{delta_text} before the meeting starts"
thisday_delta: "At the day of the event"
time: " at %{time}"
days:
one: "1 day"
other: "%{delta} days"
hours:
one: "1 hour"
other: "%{delta} hours"
errors:
invalid_number: "Invalid number: %{number}"
param_no_days_nonnegative: "The number of days may not be negative"
cannot_mix_delete: "The parameter <code>delete</code> cannot be mixed with other parameters"
delta_zero: "The number of days/hours is only allowed to be zero if a reminder time is specified"
invalid_reminder_format: "The reminder format is invalid"
invalid_time: "The specified time is invalid"
help:
setreminders: "setreminders allows you to configure reminders that will be sent before the start of the next appointment. When you use this command, all configured commands will be deleted and the reminders passed as parameters will be set. You can configure multiple reminders by sending them as a list separate by a space. To delete all reminders, send <code>delete</code> als Parameter.\n\nExample reminders:\n\n<code>0d@11:30</code> Sends a reminder at 11:30 on the day of the appointment.\n\n<code>2d@10</code> Sends a reminder two days before the appointment at 10:00.\n\n<code>1d</code> Sends a reminder one day (24 hours) before the apopintment starts.\n\n<code>1h</code> Sends a reminder one hour before the apopintment starts.\n\n<code>4d@12:00 2h</code>Sends a reminder 4 days bere the meeintg starts at 12:00. Addintally sends a reminder 2 hours before the meeting starts."