mirror of
https://github.com/retspen/webvirtcloud
synced 2026-12-02 08:56:07 +00:00
fix(i18n): chart series and the preset announcement in the page's language
The VM and host charts named their series in English (Usage, Usage (RSS), Read, Write, Inbound, Outbound) and the new-VM form announced an applied preset as "...new N GiB disk" in English on Turkish and Chinese pages. The texts now come from the templates: the stats tab and host overview give the series names (disk and NIC series reuse In, Out, Read, Write of the readings line), and each preset button carries its own announcement. "Usage" has the context "chart": zh translated it for secrets as "used by". Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Kk4h2TcUiaWmU5MUszYSea
This commit is contained in:
parent
03dcb14e45
commit
f6c7f8c85e
12 changed files with 41 additions and 13 deletions
|
|
@ -108,7 +108,7 @@
|
|||
</div>
|
||||
<div class="small text-body-secondary mt-2 mb-4">
|
||||
{% trans "The last 10 readings, one every 5 seconds. Memory in use leaves out the host's buffers and cache." %}
|
||||
<span id="graph_state" data-url="{% url 'compute_graph' compute.id %}" data-average-over="{% trans "average over" %}" data-updated="{% trans "Updated at %(time)s." %}"
|
||||
<span id="graph_state" data-url="{% url 'compute_graph' compute.id %}" data-average-over="{% trans "average over" %}" data-usage="{% trans "Usage" context "chart" %}" data-updated="{% trans "Updated at %(time)s." %}"
|
||||
data-stale="{% trans "Not updated since %(time)s: the host did not answer." %}">{% trans "Waiting for the first reading." %}</span>
|
||||
</div>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue