Skip to content

Commit

Permalink
'en' is used for English version browsers
Browse files Browse the repository at this point in the history
  • Loading branch information
fuji246 committed Dec 2, 2012
1 parent b6043ed commit 56c70fd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion bbb_django/bbb/views/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,10 @@ def calendar(request, year, month):
year_before = y - 1

items = request.LANGUAGE_CODE.split('-')
locale_name = items[0] + '_' + items[1].upper() + '.UTF-8'
locale_name = 'en_US.UTF-8'
if len(items) == 2:
locale_name = items[0] + '_' + items[1].upper() + '.UTF-8'

print m,y,prev_month,prev_year,next_month,next_year,year_before,year_after
html_calendar = MeetingCalendar(meetings, locale=locale_name).formatmonth(y, m)
context = RequestContext(request, {
Expand Down

0 comments on commit 56c70fd

Please sign in to comment.