hotspots: Tag strings for translation.

This commit is contained in:
Tim Abbott 2018-04-18 09:16:30 -07:00
parent e78158bcc3
commit 77ca9e7eca
1 changed files with 14 additions and 13 deletions

View File

@ -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]]