-# Blanks duplicate the time before.
-my $default_timetable=[
- "late at night on", # 12
- "", # 1
- "in the wee hours of", # 2
- "", # 3
- "", # 4
- "terribly early in the morning of", # 5
- "", # 6
- "in early morning on", # 7
- "", # 8
- "", # 9
- "in mid-morning of", # 10
- "in late morning of", # 11
- "at lunch time on", # 12
- "", # 1
- "in the afternoon of", # 2
- "", # 3
- "", # 4
- "in late afternoon of", # 5
- "in the evening of", # 6
- "", # 7
- "in late evening on", # 8
- "", # 9
- "at night on", # 10
- "", # 11
-];
+sub default_timetable {
+ # Blanks duplicate the time before.
+ return [
+ #translators: These descriptions of times of day are used
+ #translators: in messages like "last edited <description>".
+ #translators: %A is the name of the day of the week, while
+ #translators: %A- is the name of the previous day.
+ gettext("late %A- night"), # 12
+ "", # 1
+ gettext("in the wee hours of %A- night"), # 2
+ "", # 3
+ "", # 4
+ gettext("terribly early %A morning"), # 5
+ "", # 6
+ gettext("early %A morning"), # 7
+ "", # 8
+ "", # 9
+ gettext("mid-morning %A"), # 10
+ gettext("late %A morning"), # 11
+ gettext("at lunch time on %A"), # 12
+ "", # 1
+ gettext("%A afternoon"), # 2
+ "", # 3
+ "", # 4
+ gettext("late %A afternoon"), # 5
+ gettext("%A evening"), # 6
+ "", # 7
+ gettext("late %A evening"), # 8
+ "", # 9 # 9
+ gettext("%A night"), # 10
+ "", # 11
+ ];
+}