mirror of
https://github.com/retspen/webvirtcloud
synced 2026-12-02 17:06:09 +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".
This commit is contained in:
parent
0218a54c87
commit
f92d443eec
12 changed files with 41 additions and 13 deletions
|
|
@ -52,8 +52,7 @@ function apply_preset(button) {
|
|||
clear_presets();
|
||||
button.setAttribute("aria-pressed", "true");
|
||||
button.classList.replace("text-body", "btn-primary");
|
||||
document.querySelector("#preset-status").textContent =
|
||||
`${button.dataset.label}: ${button.dataset.vcpu} vCPU, ${button.dataset.memory} MiB, new ${button.dataset.disk} GiB disk`;
|
||||
document.querySelector("#preset-status").textContent = button.dataset.status;
|
||||
}
|
||||
|
||||
function clear_presets() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue