Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix bug 855293: Replace _lazy with _ in promo video views.

  • Loading branch information...
commit 6c271a82bb96bb1d86d2d9b43634902c0bd64ffa 1 parent 2847942
@Osmose Osmose authored
Showing with 17 additions and 18 deletions.
  1. +17 −18 flicks/videos/views.py
View
35 flicks/videos/views.py
@@ -1,7 +1,7 @@
from django.core.paginator import EmptyPage, PageNotAnInteger, Paginator
from django.shortcuts import get_object_or_404, render
-from tower import ugettext_lazy as _lazy
+from tower import ugettext as _
from flicks.base import regions
from flicks.base.util import promo_video_shortlink, redirect
@@ -97,13 +97,12 @@ def details_2012(request, video_id=None):
def promo_video_noir(request):
"""Film Noir promo video."""
- d = dict(video_title=_lazy('Noir'),
- video_description=_lazy('The fox meets a damsel in distress, but '
- 'can he help her? Get inspired for your '
- 'Firefox Flicks entry by checking out '
- 'our video.'),
- tweet_text=_lazy('The fox meets a damsel in distress, but can he '
- 'help her?'),
+ d = dict(video_title=_('Noir'),
+ video_description=_('The fox meets a damsel in distress, but can '
+ 'he help her? Get inspired for your Firefox '
+ 'Flicks entry by checking out our video.'),
+ tweet_text=_('The fox meets a damsel in distress, but can he help '
+ 'her?'),
page_type='videos',
video_embed=vidly_embed_code(promo_video_shortlink('noir'),
width='100%', height=337))
@@ -112,13 +111,13 @@ def promo_video_noir(request):
def promo_video_dance(request):
"""Dancing promo video."""
- d = dict(video_title=_lazy('Dance'),
- video_description=_lazy("He's got the moves, he's got ambition. "
- "How far can this fox's feet take him? "
- "Get inspired for your Firefox Flicks "
- "entry by checking out our video."),
- tweet_text=_lazy("He's got the moves. He's got ambition. How far "
- "can this fox's feet take him?"),
+ d = dict(video_title=_('Dance'),
+ video_description=_("He's got the moves, he's got ambition. How "
+ "far can this fox's feet take him? Get "
+ "inspired for your Firefox Flicks entry by "
+ "checking out our video."),
+ tweet_text=_("He's got the moves. He's got ambition. How far can "
+ "this fox's feet take him?"),
page_type='videos',
video_embed=vidly_embed_code(promo_video_shortlink('dance'),
width='100%', height=337))
@@ -127,9 +126,9 @@ def promo_video_dance(request):
def promo_video_twilight(request):
"""Twilight parody promo video."""
- desc = _lazy('A teenage girl learns the truth about the fox. Get inspired '
- 'for your Firefox Flicks entry by checking out our video.')
- d = dict(video_title=_lazy('Twilight'),
+ desc = _('A teenage girl learns the truth about the fox. Get inspired for '
+ 'your Firefox Flicks entry by checking out our video.')
+ d = dict(video_title=_('Twilight'),
video_description=desc,
tweet_text=desc,
page_type='videos',
Please sign in to comment.
Something went wrong with that request. Please try again.