Skip to content

Commit

Permalink
Force no locale (for now) when forcing event locale
Browse files Browse the repository at this point in the history
There's no concept of an event locale yet
  • Loading branch information
ThiefMaster committed Oct 5, 2022
1 parent e714967 commit 0cfb932
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions indico/modules/events/models/events.py
Expand Up @@ -45,7 +45,7 @@
from indico.util.date_time import get_display_tz, now_utc, overlaps
from indico.util.decorators import strict_classproperty
from indico.util.enum import RichIntEnum
from indico.util.i18n import _
from indico.util.i18n import _, force_locale
from indico.util.string import format_repr, text_to_repr
from indico.web.flask.util import url_for

Expand Down Expand Up @@ -1071,8 +1071,9 @@ def is_user_speaker(self, user):

@contextmanager
def force_event_locale(self):
# TODO: Implement force event locale
yield None
# TODO: once we have an event locale, force that one
with force_locale(None):
yield


Event.register_location_events()
Expand Down

0 comments on commit 0cfb932

Please sign in to comment.