Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
hotspots: Use ugettext_lazy for i18n.
Vishnu KS8a993aa7e775
diff --git a/zerver/lib/hotspots.py b/zerver/lib/hotspots.pyindex 322654d5223..35b27d6dead 100644--- a/zerver/lib/hotspots.py+++ b/zerver/lib/hotspots.py@@ -3,7 +3,7 @@from typing import Dict, Listfrom django.conf import settings-from django.utils.translation import ugettext as _+from django.utils.translation import ugettext_lazy as _from zerver.models import UserHotspot, UserProfile@@ -44,8 +44,8 @@ def get_next_hotspots(user: UserProfile) -> List[Dict[str, object]]:if settings.ALWAYS_SEND_ALL_HOTSPOTS:return [{'name': hotspot,- 'title': ALL_HOTSPOTS[hotspot]['title'],- 'description': ALL_HOTSPOTS[hotspot]['description'],+ 'title': str(ALL_HOTSPOTS[hotspot]['title']),+ 'description': str(ALL_HOTSPOTS[hotspot]['description']),'delay': 0,} for hotspot in ALL_HOTSPOTS]@@ -57,8 +57,8 @@ def get_next_hotspots(user: UserProfile) -> List[Dict[str, object]]:if hotspot not in seen_hotspots:return [{'name': hotspot,- 'title': ALL_HOTSPOTS[hotspot]['title'],- 'description': ALL_HOTSPOTS[hotspot]['description'],+ 'title': str(ALL_HOTSPOTS[hotspot]['title']),+ 'description': str(ALL_HOTSPOTS[hotspot]['description']),'delay': 0.5,}]