mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-03 21:43:21 +00:00 
			
		
		
		
	hotspots: Tag strings for translation.
This commit is contained in:
		@@ -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 '
 | 
			
		||||
        '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.',
 | 
			
		||||
                         '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]]
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user