Bug 601485, l10n stats moar
This commit is contained in:
Родитель
c54ac062b6
Коммит
9c37e7f451
|
@ -15,56 +15,56 @@ def report_menu(context, addon, report):
|
|||
{
|
||||
'name': 'overview',
|
||||
'url': '/',
|
||||
'title': 'Overview',
|
||||
'title': _('Overview'),
|
||||
},
|
||||
{
|
||||
'name': 'downloads',
|
||||
'url': '/downloads/',
|
||||
'title': 'Downloads',
|
||||
'title': _('Downloads'),
|
||||
'children': [
|
||||
{
|
||||
'name': 'sources',
|
||||
'url': '/downloads/sources/',
|
||||
'title': 'by Download Source',
|
||||
'title': _('by Download Source'),
|
||||
},
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'usage',
|
||||
'url': '/usage/',
|
||||
'title': 'Daily Users',
|
||||
'title': _('Daily Users'),
|
||||
'children': [
|
||||
{
|
||||
'name': 'versions',
|
||||
'url': '/usage/versions/',
|
||||
'title': 'by Add-on Version'
|
||||
'title': _('by Add-on Version')
|
||||
},
|
||||
{
|
||||
'name': 'apps',
|
||||
'url': '/usage/applications/',
|
||||
'title': 'by Application'
|
||||
'title': _('by Application')
|
||||
},
|
||||
{
|
||||
'name': 'locales',
|
||||
'url': '/usage/languages/',
|
||||
'title': 'by Language'
|
||||
'title': _('by Language')
|
||||
},
|
||||
{
|
||||
'name': 'os',
|
||||
'url': '/usage/os/',
|
||||
'title': 'by Operating System'
|
||||
'title': _('by Operating System')
|
||||
},
|
||||
{
|
||||
'name': 'status',
|
||||
'url': '/usage/status/',
|
||||
'title': 'by Add-on Status'
|
||||
'title': _('by Add-on Status')
|
||||
},
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'contributions',
|
||||
'url': '/contributions/',
|
||||
'title': 'Contributions'
|
||||
'title': _('Contributions')
|
||||
},
|
||||
]
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{% set show_contributions = false %}
|
||||
<div class="secondary-item-list report-menu">
|
||||
<h3>Add-On Statistics</h3>
|
||||
<h3>{{ _('Add-On Statistics') }}</h3>
|
||||
<ul>
|
||||
{% for item in report_tree %}
|
||||
{% if item.name != 'contributions' or show_contributions %}
|
||||
|
|
|
@ -25,20 +25,20 @@
|
|||
|
||||
<div class="criteria range">
|
||||
<ul>
|
||||
<li>For Last:</li>
|
||||
<li>{{ _('For Last:') }}</li>
|
||||
<li data-range="7 days"
|
||||
{% if range=='7' %}class="selected"{% endif %}>
|
||||
<a href="#">7 Days</a></li>
|
||||
<a href="#">{{ _('7 Days') }}</a></li>
|
||||
<li data-range="30 days"
|
||||
{% if range=='30' %}class="selected"{% endif %}>
|
||||
<a href="#">30 Days</a></li>
|
||||
<a href="#">{{ _('30 Days') }}</a></li>
|
||||
<li data-range="90 days"
|
||||
{% if range=='90' %}class="selected"{% endif %}>
|
||||
<a href="#">90 Days</a></li>
|
||||
<a href="#">{{ _('90 Days') }}</a></li>
|
||||
<li class="divider"></li>
|
||||
<li data-range="custom"
|
||||
{% if range=='custom' %}class="selected"{% endif %}>
|
||||
<a href="#">Custom</a></li>
|
||||
<a href="#">{{ _('Custom') }}</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
@ -46,19 +46,21 @@
|
|||
<h2 class="addon"{{ addon.name|locale_html }}>
|
||||
<img src="{{ addon.icon_url }}" class="icon"/>
|
||||
<span>
|
||||
Statistics for {{ addon.name }}
|
||||
{# L10n: {0} is an add-on name #}
|
||||
{{ _('Statistics for {0}')|f(addon.name) }}
|
||||
</span>
|
||||
</h2>
|
||||
<h4 class="author">{{ _('by') }} {{ users_list(addon.listed_authors) }}</h4>
|
||||
{# L10n: {0} is an add-on author #}
|
||||
<h4 class="author">{{ _('by {0}')|f(users_list(addon.listed_authors))|safe }}</h4>
|
||||
</hgroup>
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<div id="lm" class="loadmessage"><span>Loading the latest data…</span></div>
|
||||
<div id="lm" class="loadmessage"><span>{{ _('Loading the latest data…') }}</span></div>
|
||||
<div class="secondary">
|
||||
{{ report_menu(addon, report) }}
|
||||
<aside class="highlight">
|
||||
Notable Stats and tips will go here.
|
||||
{{ _('Notable Stats and tips will go here.') }}
|
||||
<pre id="dbgout"></pre>
|
||||
</aside>
|
||||
</div>
|
||||
|
@ -77,17 +79,17 @@
|
|||
{% if true %}
|
||||
<div class="custom criteria">
|
||||
<form id="date-range-form">
|
||||
<label for="date-range-start">From</label>
|
||||
<label for="date-range-start">{{ _('From') }}</label>
|
||||
<input type="date" id="date-range-start" />
|
||||
<label for="date-range-end">To</label>
|
||||
<label for="date-range-end">{{ _('To') }}</label>
|
||||
<input type="date" id="date-range-end" />
|
||||
<label for="date-range-grouping">grouped by</label>
|
||||
<label for="date-range-grouping">{{ _('grouped by') }}</label>
|
||||
<select id="date-range-grouping">
|
||||
<option >day</option>
|
||||
<option >month</option>
|
||||
<option >year</option>
|
||||
<option >{{ _('day') }}</option>
|
||||
<option >{{ _('month') }}</option>
|
||||
<option >{{ _('year') }}</option>
|
||||
</select>
|
||||
<button id="date-range-submit" type="submit">Update</button>
|
||||
<button id="date-range-submit" type="submit">{{ _('Update') }}</button>
|
||||
</form>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
|
|
@ -657,7 +657,7 @@ $(document).ready(function () {
|
|||
}
|
||||
}
|
||||
|
||||
LoadBar.on("Loading the latest data…");
|
||||
LoadBar.on(gettext("Loading the latest data…"));
|
||||
//Get initial dataset
|
||||
if (datastore[page_state.report_name] && datastore[page_state.report_name].maxdate) {
|
||||
var fetchStart = datastore[page_state.report_name].maxdate - millis("1 day");
|
||||
|
|
|
@ -398,7 +398,7 @@
|
|||
if (needed < 0) {
|
||||
callback.call(this);
|
||||
} else {
|
||||
if (!quiet) LoadBar.on("Loading…");
|
||||
if (!quiet) LoadBar.on(gettext("Loading…"));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче