mirror of
https://github.com/zulip/zulip.git
synced 2025-10-24 00:23:49 +00:00
analytics: Add translation tags to stats.html.
This commit is contained in:
@@ -28,7 +28,7 @@ class TestStatsEndpoint(ZulipTestCase):
|
||||
result = self.client_get('/stats')
|
||||
self.assertEqual(result.status_code, 200)
|
||||
# Check that we get something back
|
||||
self.assert_in_response("Zulip Analytics for", result)
|
||||
self.assert_in_response("Zulip analytics for", result)
|
||||
|
||||
class TestGetChartData(ZulipTestCase):
|
||||
def setUp(self):
|
||||
|
||||
@@ -13,43 +13,43 @@
|
||||
<div class="page-content">
|
||||
<div id="id_stats_errors" class="alert alert-error"></div>
|
||||
<div class="center-charts">
|
||||
<h1 class="analytics-page-header">Zulip Analytics for {{ realm_name }}</h1>
|
||||
<h1 class="analytics-page-header">{% trans %}Zulip analytics for {{ realm_name }}{% endtrans %}</h1>
|
||||
|
||||
<div class="left">
|
||||
<div class="chart-container">
|
||||
<h1>Messages Sent Over Time</h1>
|
||||
<h1>{{ _("Messages sent over time") }}</h1>
|
||||
<div class="button-container">
|
||||
<label>Aggregation</label>
|
||||
<label>{{ _("Aggregation") }}</label>
|
||||
<div class="buttons">
|
||||
<button class="button" type="button" id='hourly_button'>Hourly </button>
|
||||
<button class="button" type="button" id='daily_button'>Daily </button>
|
||||
<button class="button" type="button" id='weekly_button'>Weekly </button>
|
||||
<button class="button" type="button" id='cumulative_button'>Cumulative </button>
|
||||
<button class="button" type="button" id='hourly_button'>{{ _("Hourly") }} </button>
|
||||
<button class="button" type="button" id='daily_button'>{{ _("Daily") }} </button>
|
||||
<button class="button" type="button" id='weekly_button'>{{ _("Weekly") }} </button>
|
||||
<button class="button" type="button" id='cumulative_button'>{{ _("Cumulative") }} </button>
|
||||
</div>
|
||||
</div>
|
||||
<div id="id_messages_sent_over_time"></div>
|
||||
<div id="hoverinfo">
|
||||
<span id="hover_date"></span>
|
||||
<span id="hover_me">Me:</span>
|
||||
<span id="hover_me">{{ _("Me") }}:</span>
|
||||
<span id="hover_me_value"></span>
|
||||
<b id="hover_human">Humans:</b>
|
||||
<b id="hover_human">{{ _("Humans") }}:</b>
|
||||
<span id="hover_human_value"></span>
|
||||
<b id="hover_bot">Bots:</b>
|
||||
<b id="hover_bot">{{ _("Bots") }}:</b>
|
||||
<span id="hover_bot_value"></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="chart-container pie-chart">
|
||||
<div id="pie_messages_sent_by_client">
|
||||
<h1>Messages Sent by Client</h1>
|
||||
<h1>{{ _("Messages sent by client") }}</h1>
|
||||
<div id="id_messages_sent_by_client" class="number-stat"></div>
|
||||
<div class="buttons">
|
||||
<button class="button" type="button" data-user="user">Me</button>
|
||||
<button class="button selected" type="button" data-user="realm">Everyone</button>
|
||||
<button class="button" type="button" data-time="week">Last Week</button>
|
||||
<button class="button selected" type="button" data-time="month">Last Month</button>
|
||||
<button class="button" type="button" data-time="year">Last Year</button>
|
||||
<button class="button" type="button" data-time="cumulative">All Time</button>
|
||||
<button class="button" type="button" data-user="user">{{ _("Me") }}</button>
|
||||
<button class="button selected" type="button" data-user="realm">{{ _("Everyone") }}</button>
|
||||
<button class="button" type="button" data-time="week">{{ _("Last week") }}</button>
|
||||
<button class="button selected" type="button" data-time="month">{{ _("Last month") }}</button>
|
||||
<button class="button" type="button" data-time="year">{{ _("Last year") }}</button>
|
||||
<button class="button" type="button" data-time="cumulative">{{ _("All time") }}</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -58,26 +58,26 @@
|
||||
<div class="right">
|
||||
<div class="chart-container pie-chart">
|
||||
<div id="pie_messages_sent_by_type">
|
||||
<h1>Messages Sent by Recipient Type</h1>
|
||||
<h1>{{ _("Messages sent by recipient type") }}</h1>
|
||||
<div id="id_messages_sent_by_message_type"></div>
|
||||
<div id="pie_messages_sent_by_type_total" class="number-stat"></div>
|
||||
<div class="buttons">
|
||||
<button class="button" type="button" data-user="user">Me</button>
|
||||
<button class="button selected" type="button" data-user="realm">Everyone</button>
|
||||
<button class="button" type="button" data-time="week">Last Week</button>
|
||||
<button class="button selected" type="button" data-time="month">Last Month</button>
|
||||
<button class="button" type="button" data-time="year">Last Year</button>
|
||||
<button class="button" type="button" data-time="cumulative">All Time</button>
|
||||
<button class="button" type="button" data-user="user">{{ _("Me") }}</button>
|
||||
<button class="button selected" type="button" data-user="realm">{{ _("Everyone") }}</button>
|
||||
<button class="button" type="button" data-time="week">{{ _("Last week") }}</button>
|
||||
<button class="button selected" type="button" data-time="month">{{ _("Last month") }}</button>
|
||||
<button class="button" type="button" data-time="year">{{ _("Last year") }}</button>
|
||||
<button class="button" type="button" data-time="cumulative">{{ _("All time") }}</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="chart-container">
|
||||
<h1>Active Users</h1>
|
||||
<h1>{{ _("Active users") }}</h1>
|
||||
<div id="id_number_of_users"></div>
|
||||
<div id="users_hover_info" class="number-stat">
|
||||
<span id="users_hover_date"></span>
|
||||
<b id="users_hover_humans">Users: </b>
|
||||
<b id="users_hover_humans">{{ _("Users") }}: </b>
|
||||
<span id="users_hover_humans_value"></span>
|
||||
</div>
|
||||
</div>
|
||||
@@ -85,8 +85,8 @@
|
||||
</div>
|
||||
|
||||
<div class="last-update">
|
||||
Last Update: <span id="id_last_full_update"></span>
|
||||
<span data-toggle="tooltip" title="{{ _('A full update of all the graphs happens once a day.<br/>The “Messages Sent Over Time” graph is updated once an hour.') }}">
|
||||
{{ _("Last update") }}: <span id="id_last_full_update"></span>
|
||||
<span data-toggle="tooltip" title="{% trans %}A full update of all the graphs happens once a day.<br/>The “Messages Sent Over Time” graph is updated once an hour.{% endtrans %}">
|
||||
<span class="icon-vector-question-sign" id="id_last_update_question_sign"></span>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user