mirror of
https://github.com/retspen/webvirtcloud
synced 2026-12-01 16:36:06 +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
|
|
@ -204,6 +204,8 @@ class FlavorPresetTests(TestCase):
|
|||
[preset] = page.xpath(f"//button[contains(@class, 'preset')][@data-label='{self.flavor.label}']")
|
||||
self.assertEqual((preset.get("data-vcpu"), preset.get("data-memory"), preset.get("data-disk")), ("1", "512", "10"))
|
||||
self.assertEqual((preset.get("type"), preset.get("aria-pressed")), ("button", "false"))
|
||||
# what a screen reader hears when it is applied (create_instance.js), in the page's language
|
||||
self.assertEqual(preset.get("data-status"), "wvc-test: 1 vCPU, 512 MiB, new 10 GiB disk")
|
||||
|
||||
def test_the_flavor_dialog_sits_outside_the_form(self):
|
||||
_, response = render_create_page(self)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue