diff --git a/accounts/templates/account.html b/accounts/templates/account.html index 54ce99a0..77a2a14c 100644 --- a/accounts/templates/account.html +++ b/accounts/templates/account.html @@ -66,6 +66,7 @@
{{ inst.instance.name }}
{% trans "Host" %}: {{ inst.instance.compute.name }}
+ {% include 'common/tag_badges.html' with tags=inst.instance.tags.all %}
{# the rights as the VM's Users tab names them: every owner powers the VM and opens its console #} diff --git a/accounts/views.py b/accounts/views.py index c04ffe65..8c0fc4d1 100644 --- a/accounts/views.py +++ b/accounts/views.py @@ -192,7 +192,7 @@ def ssh_key_delete(request, pk, user_id=None): @superuser_only def account(request, user_id): user = get_object_or_404(User, id=user_id) - user_insts = UserInstance.objects.filter(user_id=user_id).select_related("instance__compute") + user_insts = UserInstance.objects.filter(user_id=user_id).select_related("instance__compute").prefetch_related("instance__tags") publickeys = UserSSHKey.objects.filter(user_id=user_id) return render( diff --git a/admin/tests/test_tombstones.py b/admin/tests/test_tombstones.py index 2026861c..bc590305 100644 --- a/admin/tests/test_tombstones.py +++ b/admin/tests/test_tombstones.py @@ -53,6 +53,7 @@ class TombstoneTests(TestCase): def test_a_get_only_asks_for_confirmation(self): response = self.client.get(reverse("admin:tombstone_delete", args=[self.tombstone.pk])) self.assertContains(response, "ts-vm") + self.assertContains(response, "Its owners and tags no longer come back if its UUID shows up again.") self.assertTrue(InstanceTombstone.objects.exists()) def test_a_post_removes_it(self): diff --git a/admin/views.py b/admin/views.py index 777c94c2..75fa1102 100644 --- a/admin/views.py +++ b/admin/views.py @@ -462,7 +462,7 @@ def tombstone_delete(request, pk): request, "common/confirm_delete.html", {"object": tombstone, - "consequence": _("Its owners no longer get the VM back if its UUID shows up again.")}, + "consequence": _("Its owners and tags no longer come back if its UUID shows up again.")}, ) diff --git a/computes/api/serializers.py b/computes/api/serializers.py index 694ff573..ca1db7d7 100644 --- a/computes/api/serializers.py +++ b/computes/api/serializers.py @@ -14,7 +14,7 @@ TAG_PARAMETER = OpenApiParameter("tag", str, description="Only those with this t def with_tag(queryset, request): """queryset's VMs or hosts with the ?tag= of request, all without one; their tags read at once.""" - tag = request.query_params.get("tag", "").lower() # the names are kept in lower case + tag = request.query_params.get("tag", "").strip().lower() # the names are kept in lower case return (queryset.filter(tags__name=tag) if tag else queryset).prefetch_related("tags") diff --git a/computes/templates/computes/instances.html b/computes/templates/computes/instances.html index f312de65..38cffa54 100644 --- a/computes/templates/computes/instances.html +++ b/computes/templates/computes/instances.html @@ -65,6 +65,7 @@ {{ instance.name }}
{% if instance.info %}

{{ instance.title }}

{% endif %} + {% include 'common/tag_badges.html' with tags=instance.tags.all %} diff --git a/computes/templates/computes/list.html b/computes/templates/computes/list.html index ccb34100..3178ed37 100644 --- a/computes/templates/computes/list.html +++ b/computes/templates/computes/list.html @@ -121,6 +121,11 @@
+ {# table_filter.js shows it while no host matches #} + {% endif %} {% endblock content %} diff --git a/computes/tests/test_bulk_migrate_js.py b/computes/tests/test_bulk_migrate_js.py index 0ab34e15..2c3afeea 100644 --- a/computes/tests/test_bulk_migrate_js.py +++ b/computes/tests/test_bulk_migrate_js.py @@ -44,14 +44,17 @@ vm.runInNewContext(SCRIPT, vm.createContext({document: { }})); const ticked = () => boxes.filter((b) => b.checked).map((b) => b.name); const seen = [], counts = [[counter.textContent, button.disabled]]; +let tagChoice; for (const [id, checked, value] of STEPS) { const target = {id, checked, value, form: choose}; + if (id === "bulk-migrate-tag") tagChoice = target; handlers[id]?.({target}); handlers.document({target}); // the change bubbles to the page seen.push(ticked()); + if (tagChoice === target) tagChoice = target.value; counts.push([counter.textContent, button.disabled]); } -console.log(JSON.stringify({seen, submitted, counts, shownRemoved})); +console.log(JSON.stringify({seen, submitted, counts, shownRemoved, tagChoice})); """ @@ -77,6 +80,7 @@ class BulkMigrateScriptTests(unittest.TestCase): result = self.run_script([["bulk-migrate-tag", False, "prod"], ["bulk-migrate-tag", False, ""], ["bulk-migrate-tag", False, "web"]]) self.assertEqual(result["seen"], [["off"], ["off"], ["run", "off"]]) # "": the ticks stay + self.assertEqual(result["tagChoice"], "", "the list goes back to its title: the same tag can be chosen again") def test_the_button_counts_the_ticked_vms_and_is_off_without_one(self): self.assertEqual(self.run_script([["bulk-migrate-all", False], ["bulk-migrate-all", True]])["counts"], diff --git a/computes/tests/test_ownership.py b/computes/tests/test_ownership.py index b68912ce..7ed7373a 100644 --- a/computes/tests/test_ownership.py +++ b/computes/tests/test_ownership.py @@ -59,14 +59,14 @@ class OwnershipTestCase(TestCase): self.assertEqual(self.ownership(self.host_a), (True, [(self.owner, True, False, True)])) self.assertFalse(InstanceTombstone.objects.exists()) self.assertEqual(self.rows(), [ - ("-", "host-a", f"VM vm ({UUID}): owners kept on the Removed VMs page"), - ("-", "host-a", f"VM vm ({UUID}): owners restored"), + ("-", "host-a", f"VM vm ({UUID}): owners and tags kept on the Removed VMs page"), + ("-", "host-a", f"VM vm ({UUID}): owners and tags restored"), ]) def test_an_ownerless_vm_leaves_a_row(self): Instance.objects.create(compute=self.host_a, name="vm", uuid=UUID) refresh_instance_database(self.host_a) - self.assertEqual(self.rows(), [("-", "host-a", f"VM vm ({UUID}): left the panel (no owners)")]) + self.assertEqual(self.rows(), [("-", "host-a", f"VM vm ({UUID}): left the panel (no owners or tags)")]) def test_move_seen_on_the_new_host_first(self): self.owned_vm(self.host_a) @@ -164,7 +164,7 @@ class OwnershipTestCase(TestCase): self.assertEqual((tombstone.owners[0]["user"], tombstone.host), (self.owner.id, "host-a")) self.assertEqual(self.rows(), [ ("cd-admin", "-", "Login"), - ("-", "host-a", f"VM vm ({UUID}): owners kept on the Removed VMs page"), + ("-", "host-a", f"VM vm ({UUID}): owners and tags kept on the Removed VMs page"), ("cd-admin", "host-a", "Compute host-a (host-a.example): delete"), ]) diff --git a/computes/tests/test_tags.py b/computes/tests/test_tags.py index 2ecbdd7d..1f1b229b 100644 --- a/computes/tests/test_tags.py +++ b/computes/tests/test_tags.py @@ -108,4 +108,7 @@ class HostTagsTests(TestCase): self.assertContains(response, "rack-1") self.assertContains(response, '', html=True) self.assertContains(response, 'data-tag-filter="rack-1"') + # a search and a tag that match no host: the page says so and clears them + self.assertContains(response, 'id="no-match"') + self.assertContains(response, 'id="clear-filters"') self.assertContains(response, 'data-tags="rack-1"') diff --git a/computes/utils.py b/computes/utils.py index b31e2717..7701c9a1 100644 --- a/computes/utils.py +++ b/computes/utils.py @@ -135,9 +135,9 @@ def _bury(inst): if owners or inst.is_template or tags: InstanceTombstone.objects.create(uuid=inst.uuid, name=inst.name, host=inst.compute.name, is_template=inst.is_template, owners=owners, tags=tags) - _log(inst, "owners kept on the Removed VMs page") + _log(inst, "owners and tags kept on the Removed VMs page") else: - _log(inst, "left the panel (no owners)") + _log(inst, "left the panel (no owners or tags)") def _restore(inst): @@ -159,7 +159,7 @@ def _restore(inst): inst.is_template = True inst.save(update_fields=["is_template"]) InstanceTombstone.objects.filter(uuid=inst.uuid).delete() - _log(inst, "owners restored") + _log(inst, "owners and tags restored") def _host_domains(compute): diff --git a/computes/views.py b/computes/views.py index e6843a08..b2dc1e46 100644 --- a/computes/views.py +++ b/computes/views.py @@ -235,7 +235,7 @@ def instances(request, compute_id): # read first: the poll's first answer then tells a change made while the page was read states = vm_states(request.user, [compute]) utils.refresh_instance_database(compute) - instances = list(Instance.objects.filter(compute=compute).order_by("name").prefetch_related("userinstance_set")) + instances = list(Instance.objects.filter(compute=compute).order_by("name").prefetch_related("userinstance_set", "tags")) read_list_rows(instances, [compute]) return render( diff --git a/instances/tests/test_tags.py b/instances/tests/test_tags.py index c8750ddc..2c400878 100644 --- a/instances/tests/test_tags.py +++ b/instances/tests/test_tags.py @@ -40,6 +40,11 @@ class VmTagsTests(TestCase): self.assertEqual(list(Logs.objects.filter(message__startswith="VM").order_by("id").values_list("message", flat=True)), ["VM vt-vm: tags new-one, prod", "VM vt-vm: tags none"]) + def test_the_same_tags_again_are_no_change(self): + self.post(self.admin, ["prod"]) + self.post(self.admin, ["PROD"]) + self.assertEqual(Logs.objects.filter(message__startswith="VM vt-vm: tags").count(), 1) + def test_a_bad_name_changes_nothing(self): self.vm.tags.add(Tag.objects.create(name="prod")) self.post(self.admin, ["two words"]) @@ -64,6 +69,14 @@ class VmTagsTests(TestCase): self.assertEqual(InstanceTombstone.objects.get().tags, ["prod"]) self.assertFalse(Logs.objects.filter(message__startswith="VM vt-vm: tags").exists()) + def test_the_host_s_vm_list_and_the_user_s_vms_show_them(self): + self.vm.tags.add(Tag.objects.create(name="prod")) + self.client.force_login(self.admin) + with patch("computes.views.utils.refresh_instance_database"), patch("computes.views.vm_states", return_value={}), \ + patch("computes.views.read_list_rows"): + self.assertContains(self.client.get(reverse("instances", args=[self.vm.compute_id])), "prod") + self.assertContains(self.client.get(reverse("accounts:account", args=[self.owner.id])), "prod") + def test_the_vm_list_shows_them(self): self.vm.tags.add(Tag.objects.create(name="prod")) html = render_to_string("instance_name_cell.html", {"instance": self.vm}) @@ -138,11 +151,16 @@ class TagsApiTests(TestCase): self.assertEqual([(c["name"], c["tags"]) for c in self.client.get("/api/v1/computes/").json()], [("ta", ["prod"]), ("ta2", [])]) self.assertEqual([c["name"] for c in self.client.get("/api/v1/computes/?tag=prod").json()], ["ta"]) - self.assertEqual([c["name"] for c in self.client.get("/api/v1/computes/?tag=PROD").json()], ["ta"]) + self.assertEqual([c["name"] for c in self.client.get("/api/v1/computes/?tag=%20PROD%20").json()], ["ta"]) def test_a_tag_asked_of_one_host_is_no_filter(self): self.assertEqual(self.client.get(f"/api/v1/computes/{self.compute.id}/?tag=other").status_code, 200) def test_the_tags_are_not_set_through_the_api(self): - self.client.patch(f"/api/v1/computes/{self.compute.id}/", {"tags": []}, content_type="application/json") - self.assertTrue(self.compute.tags.exists()) + with patch("computes.models.Compute.clean"): # the host is not reached + response = self.client.patch(f"/api/v1/computes/{self.compute.id}/", {"tags": [], "details": "rack 2"}, + content_type="application/json") + self.assertEqual(response.status_code, 200) + self.compute.refresh_from_db() + self.assertEqual((self.compute.details, list(self.compute.tags.values_list("name", flat=True))), + ("rack 2", ["prod"])) diff --git a/instances/tests/test_vm_report.py b/instances/tests/test_vm_report.py index da5864fc..18649dd2 100644 --- a/instances/tests/test_vm_report.py +++ b/instances/tests/test_vm_report.py @@ -5,7 +5,7 @@ from io import BytesIO from unittest.mock import patch from accounts.models import UserInstance -from computes.models import Compute +from computes.models import Compute, Tag from django.contrib.auth import get_user_model from django.contrib.auth.models import Permission from django.contrib.messages import get_messages @@ -35,6 +35,7 @@ class VmReportTests(TestCase): self.c1 = Compute.objects.create(name="host-one", hostname="192.0.2.1", login="u", password="p", type=1) self.c2 = Compute.objects.create(name="host-two", hostname="192.0.2.2", login="u", password="p", type=1) self.a = Instance.objects.create(compute=self.c1, name="vm-a", uuid=UUID_A) + self.a.tags.add(Tag.objects.create(name="web"), Tag.objects.create(name="prod")) Instance.objects.create(compute=self.c2, name="vm-b", uuid=UUID_B) UserInstance.objects.create(user=self.owner, instance=self.a) @@ -71,9 +72,9 @@ class VmReportTests(TestCase): self.assertRegex(response["Content-Disposition"], r'attachment; filename="vms-\d{8}-\d{4}\.xlsx"') rows, coverage = self.sheets(response) self.assertEqual(rows[0], ["VM", "State", "Host", "OS", "OS family", "vCPUs", "Memory (MiB)", "IP addresses", - "Address sources", "MAC addresses", "Owners", "In the panel"]) + "Address sources", "MAC addresses", "Owners", "Tags", "In the panel"]) self.assertEqual(rows[1], ["vm-a", "Active", "host-one", "AlmaLinux 10.0", "Linux", 2, 2048, - "192.0.2.10, 2001:db8::10", "ARP, agent", "52:54:00:00:00:01", "vr-owner", "yes"]) + "192.0.2.10, 2001:db8::10", "ARP, agent", "52:54:00:00:00:01", "vr-owner", "prod, web", "yes"]) self.assertEqual(rows[2][:3] + rows[2][-1:], ["made-with-virsh", "Off", "host-two", "no"]) self.assertIn("Hosts not reached: host-three", coverage) diff --git a/instances/views.py b/instances/views.py index 5d21e616..9884245d 100755 --- a/instances/views.py +++ b/instances/views.py @@ -238,9 +238,10 @@ def vm_report(request): owners = {} for owner in UserInstance.objects.select_related("user", "instance"): owners.setdefault((owner.instance.compute_id, owner.instance.uuid), []).append(owner.user.username) + tags = {(vm.compute_id, vm.uuid): [tag.name for tag in vm.tags.all()] for vm in Instance.objects.prefetch_related("tags")} # in the reader's language header = [_("VM"), _("State"), _("Host"), _("OS"), _("OS family"), _("vCPUs"), _("Memory (MiB)"), _("IP addresses"), - _("Address sources"), _("MAC addresses"), _("Owners"), _("In the panel")] + _("Address sources"), _("MAC addresses"), _("Owners"), _("Tags"), _("In the panel")] rows = [] for vm in result["vms"]: key = (vm["compute_id"], vm["uuid"]) @@ -251,7 +252,8 @@ def vm_report(request): rows.append([vm["name"], str(state_label(vm["state"])[0]), hosts[vm["compute_id"]], vm["os"], vm["os_family"], vm["vcpus"], vm["memory"], ", ".join(address for address, _sources in reported), ", ".join(s for s in addresses.SOURCES.values() if s in found), ", ".join(vm["macs"]), - ", ".join(sorted(owners.get(key, []))), _("yes") if key in known else _("no")]) + ", ".join(sorted(owners.get(key, []))), ", ".join(tags.get(key, [])), + _("yes") if key in known else _("no")]) notes = [_("Created: %(time)s") % {"time": f"{timezone.localtime():%Y-%m-%d %H:%M}"}, _("VMs listed: %(n)s") % {"n": len(rows)}, @@ -2407,8 +2409,9 @@ def set_tags(request, pk): names = form.cleaned_data["tags"] with audit_vm(request, instance, f"tags {', '.join(sorted(names)) or 'none'}") as entry, transaction.atomic(): lock_ownership() # not while the VM's tags are kept or given back (computes.utils.forget) - entry.skip = moved = _moved_meanwhile(pk, instance) # its host's list may have dropped it meanwhile - if not moved: + moved = _moved_meanwhile(pk, instance) # its host's list may have dropped it meanwhile + entry.skip = moved or set(names) == set(instance.tags.values_list("name", flat=True)) + if not entry.skip: instance.tags.set(Tag.named(names)) return _moved(request, pk) if moved else _back(request, pk, "options") diff --git a/locale/tr/LC_MESSAGES/django.mo b/locale/tr/LC_MESSAGES/django.mo index dbe0cd62..c468d4e5 100644 Binary files a/locale/tr/LC_MESSAGES/django.mo and b/locale/tr/LC_MESSAGES/django.mo differ diff --git a/locale/tr/LC_MESSAGES/django.po b/locale/tr/LC_MESSAGES/django.po index f742e204..a388a945 100644 --- a/locale/tr/LC_MESSAGES/django.po +++ b/locale/tr/LC_MESSAGES/django.po @@ -11,7 +11,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2026-11-18 19:42+0000\n" +"POT-Creation-Date: 2026-11-18 20:12+0000\n" "PO-Revision-Date: 2020-11-04 12:00+0000\n" "Last-Translator: catborise , 2020\n" "Language-Team: Turkish (https://www.transifex.com/catborise/teams/110663/tr/)\n" @@ -29,17 +29,17 @@ msgstr "API'yi kullanmadan önce parolanızı değiştirin." msgid "Instance owned by another user" msgstr "Diğer kullanıcıya ait sanal makineler" -#: accounts/forms.py:35 accounts/templates/account.html:72 +#: accounts/forms.py:35 accounts/templates/account.html:73 #: instances/templates/instances/settings_tab.html:676 msgid "Change settings" msgstr "Ayarları değiştir" -#: accounts/forms.py:35 accounts/templates/account.html:73 +#: accounts/forms.py:35 accounts/templates/account.html:74 #: instances/templates/instances/settings_tab.html:676 msgid "Delete the VM" msgstr "Sanal makineyi sil" -#: accounts/forms.py:36 accounts/templates/account.html:74 +#: accounts/forms.py:36 accounts/templates/account.html:75 #: instances/templates/instances/settings_tab.html:676 msgid "Change console settings" msgstr "Konsol ayarlarını değiştir" @@ -226,16 +226,16 @@ msgstr "Kullanıcı bölümleri" #: admin/forms.py:221 admin/templates/admin/tag_list.html:19 #: computes/templates/computes/list.html:34 #: computes/templates/computes/list.html:61 computes/templates/overview.html:90 -#: instances/views.py:265 vmbackups/templates/vmbackups/policies.html:17 +#: instances/views.py:267 vmbackups/templates/vmbackups/policies.html:17 msgid "VMs" msgstr "Sanal makineler" -#: accounts/templates/account.html:51 accounts/templates/account.html:95 +#: accounts/templates/account.html:51 accounts/templates/account.html:96 #: accounts/templates/profile.html:44 msgid "SSH Keys" msgstr "SSH Anahtarları" -#: accounts/templates/account.html:52 accounts/templates/account.html:100 +#: accounts/templates/account.html:52 accounts/templates/account.html:101 #: accounts/templates/profile.html:62 msgid "API Tokens" msgstr "API Anahtarları" @@ -250,32 +250,32 @@ msgstr "Sanal makine ekle" #: instances/templates/allinstances.html:109 #: instances/templates/allinstances_index_nongrouped.html:8 #: instances/templates/create_steps.html:6 -#: instances/templates/create_steps.html:8 instances/views.py:242 +#: instances/templates/create_steps.html:8 instances/views.py:243 #: operations/templates/operations/jobs.html:24 msgid "Host" msgstr "Sunucu" -#: accounts/templates/account.html:75 +#: accounts/templates/account.html:76 #: instances/templates/instances/settings_tab.html:678 msgid "Power and console only" msgstr "Yalnızca güç ve konsol" -#: accounts/templates/account.html:80 computes/templates/computes/list.html:109 +#: accounts/templates/account.html:81 computes/templates/computes/list.html:109 #: instances/templates/instance_actions.html:9 #: storages/templates/storage.html:140 #, python-format msgid "Actions for %(name)s" msgstr "%(name)s için işlemler" -#: accounts/templates/account.html:82 +#: accounts/templates/account.html:83 msgid "Change access" msgstr "Erişimi değiştir" -#: accounts/templates/account.html:83 +#: accounts/templates/account.html:84 msgid "Remove from user" msgstr "Kullanıcıdan kaldır" -#: accounts/templates/account.html:89 +#: accounts/templates/account.html:90 msgid "No VMs." msgstr "Sanal makine yok." @@ -797,7 +797,7 @@ msgstr "" #: instances/templates/allinstances_index_nongrouped.html:14 #: instances/templates/create_instance_w2.html:63 #: instances/templates/instances/resize_tab.html:30 -#: instances/templates/instances/settings_tab.html:854 instances/views.py:242 +#: instances/templates/instances/settings_tab.html:854 instances/views.py:243 msgid "vCPUs" msgstr "vCPU" @@ -1013,7 +1013,7 @@ msgid "IP" msgstr "IP" #: admin/templates/admin/logs.html:56 admin/views.py:397 instances/states.py:19 -#: instances/views.py:489 logs/views.py:18 +#: instances/views.py:491 logs/views.py:18 msgid "Unknown" msgstr "Bilinmeyen" @@ -1031,7 +1031,7 @@ msgstr "Başarısız" #: admin/templates/admin/tag_list.html:5 admin/templates/admin/tag_list.html:7 #: computes/forms.py:48 instances/templates/instances/settings_tab.html:925 -#: templates/navbar.html:39 +#: instances/views.py:244 templates/navbar.html:39 msgid "Tags" msgstr "Etiketler" @@ -1106,7 +1106,7 @@ msgstr "Şablon" msgid "Left" msgstr "Ayrıldığı sunucu" -#: admin/templates/admin/tombstone_list.html:35 instances/views.py:243 +#: admin/templates/admin/tombstone_list.html:35 instances/views.py:244 msgid "Owners" msgstr "Sahipler" @@ -1323,9 +1323,9 @@ msgid "Removed VM %(name)s deleted" msgstr "Kaldırılan sanal makine %(name)s silindi" #: admin/views.py:465 -msgid "Its owners no longer get the VM back if its UUID shows up again." +msgid "Its owners and tags no longer come back if its UUID shows up again." msgstr "" -"UUID'si yeniden görünse bile sahipleri sanal makineyi artık geri almaz." +"UUID'si yeniden görünse bile sahipleri ve etiketleri artık geri gelmez." #: admin/views.py:507 #, python-format @@ -2402,7 +2402,7 @@ msgstr "Sunucu, sanal makineleri taşınmadan bakıma alınsın mı?" msgid "Put in maintenance without migrating" msgstr "Taşımadan bakıma al" -#: computes/templates/computes/bulk_migrate.html:26 instances/views.py:382 +#: computes/templates/computes/bulk_migrate.html:26 instances/views.py:384 msgid "There is no other host to migrate to." msgstr "Taşınacak başka bir sunucu yok." @@ -2773,6 +2773,15 @@ msgstr "Bağlantıyı düzenle" msgid "Remove from panel" msgstr "Panelden kaldır" +#: computes/templates/computes/list.html:126 +msgid "No host matches the filters." +msgstr "Filtrelerle eşleşen sunucu yok." + +#: computes/templates/computes/list.html:127 +#: instances/templates/allinstances.html:71 +msgid "Clear the filters" +msgstr "Filtreleri temizle" + #: computes/templates/computes/pool_bar.html:5 #, python-format msgid "%(name)s used" @@ -3315,12 +3324,12 @@ msgstr "" "VNC olarak değiştirin." #: instances/api/viewsets.py:160 instances/api/viewsets.py:178 -#: instances/views.py:863 instances/views.py:885 instances/views.py:1875 +#: instances/views.py:865 instances/views.py:887 instances/views.py:1877 msgid "Templates cannot be started." msgstr "Şablon makineler başlatılamaz." #: instances/forms.py:14 instances/templates/create_instance_w2.html:69 -#: instances/templates/instances/settings_tab.html:858 instances/views.py:242 +#: instances/templates/instances/settings_tab.html:858 instances/views.py:243 msgid "Memory (MiB)" msgstr "Bellek (MiB)" @@ -3710,7 +3719,7 @@ msgstr "" msgid "Create VM" msgstr "Sanal makine oluştur" -#: instances/jobs.py:928 instances/jobs.py:975 instances/views.py:2632 +#: instances/jobs.py:928 instances/jobs.py:975 instances/views.py:2635 msgid "A virtual machine with this name already exists" msgstr "Bu isimde bir sanal makine mevcut" @@ -4070,7 +4079,7 @@ msgid "Disk source" msgstr "Disk kaynağı" #: instances/templates/add_instance_volume.html:21 -#: instances/templates/create_instance_w2.html:134 instances/views.py:2662 +#: instances/templates/create_instance_w2.html:134 instances/views.py:2665 msgid "New disk" msgstr "Yeni disk" @@ -4175,10 +4184,6 @@ msgstr "Burada henüz sanal makine yok." msgid "No VM matches the filters." msgstr "Filtrelerle eşleşen sanal makine yok." -#: instances/templates/allinstances.html:71 -msgid "Clear the filters" -msgstr "Filtreleri temizle" - #: instances/templates/allinstances.html:76 msgid "The search did not go through. Try again." msgstr "Arama tamamlanamadı. Yeniden deneyin." @@ -4262,7 +4267,7 @@ msgstr "Bul" msgid "Address" msgstr "Adres" -#: instances/templates/allinstances.html:106 instances/views.py:242 +#: instances/templates/allinstances.html:106 instances/views.py:243 #: interfaces/templates/interface.html:153 networks/templates/network.html:202 #: vmbackups/templates/vmbackups/index.html:18 #: vmbackups/templates/vmbackups/index.html:49 @@ -4471,7 +4476,7 @@ msgstr "Özel CPU modelleri" msgid "Size (GiB)" msgstr "Boyut (GiB)" -#: instances/templates/create_instance_w2.html:161 instances/views.py:2663 +#: instances/templates/create_instance_w2.html:161 instances/views.py:2666 msgid "Existing volumes" msgstr "Mevcut birimler" @@ -4508,7 +4513,7 @@ msgstr "Aygıt" msgid "Remove" msgstr "Kaldır" -#: instances/templates/create_instance_w2.html:194 instances/views.py:2664 +#: instances/templates/create_instance_w2.html:194 instances/views.py:2667 msgid "Clone from template" msgstr "Şablondan klonla" @@ -6759,7 +6764,7 @@ msgstr "Bir IP adresi, 192.0.2.0/24 gibi bir ağ ya da bir MAC adresi girin." msgid "Too many searches are still running; try again shortly." msgstr "Çok fazla arama hâlâ çalışıyor; birazdan yeniden deneyin." -#: instances/views.py:242 interfaces/templates/interface.html:46 +#: instances/views.py:243 interfaces/templates/interface.html:46 #: networks/templates/network.html:51 #: operations/templates/operations/jobs.html:38 #: operations/templates/operations/jobs.html:62 @@ -6771,54 +6776,54 @@ msgstr "Çok fazla arama hâlâ çalışıyor; birazdan yeniden deneyin." msgid "State" msgstr "Durum" -#: instances/views.py:242 +#: instances/views.py:243 msgid "OS" msgstr "İşletim sistemi" -#: instances/views.py:242 +#: instances/views.py:243 msgid "OS family" msgstr "İşletim sistemi ailesi" -#: instances/views.py:242 +#: instances/views.py:243 msgid "IP addresses" msgstr "IP adresleri" -#: instances/views.py:243 +#: instances/views.py:244 msgid "Address sources" msgstr "Adres kaynakları" -#: instances/views.py:243 +#: instances/views.py:244 msgid "MAC addresses" msgstr "MAC adresleri" -#: instances/views.py:243 +#: instances/views.py:244 msgid "In the panel" msgstr "Panelde" -#: instances/views.py:254 +#: instances/views.py:256 msgid "yes" msgstr "evet" -#: instances/views.py:254 +#: instances/views.py:256 msgid "no" msgstr "hayır" -#: instances/views.py:256 +#: instances/views.py:258 #, python-format msgid "Created: %(time)s" msgstr "Oluşturulma: %(time)s" -#: instances/views.py:257 +#: instances/views.py:259 #, python-format msgid "VMs listed: %(n)s" msgstr "Listelenen sanal makineler: %(n)s" -#: instances/views.py:258 +#: instances/views.py:260 #, python-format msgid "Running VMs read: %(n)s" msgstr "Okunan çalışan sanal makineler: %(n)s" -#: instances/views.py:259 +#: instances/views.py:261 #, python-format msgid "" "Without a connected guest agent (a static address on them cannot be seen): " @@ -6826,7 +6831,7 @@ msgid "" msgstr "" "Bağlı konuk ajanı olmayanlar (üzerlerindeki statik adres görülemez): %(n)s" -#: instances/views.py:260 +#: instances/views.py:262 #, python-format msgid "" "Guest agents not read (a paused VM, no answer in time, or an error): %(n)s" @@ -6834,45 +6839,45 @@ msgstr "" "Okunamayan konuk ajanları (duraklatılmış VM, zamanında yanıt yok ya da hata):" " %(n)s" -#: instances/views.py:262 +#: instances/views.py:264 #, python-format msgid "Hosts not reached: %(hosts)s" msgstr "Ulaşılamayan sunucular: %(hosts)s" -#: instances/views.py:264 +#: instances/views.py:266 #, python-format msgid "Hosts not finished in time: %(hosts)s" msgstr "Zamanında bitmeyen sunucular: %(hosts)s" -#: instances/views.py:265 +#: instances/views.py:267 msgid "Coverage" msgstr "Kapsam" -#: instances/views.py:280 +#: instances/views.py:282 #, python-format msgid "The host %(host)s of '%(name)s' cannot be reached: %(error)s" msgstr "'%(name)s' sanal makinesinin sunucusu %(host)s erişilemiyor: %(error)s" -#: instances/views.py:286 +#: instances/views.py:288 #, python-format msgid "The host of '%(name)s' cannot be reached right now." msgstr "'%(name)s' sanal makinesinin sunucusuna şu anda erişilemiyor." -#: instances/views.py:287 +#: instances/views.py:289 msgid " Jobs on it can be followed under Jobs in the menu." msgstr " Üzerindeki işler menüdeki İşler bölümünden izlenebilir." -#: instances/views.py:295 +#: instances/views.py:297 #, python-format msgid "'%(name)s' is no longer on its host." msgstr "'%(name)s' artık sunucusunda yok." -#: instances/views.py:384 +#: instances/views.py:386 msgid "A VM migrates when it is running, paused or shut off." msgstr "" "Sanal makine çalışırken, duraklatılmışken ya da kapalıyken taşınabilir." -#: instances/views.py:386 +#: instances/views.py:388 msgid "" "A VM with snapshots cannot be migrated: its snapshots stay on this host. " "Delete them first." @@ -6880,7 +6885,7 @@ msgstr "" "Anlık görüntüsü olan bir sanal makine taşınamaz: anlık görüntüleri bu " "sunucuda kalır. Önce onları silin." -#: instances/views.py:388 +#: instances/views.py:390 msgid "" "A VM with host devices cannot be migrated: the destination may not have them." " Remove them first." @@ -6888,16 +6893,16 @@ msgstr "" "Sunucu aygıtları olan bir sanal makine taşınamaz: hedefte bu aygıtlar " "olmayabilir. Önce onları kaldırın." -#: instances/views.py:634 +#: instances/views.py:636 #, python-format msgid "Disk %(dev)s has changed since the page was loaded; reload the page" msgstr "%(dev)s diski sayfa yüklendikten sonra değişti; sayfayı yenileyin" -#: instances/views.py:709 instances/views.py:710 +#: instances/views.py:711 instances/views.py:712 msgid "The VM was moved meanwhile; try again." msgstr "Sanal makine bu arada taşındı; yeniden deneyin." -#: instances/views.py:826 +#: instances/views.py:828 msgid "" "The running VM has no free PCI slot for another disk on this bus: choose the " "scsi bus if the VM has a SCSI controller, or shut the VM down and add the " @@ -6910,7 +6915,7 @@ msgstr "" "yuvaları ekle, sonraki başlatmadan itibaren ona boş yuvalar verir. Yeni bir " "birim havuzunda kalır, mevcut birim olarak eklenebilir." -#: instances/views.py:830 +#: instances/views.py:832 msgid "" "The running VM has no free PCI slot for the SCSI controller the disk needs: " "shut the VM down and add the disk then; Add PCIe slots on the Disks tab gives" @@ -6922,195 +6927,195 @@ msgstr "" "PCIe yuvaları ekle, sonraki başlatmadan itibaren ona boş yuvalar verir. Yeni " "bir birim havuzunda kalır, mevcut birim olarak eklenebilir." -#: instances/views.py:848 +#: instances/views.py:850 #, python-format msgid "Invalid disk options: %(options)s" msgstr "Geçersiz disk seçenekleri: %(options)s" -#: instances/views.py:860 instances/views.py:955 +#: instances/views.py:862 instances/views.py:957 #, python-format msgid "Invalid options: %(options)s" msgstr "Geçersiz seçenekler: %(options)s" -#: instances/views.py:895 +#: instances/views.py:897 msgid "The VM was forced off but did not start again: it stays off." msgstr "Sanal makine zorla kapatıldı ancak yeniden başlamadı: kapalı kalıyor." -#: instances/views.py:1083 +#: instances/views.py:1085 #, python-format msgid "Set the gstfsd key of %(compute)s first (Computes, edit the host)" msgstr "" "Önce %(compute)s sunucusunun gstfsd anahtarını ayarlayın (Sunucular, sunucuyu" " düzenle)" -#: instances/views.py:1090 instances/views.py:1108 instances/views.py:1117 +#: instances/views.py:1092 instances/views.py:1110 instances/views.py:1119 #, python-format msgid "gstfsd error: %(err)s" msgstr "gstfsd hatası: %(err)s" -#: instances/views.py:1118 +#: instances/views.py:1120 msgid "the reply is not signed with the key" msgstr "yanıt anahtarla imzalanmamış" -#: instances/views.py:1126 +#: instances/views.py:1128 msgid "Shut the VM down, or start its QEMU guest agent, and try again" msgstr "" "Sanal makineyi kapatın ya da QEMU konuk ajanını başlatın ve yeniden deneyin" -#: instances/views.py:1134 +#: instances/views.py:1136 msgid "The change may still be made when the agent answers again." msgstr "Ajan yeniden yanıt verdiğinde değişiklik yine de yapılabilir." -#: instances/views.py:1149 +#: instances/views.py:1151 msgid "Enter a password" msgstr "Bir parola girin" -#: instances/views.py:1154 +#: instances/views.py:1156 msgid "Enter a password of at most 4096 characters, without NUL characters" msgstr "En fazla 4096 karakterlik, NUL karakteri içermeyen bir parola girin" -#: instances/views.py:1170 +#: instances/views.py:1172 msgid "Reset root password" msgstr "Root parolasını sıfırla" -#: instances/views.py:1186 +#: instances/views.py:1188 msgid "Select an SSH public key" msgstr "Bir SSH açık anahtarı seçin" -#: instances/views.py:1208 +#: instances/views.py:1210 #, python-format msgid "Installed new SSH public key %(keyname)s" msgstr "Yeni %(keyname)s SSH açık anahtarı yüklendi" -#: instances/views.py:1228 +#: instances/views.py:1230 msgid "Enter a whole number of vCPUs" msgstr "vCPU sayısı için bir tam sayı girin" -#: instances/views.py:1232 +#: instances/views.py:1234 msgid "Shut off the VM to change its vCPUs" msgstr "vCPU'larını değiştirmek için sanal makineyi kapatın" -#: instances/views.py:1235 +#: instances/views.py:1237 msgid "The current vCPUs cannot be more than the maximum" msgstr "Geçerli vCPU sayısı en fazla değerden büyük olamaz" -#: instances/views.py:1242 +#: instances/views.py:1244 #, python-format msgid "%(quota)s: cannot resize the CPU of '%(instance_name)s'." msgstr "%(quota)s: '%(instance_name)s' CPU'su yeniden boyutlandırılamıyor." -#: instances/views.py:1250 +#: instances/views.py:1252 #, python-format msgid "vCPUs set to %(cur)s (maximum %(max)s)" msgstr "vCPU sayısı %(cur)s olarak ayarlandı (en fazla %(max)s)" -#: instances/views.py:1269 +#: instances/views.py:1271 msgid "Enter a whole number for memory" msgstr "Bellek için bir tam sayı girin" -#: instances/views.py:1272 +#: instances/views.py:1274 msgid "The current memory cannot be more than the maximum" msgstr "Geçerli bellek en fazla değerden büyük olamaz" -#: instances/views.py:1276 +#: instances/views.py:1278 #, python-format msgid "%(quota)s: cannot resize the memory of '%(instance_name)s'." msgstr "%(quota)s: '%(instance_name)s' belleği yeniden boyutlandırılamıyor." -#: instances/views.py:1282 +#: instances/views.py:1284 #, python-format msgid "Memory set to %(cur)s MiB (maximum %(max)s MiB)" msgstr "Bellek %(cur)s MiB olarak ayarlandı (en fazla %(max)s MiB)" -#: instances/views.py:1302 +#: instances/views.py:1304 msgid "Enter disk sizes as whole GiB" msgstr "Disk boyutlarını tam GiB olarak girin" -#: instances/views.py:1306 +#: instances/views.py:1308 #, python-format msgid "Disk %(dev)s was changed meanwhile; reload the page" msgstr "%(dev)s diski bu arada değişti; sayfayı yeniden yükleyin" -#: instances/views.py:1310 +#: instances/views.py:1312 #, python-format msgid "%(dev)s is %(size)s: a disk cannot shrink" msgstr "%(dev)s boyutu %(size)s: disk küçültülemez" -#: instances/views.py:1318 +#: instances/views.py:1320 msgid "No disks were selected or valid for resizing." msgstr "Boyutlandırma için seçilmiş ya da geçerli disk yok." -#: instances/views.py:1327 +#: instances/views.py:1329 #, python-format msgid "%(quota)s: cannot resize the disks of '%(instance_name)s'." msgstr "%(quota)s: '%(instance_name)s' diskleri yeniden boyutlandırılamıyor." -#: instances/views.py:1339 +#: instances/views.py:1341 #, python-format msgid "The storage pool of %(dev)s cannot resize its volumes" msgstr "%(dev)s diskinin depolama havuzu birimlerini boyutlandıramaz" -#: instances/views.py:1341 +#: instances/views.py:1343 #, python-format msgid "Disk is resized: %(dev)s" msgstr "Disk boyutu değiştirildi: %(dev)s" -#: instances/views.py:1435 +#: instances/views.py:1437 msgid "The VM's machine has no PCIe slots to add" msgstr "Sanal makinenin makine tipinde eklenecek PCIe yuvası yok" -#: instances/views.py:1440 +#: instances/views.py:1442 #, python-format msgid "%(count)s PCIe slots added" msgstr "%(count)s PCIe yuvası eklendi" -#: instances/views.py:1442 +#: instances/views.py:1444 #, python-format msgid "%(count)s PCIe slots added: the VM gets them at its next start" msgstr "" "%(count)s PCIe yuvası eklendi: sanal makine bunları sonraki başlatmasında " "alır" -#: instances/views.py:1493 +#: instances/views.py:1495 #, python-format msgid "%(volume)s is already a disk of this VM" msgstr "%(volume)s zaten bu sanal makinenin bir diski" -#: instances/views.py:1583 +#: instances/views.py:1585 msgid "Volume changes are applied. But it will be activated after shutdown" msgstr "" "Birim değişiklikleri uygulandı. Ama yeniden başlatıldıktan sonra uygulanacak" -#: instances/views.py:1588 +#: instances/views.py:1590 msgid "Volume is changed successfully." msgstr "Birim başarıyla değiştirildi." -#: instances/views.py:1608 +#: instances/views.py:1610 #, python-format msgid "Disk %(dev)s is not a storage volume of this instance" msgstr "%(dev)s diski bu sanal makinenin bir depolama birimi değil" -#: instances/views.py:1613 vrtManager/instance.py:2493 +#: instances/views.py:1615 vrtManager/instance.py:2493 msgid "The VM has a saved state; start it or remove the saved state first" msgstr "" "Sanal makinenin kaydedilmiş durumu var; önce başlatın veya kaydedilmiş durumu" " kaldırın" -#: instances/views.py:1619 +#: instances/views.py:1621 #, python-format msgid "Disk %(dev)s has a pending change; delete it once the VM is shut down" msgstr "" "%(dev)s diskinin bekleyen bir değişikliği var; sanal makine kapatıldığında " "silin" -#: instances/views.py:1634 +#: instances/views.py:1636 #, python-format msgid "Volume %(vol)s is used by another VM; detach it instead" msgstr "" "%(vol)s birimi başka bir sanal makine tarafından kullanılıyor; onun yerine " "ayırın" -#: instances/views.py:1652 +#: instances/views.py:1654 #, python-format msgid "" "The guest has not released disk %(dev)s yet; volume %(vol)s was kept. Delete " @@ -7119,66 +7124,66 @@ msgstr "" "Konuk sistem %(dev)s diskini henüz bırakmadı; %(vol)s birimi korundu. Sanal " "makine kapatıldığında depolama havuzundan silin." -#: instances/views.py:1663 +#: instances/views.py:1665 #, python-format msgid "Disk %(dev)s was detached, but its volume was kept: %(err)s" msgstr "%(dev)s diski ayrıldı, ancak birimi korundu: %(err)s" -#: instances/views.py:1691 +#: instances/views.py:1693 #, python-format msgid "This VM cannot take a CD-ROM on the %(bus)s bus now" msgstr "Bu sanal makineye şu anda %(bus)s veri yolunda CD-ROM eklenemez" -#: instances/views.py:1694 +#: instances/views.py:1696 msgid "A USB CD-ROM needs an ISO image: libvirt has no empty USB drive" msgstr "USB CD-ROM bir ISO imajı ister: libvirt boş USB sürücü desteklemiyor" -#: instances/views.py:1699 +#: instances/views.py:1701 #, python-format msgid "%(image)s is already in a CD-ROM of this VM" msgstr "%(image)s bu sanal makinenin bir CD-ROM'unda zaten takılı" -#: instances/views.py:1780 +#: instances/views.py:1782 #, python-format msgid "Pool %(pool)s was not read again: %(err)s" msgstr "%(pool)s havuzu yeniden okunamadı: %(err)s" -#: instances/views.py:1801 +#: instances/views.py:1803 #, python-format msgid "Snapshot was not deleted: %(err)s" msgstr "Anlık görüntü silinmedi: %(err)s" -#: instances/views.py:1920 +#: instances/views.py:1922 msgid "Add at least one device to the boot order." msgstr "Ön yükleme sırasına en az bir aygıt ekleyin." -#: instances/views.py:1926 vrtManager/instance.py:1263 +#: instances/views.py:1928 vrtManager/instance.py:1263 msgid "Invalid Device Type for boot order" msgstr "Ön yükleme sırası için geçersiz aygıt türü" -#: instances/views.py:1937 +#: instances/views.py:1939 msgid "Boot order changed. It applies at the next start." msgstr "Ön yükleme sırası değiştirildi. Sonraki başlatmada uygulanır." -#: instances/views.py:1939 +#: instances/views.py:1941 msgid "Boot order changed successfully." msgstr "Ön yükleme sırası başarıyla değiştirildi." -#: instances/views.py:1959 +#: instances/views.py:1961 msgid "The XML is empty" msgstr "XML boş" -#: instances/views.py:1963 instances/views.py:2644 +#: instances/views.py:1965 instances/views.py:2647 #, python-format msgid "The XML is not well-formed: %(error)s" msgstr "XML düzgün biçimlendirilmemiş: %(error)s" -#: instances/views.py:1965 +#: instances/views.py:1967 #, python-format msgid "The XML must keep the VM's UUID %(uuid)s." msgstr "XML, sanal makinenin %(uuid)s UUID'sini korumalıdır." -#: instances/views.py:1969 +#: instances/views.py:1971 msgid "" "The definition has changed since the editor was opened. Reload the page to " "edit the current one." @@ -7186,45 +7191,45 @@ msgstr "" "Düzenleyici açıldığından beri tanım değişti. Geçerli tanımı düzenlemek için " "sayfayı yeniden yükleyin." -#: instances/views.py:1985 +#: instances/views.py:1987 msgid "The XML definition was saved." msgstr "XML tanımı kaydedildi." -#: instances/views.py:1987 +#: instances/views.py:1989 msgid "The XML definition was saved; the VM uses it from its next start." msgstr "" "XML tanımı kaydedildi; sanal makine onu sonraki başlatmasından itibaren " "kullanır." -#: instances/views.py:2068 +#: instances/views.py:2070 msgid "Select one network interface to change" msgstr "Değiştirilecek bir ağ arabirimi seçin" -#: instances/views.py:2082 +#: instances/views.py:2084 #, python-format msgid "Network interface %(mac)s was changed meanwhile; reload the page" msgstr "%(mac)s ağ arayüzü bu arada değişti; sayfayı yeniden yükleyin" -#: instances/views.py:2112 +#: instances/views.py:2114 msgid "Network Device Config is changed. Please shutdown instance to activate." msgstr "" "Ağ aygıtı yapılandırması değiştirildi. Aktifleştirmek için lütfen sanal " "makineyi kapatın." -#: instances/views.py:2114 +#: instances/views.py:2116 msgid "Network device changed" msgstr "Ağ aygıtı değiştirildi" -#: instances/views.py:2126 +#: instances/views.py:2128 msgid "No network selected" msgstr "Ağ seçilmedi" -#: instances/views.py:2131 +#: instances/views.py:2133 #, python-format msgid "The VM already has a network device with MAC %(mac)s" msgstr "Sanal makinede %(mac)s MAC adresli bir ağ aygıtı zaten var" -#: instances/views.py:2150 +#: instances/views.py:2152 msgid "" "The running VM has no free PCI slot for another network device: shut it down " "and add the device then; Add PCIe slots on the Disks tab gives it free ones " @@ -7234,21 +7239,21 @@ msgstr "" "aygıtı sonra ekleyin; Diskler sekmesindeki PCIe yuvaları ekle, sonraki " "başlatmadan itibaren ona boş yuvalar verir." -#: instances/views.py:2196 instances/views.py:2202 +#: instances/views.py:2198 instances/views.py:2204 msgid "The VM has it" msgstr "Sanal makinede var" -#: instances/views.py:2237 +#: instances/views.py:2239 #, python-format msgid "The host has no USB device %(device)s; reload the page" msgstr "Sunucuda %(device)s USB aygıtı yok; sayfayı yeniden yükleyin" -#: instances/views.py:2258 +#: instances/views.py:2260 #, python-format msgid "The host has no PCI device %(device)s" msgstr "Sunucuda %(device)s PCI aygıtı yok" -#: instances/views.py:2276 +#: instances/views.py:2278 #, python-format msgid "" "Removal of PCI device %(address)s requested: the guest has not let it go yet;" @@ -7258,20 +7263,20 @@ msgstr "" "bırakmadı; bırakana ya da sanal makine durana kadar çalışan sanal makinede " "kalır." -#: instances/views.py:2321 instances/views.py:2351 +#: instances/views.py:2323 instances/views.py:2353 msgid "Select a network interface and a QoS direction" msgstr "Bir ağ arabirimi ve bir QoS yönü seçin" -#: instances/views.py:2324 vrtManager/network.py:470 +#: instances/views.py:2326 vrtManager/network.py:470 msgid "QoS rates must be whole numbers" msgstr "QoS hızları tam sayı olmalıdır" -#: instances/views.py:2331 networks/views.py:235 +#: instances/views.py:2333 networks/views.py:235 #, python-format msgid "%(qos_dir)s QoS is set" msgstr "%(qos_dir)s QoS ayarlandı" -#: instances/views.py:2336 +#: instances/views.py:2338 #, python-format msgid "" "%(qos_dir)s QoS is set. A running VM gets it after it is powered off and on." @@ -7279,12 +7284,12 @@ msgstr "" "%(qos_dir)s QoS ayarlandı. Çalışan bir sanal makine, kapatılıp açıldıktan " "sonra bunu alır." -#: instances/views.py:2358 networks/views.py:261 +#: instances/views.py:2360 networks/views.py:261 #, python-format msgid "%(qos_dir)s QoS is deleted" msgstr "%(qos_dir)s QoS silindi" -#: instances/views.py:2363 +#: instances/views.py:2365 #, python-format msgid "" "%(qos_dir)s QoS is deleted. A running VM keeps the old limit until it is " @@ -7293,21 +7298,21 @@ msgstr "" "%(qos_dir)s QoS silindi. Çalışan bir sanal makine, kapatılıp açılana kadar " "eski sınırı korur." -#: instances/views.py:2391 +#: instances/views.py:2393 msgid "Only one owner is allowed and the one already added" msgstr "Sadece bir sahibe izin verilmiştir ve bir sahip zaten eklenmiş" -#: instances/views.py:2393 +#: instances/views.py:2395 #, python-format msgid "%(user)s is already an owner" msgstr "%(user)s zaten bir sahip" -#: instances/views.py:2457 +#: instances/views.py:2460 #, python-format msgid "Console settings were not saved: %(errors)s" msgstr "Konsol ayarları kaydedilmedi: %(errors)s" -#: instances/views.py:2479 +#: instances/views.py:2482 msgid "" "Error setting console password. You should check that your instance have an " "graphic device." @@ -7315,37 +7320,37 @@ msgstr "" "Konsol parolası ayarlanırken hata oluştu. Sanal makinenin bir grafik aygıtına" " sahip olduğundan emin olunuz." -#: instances/views.py:2526 +#: instances/views.py:2529 msgid "Shut the VM down to change whether it is a template." msgstr "Şablon olup olmadığını değiştirmek için sanal makineyi kapatın." -#: instances/views.py:2532 +#: instances/views.py:2535 #, python-format msgid "%(quota)s: '%(instance_name)s' stays a template." msgstr "%(quota)s: '%(instance_name)s' şablon olarak kalıyor." -#: instances/views.py:2630 +#: instances/views.py:2633 msgid "The XML has no name" msgstr "XML'de ad yok" -#: instances/views.py:2648 webvirtcloud/middleware.py:157 +#: instances/views.py:2651 webvirtcloud/middleware.py:157 #, python-format msgid "libvirt Error - %(exception)s" msgstr "libvirt Hatası - %(exception)s" -#: instances/views.py:2662 +#: instances/views.py:2665 msgid "An empty disk of the size you set" msgstr "Belirlediğiniz boyutta boş bir disk" -#: instances/views.py:2663 +#: instances/views.py:2666 msgid "Volumes already in a pool" msgstr "Bir havuzda zaten bulunan birimler" -#: instances/views.py:2664 +#: instances/views.py:2667 msgid "A copy of a template volume" msgstr "Bir şablon biriminin kopyası" -#: instances/views.py:2754 +#: instances/views.py:2757 msgid "" "This host has no running storage pool for the VM's disks: add or start one on" " its Storage page." @@ -7353,29 +7358,29 @@ msgstr "" "Bu sunucuda sanal makinenin diskleri için çalışan bir depolama havuzu yok: " "Depolama sayfasından bir tane ekleyin ya da başlatın." -#: instances/views.py:2756 +#: instances/views.py:2759 msgid "This host has no network for the VM: add one on its Networks page." msgstr "" "Bu sunucuda sanal makine için ağ yok: Ağlar sayfasından bir tane ekleyin." -#: instances/views.py:2788 +#: instances/views.py:2791 #, python-format msgid "The machine type is q35, not %(machine)s: UEFI Secure Boot needs it" msgstr "Makine türü %(machine)s değil q35: UEFI Secure Boot bunu gerektiriyor" -#: instances/views.py:2817 +#: instances/views.py:2820 msgid "Flavor Created" msgstr "Flavor Oluşturuldu" -#: instances/views.py:2825 +#: instances/views.py:2828 msgid "Create Flavor" msgstr "Kullanıcı Oluştur" -#: instances/views.py:2837 +#: instances/views.py:2840 msgid "Flavor Deleted" msgstr "Flavor Silindi" -#: instances/views.py:2843 +#: instances/views.py:2846 msgid "Only the size template goes; VMs made from it keep their size." msgstr "" "Yalnızca boyut şablonu silinir; ondan oluşturulan sanal makineler boyutlarını" diff --git a/locale/zh/LC_MESSAGES/django.mo b/locale/zh/LC_MESSAGES/django.mo index 1d88c1c3..374f9dc2 100644 Binary files a/locale/zh/LC_MESSAGES/django.mo and b/locale/zh/LC_MESSAGES/django.mo differ diff --git a/locale/zh/LC_MESSAGES/django.po b/locale/zh/LC_MESSAGES/django.po index 123dfa16..4544b899 100644 --- a/locale/zh/LC_MESSAGES/django.po +++ b/locale/zh/LC_MESSAGES/django.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2026-11-18 19:42+0000\n" +"POT-Creation-Date: 2026-11-18 20:12+0000\n" "PO-Revision-Date: \n" "Last-Translator: \n" "Language-Team: \n" @@ -26,17 +26,17 @@ msgstr "使用 API 前请先修改密码。" msgid "Instance owned by another user" msgstr "该虚拟机属于其他用户" -#: accounts/forms.py:35 accounts/templates/account.html:72 +#: accounts/forms.py:35 accounts/templates/account.html:73 #: instances/templates/instances/settings_tab.html:676 msgid "Change settings" msgstr "修改设置" -#: accounts/forms.py:35 accounts/templates/account.html:73 +#: accounts/forms.py:35 accounts/templates/account.html:74 #: instances/templates/instances/settings_tab.html:676 msgid "Delete the VM" msgstr "删除虚拟机" -#: accounts/forms.py:36 accounts/templates/account.html:74 +#: accounts/forms.py:36 accounts/templates/account.html:75 #: instances/templates/instances/settings_tab.html:676 msgid "Change console settings" msgstr "修改控制台设置" @@ -221,16 +221,16 @@ msgstr "用户页面导航" #: admin/forms.py:221 admin/templates/admin/tag_list.html:19 #: computes/templates/computes/list.html:34 #: computes/templates/computes/list.html:61 computes/templates/overview.html:90 -#: instances/views.py:265 vmbackups/templates/vmbackups/policies.html:17 +#: instances/views.py:267 vmbackups/templates/vmbackups/policies.html:17 msgid "VMs" msgstr "虚拟机" -#: accounts/templates/account.html:51 accounts/templates/account.html:95 +#: accounts/templates/account.html:51 accounts/templates/account.html:96 #: accounts/templates/profile.html:44 msgid "SSH Keys" msgstr "SSH 密钥" -#: accounts/templates/account.html:52 accounts/templates/account.html:100 +#: accounts/templates/account.html:52 accounts/templates/account.html:101 #: accounts/templates/profile.html:62 msgid "API Tokens" msgstr "API 令牌" @@ -245,32 +245,32 @@ msgstr "添加虚拟机" #: instances/templates/allinstances.html:109 #: instances/templates/allinstances_index_nongrouped.html:8 #: instances/templates/create_steps.html:6 -#: instances/templates/create_steps.html:8 instances/views.py:242 +#: instances/templates/create_steps.html:8 instances/views.py:243 #: operations/templates/operations/jobs.html:24 msgid "Host" msgstr "主机" -#: accounts/templates/account.html:75 +#: accounts/templates/account.html:76 #: instances/templates/instances/settings_tab.html:678 msgid "Power and console only" msgstr "仅电源和控制台" -#: accounts/templates/account.html:80 computes/templates/computes/list.html:109 +#: accounts/templates/account.html:81 computes/templates/computes/list.html:109 #: instances/templates/instance_actions.html:9 #: storages/templates/storage.html:140 #, python-format msgid "Actions for %(name)s" msgstr "%(name)s 的操作" -#: accounts/templates/account.html:82 +#: accounts/templates/account.html:83 msgid "Change access" msgstr "修改访问权限" -#: accounts/templates/account.html:83 +#: accounts/templates/account.html:84 msgid "Remove from user" msgstr "从用户移除" -#: accounts/templates/account.html:89 +#: accounts/templates/account.html:90 msgid "No VMs." msgstr "没有虚拟机。" @@ -771,7 +771,7 @@ msgstr "NEW_USER_DEFAULT_INSTANCES:%(name)s 已有所有者,且只允许一 #: instances/templates/allinstances_index_nongrouped.html:14 #: instances/templates/create_instance_w2.html:63 #: instances/templates/instances/resize_tab.html:30 -#: instances/templates/instances/settings_tab.html:854 instances/views.py:242 +#: instances/templates/instances/settings_tab.html:854 instances/views.py:243 msgid "vCPUs" msgstr "vCPU" @@ -985,7 +985,7 @@ msgid "IP" msgstr "IP" #: admin/templates/admin/logs.html:56 admin/views.py:397 instances/states.py:19 -#: instances/views.py:489 logs/views.py:18 +#: instances/views.py:491 logs/views.py:18 msgid "Unknown" msgstr "未知" @@ -1003,7 +1003,7 @@ msgstr "失败" #: admin/templates/admin/tag_list.html:5 admin/templates/admin/tag_list.html:7 #: computes/forms.py:48 instances/templates/instances/settings_tab.html:925 -#: templates/navbar.html:39 +#: instances/views.py:244 templates/navbar.html:39 msgid "Tags" msgstr "标签" @@ -1073,7 +1073,7 @@ msgstr "模板" msgid "Left" msgstr "已离开" -#: admin/templates/admin/tombstone_list.html:35 instances/views.py:243 +#: admin/templates/admin/tombstone_list.html:35 instances/views.py:244 msgid "Owners" msgstr "所有者" @@ -1282,8 +1282,8 @@ msgid "Removed VM %(name)s deleted" msgstr "已删除已移除的虚拟机 %(name)s" #: admin/views.py:465 -msgid "Its owners no longer get the VM back if its UUID shows up again." -msgstr "若其 UUID 再次出现,其所有者将不再恢复对该虚拟机的所有权。" +msgid "Its owners and tags no longer come back if its UUID shows up again." +msgstr "若其 UUID 再次出现,其所有者和标签将不再恢复。" #: admin/views.py:507 #, python-format @@ -2295,7 +2295,7 @@ msgstr "不迁移其虚拟机,直接将主机置于维护状态?" msgid "Put in maintenance without migrating" msgstr "不迁移,直接进入维护" -#: computes/templates/computes/bulk_migrate.html:26 instances/views.py:382 +#: computes/templates/computes/bulk_migrate.html:26 instances/views.py:384 msgid "There is no other host to migrate to." msgstr "没有其他可迁移到的主机。" @@ -2650,6 +2650,15 @@ msgstr "编辑连接" msgid "Remove from panel" msgstr "从面板中移除" +#: computes/templates/computes/list.html:126 +msgid "No host matches the filters." +msgstr "没有主机匹配这些筛选条件。" + +#: computes/templates/computes/list.html:127 +#: instances/templates/allinstances.html:71 +msgid "Clear the filters" +msgstr "清除筛选" + #: computes/templates/computes/pool_bar.html:5 #, python-format msgid "%(name)s used" @@ -3151,12 +3160,12 @@ msgid "" msgstr "不支持控制台类型 '%(type)s'。请将虚拟机图形切换为 VNC。" #: instances/api/viewsets.py:160 instances/api/viewsets.py:178 -#: instances/views.py:863 instances/views.py:885 instances/views.py:1875 +#: instances/views.py:865 instances/views.py:887 instances/views.py:1877 msgid "Templates cannot be started." msgstr "模板无法启动。" #: instances/forms.py:14 instances/templates/create_instance_w2.html:69 -#: instances/templates/instances/settings_tab.html:858 instances/views.py:242 +#: instances/templates/instances/settings_tab.html:858 instances/views.py:243 msgid "Memory (MiB)" msgstr "内存(MiB)" @@ -3508,7 +3517,7 @@ msgstr "磁盘缓存 %(cache)s 与设置中的原生 (native) 磁盘 I/O 不兼 msgid "Create VM" msgstr "创建虚拟机" -#: instances/jobs.py:928 instances/jobs.py:975 instances/views.py:2632 +#: instances/jobs.py:928 instances/jobs.py:975 instances/views.py:2635 msgid "A virtual machine with this name already exists" msgstr "同名虚拟机已存在" @@ -3856,7 +3865,7 @@ msgid "Disk source" msgstr "磁盘来源" #: instances/templates/add_instance_volume.html:21 -#: instances/templates/create_instance_w2.html:134 instances/views.py:2662 +#: instances/templates/create_instance_w2.html:134 instances/views.py:2665 msgid "New disk" msgstr "新磁盘" @@ -3960,10 +3969,6 @@ msgstr "这里还没有虚拟机。" msgid "No VM matches the filters." msgstr "没有虚拟机匹配这些筛选条件。" -#: instances/templates/allinstances.html:71 -msgid "Clear the filters" -msgstr "清除筛选" - #: instances/templates/allinstances.html:76 msgid "The search did not go through. Try again." msgstr "搜索未完成。请重试。" @@ -4043,7 +4048,7 @@ msgstr "查找" msgid "Address" msgstr "地址" -#: instances/templates/allinstances.html:106 instances/views.py:242 +#: instances/templates/allinstances.html:106 instances/views.py:243 #: interfaces/templates/interface.html:153 networks/templates/network.html:202 #: vmbackups/templates/vmbackups/index.html:18 #: vmbackups/templates/vmbackups/index.html:49 @@ -4245,7 +4250,7 @@ msgstr "自定义 CPU 型号" msgid "Size (GiB)" msgstr "大小(GiB)" -#: instances/templates/create_instance_w2.html:161 instances/views.py:2663 +#: instances/templates/create_instance_w2.html:161 instances/views.py:2666 msgid "Existing volumes" msgstr "已有卷" @@ -4282,7 +4287,7 @@ msgstr "设备" msgid "Remove" msgstr "移除" -#: instances/templates/create_instance_w2.html:194 instances/views.py:2664 +#: instances/templates/create_instance_w2.html:194 instances/views.py:2667 msgid "Clone from template" msgstr "从模板克隆" @@ -6361,7 +6366,7 @@ msgstr "请输入 IP 地址、网络(如 192.0.2.0/24)或 MAC 地址。" msgid "Too many searches are still running; try again shortly." msgstr "仍在运行的搜索过多;请稍后再试。" -#: instances/views.py:242 interfaces/templates/interface.html:46 +#: instances/views.py:243 interfaces/templates/interface.html:46 #: networks/templates/network.html:51 #: operations/templates/operations/jobs.html:38 #: operations/templates/operations/jobs.html:62 @@ -6373,125 +6378,125 @@ msgstr "仍在运行的搜索过多;请稍后再试。" msgid "State" msgstr "状态" -#: instances/views.py:242 +#: instances/views.py:243 msgid "OS" msgstr "操作系统" -#: instances/views.py:242 +#: instances/views.py:243 msgid "OS family" msgstr "操作系统系列" -#: instances/views.py:242 +#: instances/views.py:243 msgid "IP addresses" msgstr "IP 地址" -#: instances/views.py:243 +#: instances/views.py:244 msgid "Address sources" msgstr "地址来源" -#: instances/views.py:243 +#: instances/views.py:244 msgid "MAC addresses" msgstr "MAC 地址" -#: instances/views.py:243 +#: instances/views.py:244 msgid "In the panel" msgstr "在面板中" -#: instances/views.py:254 +#: instances/views.py:256 msgid "yes" msgstr "是" -#: instances/views.py:254 +#: instances/views.py:256 msgid "no" msgstr "否" -#: instances/views.py:256 +#: instances/views.py:258 #, python-format msgid "Created: %(time)s" msgstr "创建时间:%(time)s" -#: instances/views.py:257 +#: instances/views.py:259 #, python-format msgid "VMs listed: %(n)s" msgstr "列出的虚拟机:%(n)s" -#: instances/views.py:258 +#: instances/views.py:260 #, python-format msgid "Running VMs read: %(n)s" msgstr "已读取的运行中虚拟机:%(n)s" -#: instances/views.py:259 +#: instances/views.py:261 #, python-format msgid "" "Without a connected guest agent (a static address on them cannot be seen): " "%(n)s" msgstr "没有已连接客户机代理的虚拟机(无法看到其上的静态地址):%(n)s" -#: instances/views.py:260 +#: instances/views.py:262 #, python-format msgid "" "Guest agents not read (a paused VM, no answer in time, or an error): %(n)s" msgstr "未读取的客户机代理(虚拟机已暂停、未及时响应或出错):%(n)s" -#: instances/views.py:262 +#: instances/views.py:264 #, python-format msgid "Hosts not reached: %(hosts)s" msgstr "无法连接的主机:%(hosts)s" -#: instances/views.py:264 +#: instances/views.py:266 #, python-format msgid "Hosts not finished in time: %(hosts)s" msgstr "未按时完成的主机:%(hosts)s" -#: instances/views.py:265 +#: instances/views.py:267 msgid "Coverage" msgstr "覆盖范围" -#: instances/views.py:280 +#: instances/views.py:282 #, python-format msgid "The host %(host)s of '%(name)s' cannot be reached: %(error)s" msgstr "无法连接“%(name)s”所在的主机 %(host)s:%(error)s" -#: instances/views.py:286 +#: instances/views.py:288 #, python-format msgid "The host of '%(name)s' cannot be reached right now." msgstr "目前无法连接“%(name)s”所在的主机。" -#: instances/views.py:287 +#: instances/views.py:289 msgid " Jobs on it can be followed under Jobs in the menu." msgstr " 其上的任务可在菜单的“任务”中跟踪。" -#: instances/views.py:295 +#: instances/views.py:297 #, python-format msgid "'%(name)s' is no longer on its host." msgstr "“%(name)s”已不在其主机上。" -#: instances/views.py:384 +#: instances/views.py:386 msgid "A VM migrates when it is running, paused or shut off." msgstr "虚拟机在运行、暂停或关机状态下均可迁移。" -#: instances/views.py:386 +#: instances/views.py:388 msgid "" "A VM with snapshots cannot be migrated: its snapshots stay on this host. " "Delete them first." msgstr "有快照的虚拟机无法迁移:其快照保留在本主机上。请先删除快照。" -#: instances/views.py:388 +#: instances/views.py:390 msgid "" "A VM with host devices cannot be migrated: the destination may not have them." " Remove them first." msgstr "有主机设备的虚拟机无法迁移:目标主机可能没有这些设备。请先移除它们。" -#: instances/views.py:634 +#: instances/views.py:636 #, python-format msgid "Disk %(dev)s has changed since the page was loaded; reload the page" msgstr "磁盘 %(dev)s 在页面加载后已更改;请刷新页面" -#: instances/views.py:709 instances/views.py:710 +#: instances/views.py:711 instances/views.py:712 msgid "The VM was moved meanwhile; try again." msgstr "该虚拟机在此期间已被移动;请重试。" -#: instances/views.py:826 +#: instances/views.py:828 msgid "" "The running VM has no free PCI slot for another disk on this bus: choose the " "scsi bus if the VM has a SCSI controller, or shut the VM down and add the " @@ -6501,7 +6506,7 @@ msgstr "" "运行中的虚拟机在此总线上没有可用 PCI 插槽来添加磁盘:如果虚拟机有 SCSI 控制器,请选择 scsi " "总线;或关闭虚拟机后再添加磁盘。“磁盘”选项卡上的“添加 PCIe 插槽”可使其从下次启动起获得可用插槽。新卷会保留在其存储池中,可作为现有卷挂载。" -#: instances/views.py:830 +#: instances/views.py:832 msgid "" "The running VM has no free PCI slot for the SCSI controller the disk needs: " "shut the VM down and add the disk then; Add PCIe slots on the Disks tab gives" @@ -6511,289 +6516,289 @@ msgstr "" "运行中的虚拟机没有可用 PCI 插槽来添加磁盘所需的 SCSI 控制器:请关闭虚拟机后再添加磁盘。“磁盘”选项卡上的“添加 PCIe " "插槽”可使其从下次启动起获得可用插槽。新卷会保留在其存储池中,可作为现有卷挂载。" -#: instances/views.py:848 +#: instances/views.py:850 #, python-format msgid "Invalid disk options: %(options)s" msgstr "无效的磁盘选项:%(options)s" -#: instances/views.py:860 instances/views.py:955 +#: instances/views.py:862 instances/views.py:957 #, python-format msgid "Invalid options: %(options)s" msgstr "无效的选项:%(options)s" -#: instances/views.py:895 +#: instances/views.py:897 msgid "The VM was forced off but did not start again: it stays off." msgstr "虚拟机已被强制关机,但没有再次启动:它保持关机状态。" -#: instances/views.py:1083 +#: instances/views.py:1085 #, python-format msgid "Set the gstfsd key of %(compute)s first (Computes, edit the host)" msgstr "请先设置 %(compute)s 的 gstfsd 密钥(计算节点,编辑该主机)" -#: instances/views.py:1090 instances/views.py:1108 instances/views.py:1117 +#: instances/views.py:1092 instances/views.py:1110 instances/views.py:1119 #, python-format msgid "gstfsd error: %(err)s" msgstr "gstfsd 错误:%(err)s" -#: instances/views.py:1118 +#: instances/views.py:1120 msgid "the reply is not signed with the key" msgstr "回复未使用该密钥签名" -#: instances/views.py:1126 +#: instances/views.py:1128 msgid "Shut the VM down, or start its QEMU guest agent, and try again" msgstr "请关闭虚拟机,或启动其 QEMU 客户机代理,然后重试" -#: instances/views.py:1134 +#: instances/views.py:1136 msgid "The change may still be made when the agent answers again." msgstr "当代理再次响应时,此更改仍可能生效。" -#: instances/views.py:1149 +#: instances/views.py:1151 msgid "Enter a password" msgstr "请输入密码" -#: instances/views.py:1154 +#: instances/views.py:1156 msgid "Enter a password of at most 4096 characters, without NUL characters" msgstr "请输入不超过 4096 个字符且不含 NUL 字符的密码" -#: instances/views.py:1170 +#: instances/views.py:1172 msgid "Reset root password" msgstr "重置 root 密码" -#: instances/views.py:1186 +#: instances/views.py:1188 msgid "Select an SSH public key" msgstr "请选择 SSH 公钥" -#: instances/views.py:1208 +#: instances/views.py:1210 #, python-format msgid "Installed new SSH public key %(keyname)s" msgstr "已安装新的 SSH 公钥 %(keyname)s" -#: instances/views.py:1228 +#: instances/views.py:1230 msgid "Enter a whole number of vCPUs" msgstr "请输入整数个 vCPU" -#: instances/views.py:1232 +#: instances/views.py:1234 msgid "Shut off the VM to change its vCPUs" msgstr "请关闭虚拟机以更改其 vCPU" -#: instances/views.py:1235 +#: instances/views.py:1237 msgid "The current vCPUs cannot be more than the maximum" msgstr "当前 vCPU 数不能超过最大值" -#: instances/views.py:1242 +#: instances/views.py:1244 #, python-format msgid "%(quota)s: cannot resize the CPU of '%(instance_name)s'." msgstr "%(quota)s:无法调整“%(instance_name)s”的 CPU。" -#: instances/views.py:1250 +#: instances/views.py:1252 #, python-format msgid "vCPUs set to %(cur)s (maximum %(max)s)" msgstr "vCPU 已设为 %(cur)s(最大 %(max)s)" -#: instances/views.py:1269 +#: instances/views.py:1271 msgid "Enter a whole number for memory" msgstr "请输入整数内存值" -#: instances/views.py:1272 +#: instances/views.py:1274 msgid "The current memory cannot be more than the maximum" msgstr "当前内存不能超过最大值" -#: instances/views.py:1276 +#: instances/views.py:1278 #, python-format msgid "%(quota)s: cannot resize the memory of '%(instance_name)s'." msgstr "%(quota)s:无法调整“%(instance_name)s”的内存。" -#: instances/views.py:1282 +#: instances/views.py:1284 #, python-format msgid "Memory set to %(cur)s MiB (maximum %(max)s MiB)" msgstr "内存已设为 %(cur)s MiB(最大 %(max)s MiB)" -#: instances/views.py:1302 +#: instances/views.py:1304 msgid "Enter disk sizes as whole GiB" msgstr "请以整数 GiB 输入磁盘大小" -#: instances/views.py:1306 +#: instances/views.py:1308 #, python-format msgid "Disk %(dev)s was changed meanwhile; reload the page" msgstr "磁盘 %(dev)s 在此期间已更改;请重新加载页面" -#: instances/views.py:1310 +#: instances/views.py:1312 #, python-format msgid "%(dev)s is %(size)s: a disk cannot shrink" msgstr "%(dev)s 为 %(size)s:磁盘不能缩小" -#: instances/views.py:1318 +#: instances/views.py:1320 msgid "No disks were selected or valid for resizing." msgstr "未选择磁盘或没有可调整大小的有效磁盘。" -#: instances/views.py:1327 +#: instances/views.py:1329 #, python-format msgid "%(quota)s: cannot resize the disks of '%(instance_name)s'." msgstr "%(quota)s:无法调整“%(instance_name)s”的磁盘。" -#: instances/views.py:1339 +#: instances/views.py:1341 #, python-format msgid "The storage pool of %(dev)s cannot resize its volumes" msgstr "%(dev)s 所在的存储池无法调整其卷的大小" -#: instances/views.py:1341 +#: instances/views.py:1343 #, python-format msgid "Disk is resized: %(dev)s" msgstr "磁盘已调整大小:%(dev)s" -#: instances/views.py:1435 +#: instances/views.py:1437 msgid "The VM's machine has no PCIe slots to add" msgstr "该虚拟机的机器类型没有可添加的 PCIe 插槽" -#: instances/views.py:1440 +#: instances/views.py:1442 #, python-format msgid "%(count)s PCIe slots added" msgstr "已添加 %(count)s 个 PCIe 插槽" -#: instances/views.py:1442 +#: instances/views.py:1444 #, python-format msgid "%(count)s PCIe slots added: the VM gets them at its next start" msgstr "已添加 %(count)s 个 PCIe 插槽:虚拟机在下次启动时获得它们" -#: instances/views.py:1493 +#: instances/views.py:1495 #, python-format msgid "%(volume)s is already a disk of this VM" msgstr "%(volume)s 已是此虚拟机的磁盘" -#: instances/views.py:1583 +#: instances/views.py:1585 msgid "Volume changes are applied. But it will be activated after shutdown" msgstr "卷更改已应用,但将在关机后生效" -#: instances/views.py:1588 +#: instances/views.py:1590 msgid "Volume is changed successfully." msgstr "卷已成功更改。" -#: instances/views.py:1608 +#: instances/views.py:1610 #, python-format msgid "Disk %(dev)s is not a storage volume of this instance" msgstr "磁盘 %(dev)s 不是此虚拟机的存储卷" -#: instances/views.py:1613 vrtManager/instance.py:2493 +#: instances/views.py:1615 vrtManager/instance.py:2493 msgid "The VM has a saved state; start it or remove the saved state first" msgstr "虚拟机有保存的状态;请先启动它或删除保存的状态" -#: instances/views.py:1619 +#: instances/views.py:1621 #, python-format msgid "Disk %(dev)s has a pending change; delete it once the VM is shut down" msgstr "磁盘 %(dev)s 有待生效的更改;请在虚拟机关机后删除它" -#: instances/views.py:1634 +#: instances/views.py:1636 #, python-format msgid "Volume %(vol)s is used by another VM; detach it instead" msgstr "卷 %(vol)s 正被另一台虚拟机使用;请改为分离它" -#: instances/views.py:1652 +#: instances/views.py:1654 #, python-format msgid "" "The guest has not released disk %(dev)s yet; volume %(vol)s was kept. Delete " "it from the storage pool once the VM is shut down." msgstr "客户机尚未释放磁盘 %(dev)s;卷 %(vol)s 已保留。请在虚拟机关机后从存储池中删除它。" -#: instances/views.py:1663 +#: instances/views.py:1665 #, python-format msgid "Disk %(dev)s was detached, but its volume was kept: %(err)s" msgstr "磁盘 %(dev)s 已分离,但其卷已保留:%(err)s" -#: instances/views.py:1691 +#: instances/views.py:1693 #, python-format msgid "This VM cannot take a CD-ROM on the %(bus)s bus now" msgstr "该虚拟机现在无法在 %(bus)s 总线上添加 CD-ROM" -#: instances/views.py:1694 +#: instances/views.py:1696 msgid "A USB CD-ROM needs an ISO image: libvirt has no empty USB drive" msgstr "USB CD-ROM 需要 ISO 镜像:libvirt 不支持空的 USB 驱动器" -#: instances/views.py:1699 +#: instances/views.py:1701 #, python-format msgid "%(image)s is already in a CD-ROM of this VM" msgstr "%(image)s 已在此虚拟机的某个光驱中" -#: instances/views.py:1780 +#: instances/views.py:1782 #, python-format msgid "Pool %(pool)s was not read again: %(err)s" msgstr "未重新读取存储池 %(pool)s:%(err)s" -#: instances/views.py:1801 +#: instances/views.py:1803 #, python-format msgid "Snapshot was not deleted: %(err)s" msgstr "快照未删除:%(err)s" -#: instances/views.py:1920 +#: instances/views.py:1922 msgid "Add at least one device to the boot order." msgstr "请至少向启动顺序中添加一个设备。" -#: instances/views.py:1926 vrtManager/instance.py:1263 +#: instances/views.py:1928 vrtManager/instance.py:1263 msgid "Invalid Device Type for boot order" msgstr "启动顺序的设备类型无效" -#: instances/views.py:1937 +#: instances/views.py:1939 msgid "Boot order changed. It applies at the next start." msgstr "启动顺序已更改,将在下次启动时生效。" -#: instances/views.py:1939 +#: instances/views.py:1941 msgid "Boot order changed successfully." msgstr "启动顺序已成功更改。" -#: instances/views.py:1959 +#: instances/views.py:1961 msgid "The XML is empty" msgstr "XML 为空" -#: instances/views.py:1963 instances/views.py:2644 +#: instances/views.py:1965 instances/views.py:2647 #, python-format msgid "The XML is not well-formed: %(error)s" msgstr "XML 格式不正确:%(error)s" -#: instances/views.py:1965 +#: instances/views.py:1967 #, python-format msgid "The XML must keep the VM's UUID %(uuid)s." msgstr "XML 必须保留虚拟机的 UUID %(uuid)s。" -#: instances/views.py:1969 +#: instances/views.py:1971 msgid "" "The definition has changed since the editor was opened. Reload the page to " "edit the current one." msgstr "自打开编辑器以来定义已被更改。请重新加载页面以编辑当前定义。" -#: instances/views.py:1985 +#: instances/views.py:1987 msgid "The XML definition was saved." msgstr "XML 定义已保存。" -#: instances/views.py:1987 +#: instances/views.py:1989 msgid "The XML definition was saved; the VM uses it from its next start." msgstr "XML 定义已保存;虚拟机从下次启动起使用它。" -#: instances/views.py:2068 +#: instances/views.py:2070 msgid "Select one network interface to change" msgstr "请选择一个要更改的网络接口" -#: instances/views.py:2082 +#: instances/views.py:2084 #, python-format msgid "Network interface %(mac)s was changed meanwhile; reload the page" msgstr "网络接口 %(mac)s 在此期间已更改;请重新加载页面" -#: instances/views.py:2112 +#: instances/views.py:2114 msgid "Network Device Config is changed. Please shutdown instance to activate." msgstr "网络设备配置已更改。请关闭虚拟机以使其生效。" -#: instances/views.py:2114 +#: instances/views.py:2116 msgid "Network device changed" msgstr "网络设备已更改" -#: instances/views.py:2126 +#: instances/views.py:2128 msgid "No network selected" msgstr "未选择网络" -#: instances/views.py:2131 +#: instances/views.py:2133 #, python-format msgid "The VM already has a network device with MAC %(mac)s" msgstr "虚拟机已有 MAC 地址为 %(mac)s 的网络设备" -#: instances/views.py:2150 +#: instances/views.py:2152 msgid "" "The running VM has no free PCI slot for another network device: shut it down " "and add the device then; Add PCIe slots on the Disks tab gives it free ones " @@ -6801,136 +6806,136 @@ msgid "" msgstr "" "运行中的虚拟机没有可用 PCI 插槽来添加网络设备:请关机后再添加设备。“磁盘”选项卡上的“添加 PCIe 插槽”可使其从下次启动起获得可用插槽。" -#: instances/views.py:2196 instances/views.py:2202 +#: instances/views.py:2198 instances/views.py:2204 msgid "The VM has it" msgstr "虚拟机已有此设备" -#: instances/views.py:2237 +#: instances/views.py:2239 #, python-format msgid "The host has no USB device %(device)s; reload the page" msgstr "主机没有 USB 设备 %(device)s;请重新加载页面" -#: instances/views.py:2258 +#: instances/views.py:2260 #, python-format msgid "The host has no PCI device %(device)s" msgstr "主机上没有 PCI 设备 %(device)s" -#: instances/views.py:2276 +#: instances/views.py:2278 #, python-format msgid "" "Removal of PCI device %(address)s requested: the guest has not let it go yet;" " it stays in the running VM until it does or the VM stops." msgstr "已请求移除 PCI 设备 %(address)s:客户机尚未释放它;在客户机释放或虚拟机停止之前,它仍保留在运行中的虚拟机中。" -#: instances/views.py:2321 instances/views.py:2351 +#: instances/views.py:2323 instances/views.py:2353 msgid "Select a network interface and a QoS direction" msgstr "请选择网络接口和 QoS 方向" -#: instances/views.py:2324 vrtManager/network.py:470 +#: instances/views.py:2326 vrtManager/network.py:470 msgid "QoS rates must be whole numbers" msgstr "QoS 速率必须为整数" -#: instances/views.py:2331 networks/views.py:235 +#: instances/views.py:2333 networks/views.py:235 #, python-format msgid "%(qos_dir)s QoS is set" msgstr "%(qos_dir)s QoS 已设置" -#: instances/views.py:2336 +#: instances/views.py:2338 #, python-format msgid "" "%(qos_dir)s QoS is set. A running VM gets it after it is powered off and on." msgstr "%(qos_dir)s QoS 已设置。运行中的虚拟机需关机再开机后才能生效。" -#: instances/views.py:2358 networks/views.py:261 +#: instances/views.py:2360 networks/views.py:261 #, python-format msgid "%(qos_dir)s QoS is deleted" msgstr "%(qos_dir)s QoS 已删除" -#: instances/views.py:2363 +#: instances/views.py:2365 #, python-format msgid "" "%(qos_dir)s QoS is deleted. A running VM keeps the old limit until it is " "powered off and on." msgstr "%(qos_dir)s QoS 已删除。运行中的虚拟机在关机再开机之前保留旧的限制。" -#: instances/views.py:2391 +#: instances/views.py:2393 msgid "Only one owner is allowed and the one already added" msgstr "只允许一个所有者,且已添加" -#: instances/views.py:2393 +#: instances/views.py:2395 #, python-format msgid "%(user)s is already an owner" msgstr "%(user)s 已是所有者" -#: instances/views.py:2457 +#: instances/views.py:2460 #, python-format msgid "Console settings were not saved: %(errors)s" msgstr "控制台设置未保存:%(errors)s" -#: instances/views.py:2479 +#: instances/views.py:2482 msgid "" "Error setting console password. You should check that your instance have an " "graphic device." msgstr "设置控制台密码出错。请检查虚拟机是否有图形设备。" -#: instances/views.py:2526 +#: instances/views.py:2529 msgid "Shut the VM down to change whether it is a template." msgstr "请关闭虚拟机以更改其是否为模板。" -#: instances/views.py:2532 +#: instances/views.py:2535 #, python-format msgid "%(quota)s: '%(instance_name)s' stays a template." msgstr "%(quota)s:“%(instance_name)s”仍为模板。" -#: instances/views.py:2630 +#: instances/views.py:2633 msgid "The XML has no name" msgstr "XML 中没有名称" -#: instances/views.py:2648 webvirtcloud/middleware.py:157 +#: instances/views.py:2651 webvirtcloud/middleware.py:157 #, python-format msgid "libvirt Error - %(exception)s" msgstr "libvirt 错误 - %(exception)s" -#: instances/views.py:2662 +#: instances/views.py:2665 msgid "An empty disk of the size you set" msgstr "按设定大小创建的空磁盘" -#: instances/views.py:2663 +#: instances/views.py:2666 msgid "Volumes already in a pool" msgstr "存储池中已有的卷" -#: instances/views.py:2664 +#: instances/views.py:2667 msgid "A copy of a template volume" msgstr "模板卷的副本" -#: instances/views.py:2754 +#: instances/views.py:2757 msgid "" "This host has no running storage pool for the VM's disks: add or start one on" " its Storage page." msgstr "此主机没有可用于虚拟机磁盘的运行中存储池:请在其“存储”页面添加或启动一个。" -#: instances/views.py:2756 +#: instances/views.py:2759 msgid "This host has no network for the VM: add one on its Networks page." msgstr "此主机没有可供虚拟机使用的网络:请在其“网络”页面添加一个。" -#: instances/views.py:2788 +#: instances/views.py:2791 #, python-format msgid "The machine type is q35, not %(machine)s: UEFI Secure Boot needs it" msgstr "机器类型为 q35,而不是 %(machine)s:UEFI 安全启动需要它" -#: instances/views.py:2817 +#: instances/views.py:2820 msgid "Flavor Created" msgstr "规格已创建" -#: instances/views.py:2825 +#: instances/views.py:2828 msgid "Create Flavor" msgstr "创建规格" -#: instances/views.py:2837 +#: instances/views.py:2840 msgid "Flavor Deleted" msgstr "规格已删除" -#: instances/views.py:2843 +#: instances/views.py:2846 msgid "Only the size template goes; VMs made from it keep their size." msgstr "仅删除此规格;由它创建的虚拟机保持其大小。" diff --git a/static/css/webvirtcloud.css b/static/css/webvirtcloud.css index 9113e85d..8f0381e0 100644 --- a/static/css/webvirtcloud.css +++ b/static/css/webvirtcloud.css @@ -304,3 +304,7 @@ fieldset:not(:has(input[value="set"]:checked)) > .console-new-password { .form-section-fields:has(input[name="usable_password"][value="false"]:checked) > .with-password { display: none; } +/* a list's tag filter: a long tag name does not widen it beyond a phone's width */ +#tag-filter { + max-width: 15rem; +} diff --git a/static/js/bulk_migrate.js b/static/js/bulk_migrate.js index d376362a..5983a672 100644 --- a/static/js/bulk_migrate.js +++ b/static/js/bulk_migrate.js @@ -39,6 +39,7 @@ document.getElementById("bulk-migrate-tag")?.addEventListener("change", function document.querySelectorAll(".bulk-migrate-vm:not(:disabled)").forEach(function (box) { box.checked = (box.dataset.tags || "").split(" ").includes(tag); }); + event.target.value = ""; // back to its title: the same tag can be chosen again after other ticks } }); document.addEventListener("change", function (event) { diff --git a/static/js/searchable_select.js b/static/js/searchable_select.js index baa8e2c5..3d90534a 100644 --- a/static/js/searchable_select.js +++ b/static/js/searchable_select.js @@ -21,7 +21,7 @@ document.querySelectorAll("select[data-tags]").forEach(function (select) { render: { // the page's own words (data-add): the library's are English option_create: function (data, escape) { - return '
' + escape(select.dataset.add.replace("%(tag)s", data.input)) + "
"; + return '
' + escape(select.dataset.add.replace("%(tag)s", data.input.toLowerCase())) + "
"; }, no_results: null, }, diff --git a/webvirtcloud/tests/test_delete_pages.py b/webvirtcloud/tests/test_delete_pages.py index 08d25763..faf2c5e7 100644 --- a/webvirtcloud/tests/test_delete_pages.py +++ b/webvirtcloud/tests/test_delete_pages.py @@ -23,7 +23,7 @@ class DeletePageTests(TestCase): reverse("admin:user_delete", args=[user.id]): "the VMs themselves stay", reverse("admin:group_delete", args=[Group.objects.create(name="del-group").id]): "lose the permissions", reverse("admin:tombstone_delete", args=[InstanceTombstone.objects.create(uuid=vm.uuid, name="gone").id]): - "no longer get the VM back", + "no longer come back", reverse("accounts:user_instance_delete", args=[UserInstance.objects.create(user=user, instance=vm).id]): "the VM itself is not changed", reverse("instances:flavor_delete", args=[Flavor.objects.create(label="del-flavor", memory=512, vcpu=1, disk=1).id]):