diff --git a/zerver/lib/hotspots.py b/zerver/lib/hotspots.py index e8c3a92b1e..99d32e19cb 100644 --- a/zerver/lib/hotspots.py +++ b/zerver/lib/hotspots.py @@ -1,29 +1,30 @@ from django.conf import settings +from django.utils.translation import ugettext as _ + from zerver.models import UserProfile, UserHotspot from typing import List, Text, Dict ALL_HOTSPOTS = { - # TODO: Tag these for translation once we've finalized the content. 'intro_reply': { - 'title': 'Reply to a message', - 'description': 'Click anywhere on a message to reply.', + 'title': _('Reply to a message'), + 'description': _('Click anywhere on a message to reply.'), }, 'intro_streams': { - 'title': 'Catch up on a stream', - 'description': 'Messages sent to a stream are seen by everyone subscribed ' - 'to that stream. Try clicking on one of the stream links below.', + 'title': _('Catch up on a stream'), + 'description': _('Messages sent to a stream are seen by everyone subscribed ' + 'to that stream. Try clicking on one of the stream links below.'), }, 'intro_topics': { - 'title': 'Topics', - 'description': 'Every message has a topic. Topics keep conversations ' - 'easy to follow, and make it easy to reply to conversations that start ' - 'while you are offline.', + 'title': _('Topics'), + 'description': _('Every message has a topic. Topics keep conversations ' + 'easy to follow, and make it easy to reply to conversations that start ' + 'while you are offline.'), }, 'intro_compose': { - 'title': 'Compose', - 'description': 'Click here to start a new conversation. Pick a topic ' - '(2-3 words is best), and give it a go!', + 'title': _('Compose'), + 'description': _('Click here to start a new conversation. Pick a topic ' + '(2-3 words is best), and give it a go!'), }, } # type: Dict[str, Dict[str, Text]]