Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Commit

Permalink
lazifying some strings.
Browse files Browse the repository at this point in the history
  • Loading branch information
Fred Wenzel committed Jul 15, 2010
1 parent 42f5012 commit 253227d
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 13 deletions.
9 changes: 6 additions & 3 deletions apps/dashboard/templates/dashboard/messages.html
Expand Up @@ -7,11 +7,14 @@
<li class="{{ opinion.positive and 'happy' or 'sad' }} clearfix">
{{ smiley(opinion.positive and "happy" or "sad") }}
<div class="msg">{{ opinion.description }}</div>
<a class="ua" href="#" title="{{ opinion.user_agent }}">(UA)</a>
{# L10n: Link to user agent info. #}
<a class="ua" href="#" title="{{ opinion.user_agent }}">{{ _('(UA)') }}</a>
{% if opinion.url %}
<a class="url" href="{{ opinion.url }}" rel="nofollow">(URL)</a>
{# L10n: Link to an opinion's URL. #}
<a class="url" href="{{ opinion.url }}" rel="nofollow">{{ _('(URL)') }}</a>
<div class="urlpreview">
<a href="{{ opinion.url }}" rel="nofollow">visit &rarr;</a>
{# L10n: This is a link to the URL associated with an opinion. #}
<a href="{{ opinion.url }}" rel="nofollow">{{ _('visit &rarr;') }}</a>
<input type="text" readonly value="{{ opinion.url }}"/>
</div>
{% endif %}
Expand Down
18 changes: 9 additions & 9 deletions apps/search/forms.py
Expand Up @@ -2,7 +2,7 @@

from django import forms
import product_details
from tower import ugettext as _, ugettext_lazy as _lazy
from tower import ugettext_lazy as _lazy

from feedback import APPS, FIREFOX, OS_USAGE, LATEST_BETAS
from feedback.version_compare import simplify_version
Expand Down Expand Up @@ -44,23 +44,23 @@ class SearchInput(forms.TextInput):

class ReporterSearchForm(forms.Form):
q = forms.CharField(required=False, label='', widget=SearchInput(
attrs={'placeholder': _('Search Terms')}))
attrs={'placeholder': _lazy('Search Terms')}))
product = forms.ChoiceField(choices=PROD_CHOICES,
label=_('Product:'))
label=_lazy('Product:'))
version = forms.ChoiceField(required=False,
choices=add_empty(FIREFOX_BETA_VERSION_CHOICES),
label=_('Version:'))
sentiment = forms.ChoiceField(required=False, label=_('Sentiment:'),
label=_lazy('Version:'))
sentiment = forms.ChoiceField(required=False, label=_lazy('Sentiment:'),
choices=add_empty(SENTIMENT_CHOICES))
locale = forms.ChoiceField(required=False, label=_('Locale:'),
locale = forms.ChoiceField(required=False, label=_lazy('Locale:'),
choices=add_empty(LOCALE_CHOICES))
os = forms.ChoiceField(required=False, label=_('OS:'),
os = forms.ChoiceField(required=False, label=_lazy('OS:'),
choices=add_empty(OS_CHOICES))
date_start = forms.DateField(required=False, widget=forms.DateInput(
attrs={'class': 'datepicker'}), label=_('Date range:'))
attrs={'class': 'datepicker'}), label=_lazy('Date range:'))
date_end = forms.DateField(required=False, widget=forms.DateInput(
# L10n: This indicates the second part of a date range.
attrs={'class': 'datepicker'}), label=_('to'))
attrs={'class': 'datepicker'}), label=_lazy('to'))

page = forms.IntegerField(widget=forms.HiddenInput, required=False)

Expand Down
2 changes: 1 addition & 1 deletion locale
Submodule locale updated from 4540b8 to f734b6

0 comments on commit 253227d

Please sign in to comment.