Skip to content

Commit

Permalink
Added language support for events at bottom
Browse files Browse the repository at this point in the history
  • Loading branch information
aceisace authored May 18, 2019
1 parent aa05fc7 commit a0bcc9f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Calendar/E-Paper.py
Original file line number Diff line number Diff line change
Expand Up @@ -432,15 +432,15 @@ def event_begins(elem):
if len(cal) is 5:
del upcoming[6:]
for dates in range(len(upcoming)):
readable_date = upcoming[dates].begin.format('D MMM')
readable_date = upcoming[dates].begin.format('D MMM', locale=language)
write_text(70, 25, readable_date, date_positions['d'+str(dates+1)])
for events in range(len(upcoming)):
write_text(314, 25, upcoming[events].name, event_positions['e'+str(events+1)], alignment = 'left')

if len(cal) is 6:
del upcoming[4:]
for dates in range(len(upcoming)):
readable_date = upcoming[dates].begin.format('D MMM')
readable_date = upcoming[dates].begin.format('D MMM', locale=language)
write_text(70, 25, readable_date, date_positions['d'+str(dates+3)])
for events in range(len(upcoming)):
write_text(314, 25, upcoming[events].name, event_positions['e'+str(events+3)], alignment = 'left')
Expand Down

0 comments on commit a0bcc9f

Please sign in to comment.