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

Commit b635ff5

Browse files
committed
Bug 621397 - List of products isn't localized correctly
1 parent c7c1cc5 commit b635ff5

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

apps/dashboard/templates/dashboard/products.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<span class="selectbox" id="filter_product">
2-
<span class="text">{{ product }}</span>
3-
<select id="product" name="product" data-selected="{{ product }}" data-versions="{{ version_choices }}">
2+
<span class="text">{{ product.pretty }}</span>
3+
<select id="product" name="product" data-selected="{{ product.short }}" data-versions="{{ version_choices }}">
44
{% for val, name in products %}
5-
<option value="{{ val }}" {{ 'selected' if product == val else ''
5+
<option value="{{ val }}" {{ 'selected' if product.short == val else ''
66
}} data-latest="{{ latest_betas[val] }}">{{ name }}</option>
77
{% endfor %}
88
</select>

apps/dashboard/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def dashboard(request):
6868
'OPINION_PRAISE': OPINION_PRAISE,
6969
'OPINION_ISSUE': OPINION_ISSUE,
7070
'OPINION_SUGGESTION': OPINION_SUGGESTION,
71-
'product': app.pretty,
71+
'product': app,
7272
'products': PROD_CHOICES,
7373
'sentiments': get_sentiment(metas.get('type', [])),
7474
'terms': stats.frequent_terms(qs=frequent_terms),

apps/search/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ def index(request):
161161

162162
data = {
163163
'form': form,
164-
'product': product.short,
164+
'product': product,
165165
'products': PROD_CHOICES,
166166
'version': version,
167167
'versions': VERSION_CHOICES[product],

0 commit comments

Comments
 (0)