1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-11-11 12:46:49 +00:00

style(instances): the XML tab's editor is taller and its review marks the changed lines

The VM's XML editor takes most of the window's height and is framed like
a form field. The review dialog shows removed and added lines on a red and
green tint, and each part of the diff starts with its line number instead
of the unified diff's @@ header.
This commit is contained in:
catborise 2026-11-04 14:17:45 +03:00
parent 9cda2f4e1b
commit ab2192ef5f
7 changed files with 243 additions and 211 deletions

View file

@ -629,7 +629,7 @@
{% endif %} {% endif %}
<form action="{% url 'instances:change_xml' instance.id %}" method="post" role="form" aria-label="Edit instance XML form" id="xml-form"> <form action="{% url 'instances:change_xml' instance.id %}" method="post" role="form" aria-label="Edit instance XML form" id="xml-form">
{% csrf_token %} {% csrf_token %}
<div class="col-sm-12 xmlheight"> <div class="xml-editor mb-3">
<textarea id="editor">{{ instance.inst_xml }}</textarea> <textarea id="editor">{{ instance.inst_xml }}</textarea>
</div> </div>
<button type="submit" class="btn btn-primary float-end" name="change_xml">{% trans "Review changes" %}</button> <button type="submit" class="btn btn-primary float-end" name="change_xml">{% trans "Review changes" %}</button>
@ -646,7 +646,7 @@
<div class="modal-body"> <div class="modal-body">
<div class="alert alert-danger d-none" role="alert" id="xml-review-error"></div> <div class="alert alert-danger d-none" role="alert" id="xml-review-error"></div>
<p class="d-none" id="xml-review-same">{% trans "The XML is the same as the VM's definition; there is nothing to save." %}</p> <p class="d-none" id="xml-review-same">{% trans "The XML is the same as the VM's definition; there is nothing to save." %}</p>
<pre class="d-none mb-0" id="xml-review-diff"></pre> <pre class="d-none mb-0 xml-diff" id="xml-review-diff" data-line="{% blocktrans with line="__line__" %}Line {{ line }}{% endblocktrans %}"></pre>
</div> </div>
<div class="modal-footer"> <div class="modal-footer">
<button type="button" class="btn btn-outline-secondary" data-bs-dismiss="modal">{% trans "Cancel" %}</button> <button type="button" class="btn btn-outline-secondary" data-bs-dismiss="modal">{% trans "Cancel" %}</button>

Binary file not shown.

View file

@ -11,7 +11,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PACKAGE VERSION\n" "Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2026-11-04 09:10+0000\n" "POT-Creation-Date: 2026-11-04 11:17+0000\n"
"PO-Revision-Date: 2020-11-04 12:00+0000\n" "PO-Revision-Date: 2020-11-04 12:00+0000\n"
"Last-Translator: catborise <muhammetalisag@gmail.com>, 2020\n" "Last-Translator: catborise <muhammetalisag@gmail.com>, 2020\n"
"Language-Team: Turkish (https://www.transifex.com/catborise/teams/110663/tr/)\n" "Language-Team: Turkish (https://www.transifex.com/catborise/teams/110663/tr/)\n"
@ -30,17 +30,17 @@ msgid "Instance owned by another user"
msgstr "Diğer kullanıcıya ait sanal makineler" msgstr "Diğer kullanıcıya ait sanal makineler"
#: accounts/forms.py:36 accounts/templates/account.html:66 #: accounts/forms.py:36 accounts/templates/account.html:66
#: instances/templates/instances/settings_tab.html:668 #: instances/templates/instances/settings_tab.html:675
msgid "Change settings" msgid "Change settings"
msgstr "Ayarları değiştir" msgstr "Ayarları değiştir"
#: accounts/forms.py:36 accounts/templates/account.html:67 #: accounts/forms.py:36 accounts/templates/account.html:67
#: instances/templates/instances/settings_tab.html:668 #: instances/templates/instances/settings_tab.html:675
msgid "Delete the VM" msgid "Delete the VM"
msgstr "Sanal makineyi sil" msgstr "Sanal makineyi sil"
#: accounts/forms.py:37 accounts/templates/account.html:68 #: accounts/forms.py:37 accounts/templates/account.html:68
#: instances/templates/instances/settings_tab.html:668 #: instances/templates/instances/settings_tab.html:675
msgid "Change console settings" msgid "Change console settings"
msgstr "Konsol ayarlarını değiştir" msgstr "Konsol ayarlarını değiştir"
@ -234,7 +234,7 @@ msgid "Host"
msgstr "Sunucu" msgstr "Sunucu"
#: accounts/templates/account.html:69 #: accounts/templates/account.html:69
#: instances/templates/instances/settings_tab.html:670 #: instances/templates/instances/settings_tab.html:677
msgid "Power and console only" msgid "Power and console only"
msgstr "Yalnızca güç ve konsol" msgstr "Yalnızca güç ve konsol"
@ -279,7 +279,7 @@ msgstr "Parola Değiştir"
#: instances/templates/instances/edit_instance_volume.html:111 #: instances/templates/instances/edit_instance_volume.html:111
#: instances/templates/instances/move_disk.html:27 #: instances/templates/instances/move_disk.html:27
#: instances/templates/instances/settings_tab.html:411 #: instances/templates/instances/settings_tab.html:411
#: instances/templates/instances/settings_tab.html:645 #: instances/templates/instances/settings_tab.html:652
#: interfaces/templates/create_iface_block.html:147 #: interfaces/templates/create_iface_block.html:147
#: networks/templates/add_network_qos.html:35 #: networks/templates/add_network_qos.html:35
#: networks/templates/create_net_block.html:126 #: networks/templates/create_net_block.html:126
@ -709,8 +709,8 @@ msgstr "Üyeler"
#: instances/templates/instances/edit_instance_volume.html:112 #: instances/templates/instances/edit_instance_volume.html:112
#: instances/templates/instances/nic_qos_form.html:23 #: instances/templates/instances/nic_qos_form.html:23
#: instances/templates/instances/settings_tab.html:412 #: instances/templates/instances/settings_tab.html:412
#: instances/templates/instances/settings_tab.html:646 #: instances/templates/instances/settings_tab.html:653
#: instances/templates/instances/settings_tab.html:896 #: instances/templates/instances/settings_tab.html:903
#: networks/templates/add_network_qos.html:36 #: networks/templates/add_network_qos.html:36
#: networks/templates/network.html:336 networks/templates/network.html:376 #: networks/templates/network.html:336 networks/templates/network.html:376
#: networks/templates/network.html:403 networks/templates/network.html:442 #: networks/templates/network.html:403 networks/templates/network.html:442
@ -1662,7 +1662,7 @@ msgstr "Klonlar"
#: console/templates/console-base.html:23 #: console/templates/console-base.html:23
#: instances/templates/instance_actions.html:11 #: instances/templates/instance_actions.html:11
#: instances/templates/instances/settings_tab.html:32 #: instances/templates/instances/settings_tab.html:32
#: instances/templates/instances/settings_tab.html:697 #: instances/templates/instances/settings_tab.html:704
msgid "Console" msgid "Console"
msgstr "Konsol" msgstr "Konsol"
@ -1726,8 +1726,8 @@ msgid "Stored, leave empty to keep"
msgstr "Kayıtlı, korumak için boş bırakın" msgstr "Kayıtlı, korumak için boş bırakın"
#: computes/forms.py:28 computes/templates/computes/instances.html:45 #: computes/forms.py:28 computes/templates/computes/instances.html:45
#: instances/templates/instances/settings_tab.html:860 #: instances/templates/instances/settings_tab.html:867
#: instances/templates/instances/settings_tab.html:892 #: instances/templates/instances/settings_tab.html:899
#: instances/templates/instances/snapshots_tab.html:27 #: instances/templates/instances/snapshots_tab.html:27
#: instances/templates/instances/snapshots_tab.html:71 #: instances/templates/instances/snapshots_tab.html:71
msgid "Description" msgid "Description"
@ -1990,7 +1990,7 @@ msgstr "Sanal Makineler"
#: computes/templates/computes/host_nav.html:16 #: computes/templates/computes/host_nav.html:16
#: computes/templates/overview.html:74 #: computes/templates/overview.html:74
#: instances/templates/instances/settings_tab.html:550 #: instances/templates/instances/settings_tab.html:550
#: instances/templates/instances/settings_tab.html:816 #: instances/templates/instances/settings_tab.html:823
#: storages/templates/storage.html:6 storages/templates/storage.html:8 #: storages/templates/storage.html:6 storages/templates/storage.html:8
msgid "Storage" msgid "Storage"
msgstr "Depolama" msgstr "Depolama"
@ -2124,7 +2124,7 @@ msgstr "/ %(memory)s"
#: instances/templates/allinstances_index_nongrouped.html:14 #: instances/templates/allinstances_index_nongrouped.html:14
#: instances/templates/create_instance_w2.html:63 #: instances/templates/create_instance_w2.html:63
#: instances/templates/instances/resize_tab.html:29 #: instances/templates/instances/resize_tab.html:29
#: instances/templates/instances/settings_tab.html:842 #: instances/templates/instances/settings_tab.html:849
msgid "vCPUs" msgid "vCPUs"
msgstr "vCPU" msgstr "vCPU"
@ -2132,7 +2132,7 @@ msgstr "vCPU"
#: console/templates/console-vnc.html:13 #: console/templates/console-vnc.html:13
#: console/templates/console-xterm.html:16 #: console/templates/console-xterm.html:16
#: instances/templates/allinstances_index_grouped.html:36 #: instances/templates/allinstances_index_grouped.html:36
#: instances/templates/instances/settings_tab.html:956 #: instances/templates/instances/settings_tab.html:963
#: networks/templates/network.html:260 #: networks/templates/network.html:260
msgid "Connected" msgid "Connected"
msgstr "Bağlı" msgstr "Bağlı"
@ -2477,7 +2477,7 @@ msgstr "Bağlan"
#: instances/templates/instances/edit_instance_volume.html:13 #: instances/templates/instances/edit_instance_volume.html:13
#: instances/templates/instances/move_disk.html:13 #: instances/templates/instances/move_disk.html:13
#: instances/templates/instances/settings_tab.html:362 #: instances/templates/instances/settings_tab.html:362
#: instances/templates/instances/settings_tab.html:637 #: instances/templates/instances/settings_tab.html:644
#: interfaces/templates/create_iface_block.html:20 #: interfaces/templates/create_iface_block.html:20
#: networks/templates/add_network_qos.html:8 #: networks/templates/add_network_qos.html:8
#: networks/templates/create_net_block.html:20 #: networks/templates/create_net_block.html:20
@ -2579,7 +2579,7 @@ msgstr ""
"VNC olarak değiştirin." "VNC olarak değiştirin."
#: instances/forms.py:14 instances/templates/create_instance_w2.html:69 #: instances/forms.py:14 instances/templates/create_instance_w2.html:69
#: instances/templates/instances/settings_tab.html:846 #: instances/templates/instances/settings_tab.html:853
msgid "Memory (MiB)" msgid "Memory (MiB)"
msgstr "Bellek (MiB)" msgstr "Bellek (MiB)"
@ -3268,7 +3268,7 @@ msgid "Letters, digits, dot, dash and underscore."
msgstr "Harf, rakam, nokta, tire ve alt çizgi." msgstr "Harf, rakam, nokta, tire ve alt çizgi."
#: instances/templates/add_instance_volume.html:44 #: instances/templates/add_instance_volume.html:44
#: instances/templates/instances/settings_tab.html:839 #: instances/templates/instances/settings_tab.html:846
msgid "Size" msgid "Size"
msgstr "Boyut" msgstr "Boyut"
@ -3583,7 +3583,7 @@ msgid "Firmware"
msgstr "Üretici yazılımı" msgstr "Üretici yazılımı"
#: instances/templates/create_instance_w2.html:86 #: instances/templates/create_instance_w2.html:86
#: instances/templates/instances/settings_tab.html:935 #: instances/templates/instances/settings_tab.html:942
msgid "TPM 2.0" msgid "TPM 2.0"
msgstr "TPM 2.0" msgstr "TPM 2.0"
@ -3639,7 +3639,7 @@ msgstr "Aygıt"
#: instances/templates/create_instance_w2.html:188 #: instances/templates/create_instance_w2.html:188
#: instances/templates/create_instance_w2.html:246 #: instances/templates/create_instance_w2.html:246
#: instances/templates/instances/boot_device.html:14 #: instances/templates/instances/boot_device.html:14
#: instances/templates/instances/settings_tab.html:677 #: instances/templates/instances/settings_tab.html:684
#: networks/templates/network.html:304 #: networks/templates/network.html:304
msgid "Remove" msgid "Remove"
msgstr "Kaldır" msgstr "Kaldır"
@ -3686,7 +3686,7 @@ msgid "Network filter"
msgstr "Ağ filtresi" msgstr "Ağ filtresi"
#: instances/templates/create_instance_w2.html:293 #: instances/templates/create_instance_w2.html:293
#: instances/templates/instances/settings_tab.html:918 #: instances/templates/instances/settings_tab.html:925
#: vrtManager/nodedevs.py:30 #: vrtManager/nodedevs.py:30
msgid "Video" msgid "Video"
msgstr "Görüntü" msgstr "Görüntü"
@ -3700,7 +3700,7 @@ msgid "Input device"
msgstr "Girdi aygıtı" msgstr "Girdi aygıtı"
#: instances/templates/create_instance_w2.html:334 #: instances/templates/create_instance_w2.html:334
#: instances/templates/instances/settings_tab.html:948 #: instances/templates/instances/settings_tab.html:955
msgid "Guest agent" msgid "Guest agent"
msgstr "Konuk ajanı" msgstr "Konuk ajanı"
@ -3742,8 +3742,8 @@ msgstr "Ayrıntılar"
#: instances/templates/instance.html:34 #: instances/templates/instance.html:34
#: instances/templates/instance_actions.html:13 #: instances/templates/instance_actions.html:13
#: instances/templates/instances/settings_tab.html:53 #: instances/templates/instances/settings_tab.html:53
#: instances/templates/instances/settings_tab.html:870 #: instances/templates/instances/settings_tab.html:877
#: instances/templates/instances/settings_tab.html:872 #: instances/templates/instances/settings_tab.html:879
#: nwfilters/templates/nwfilters.html:57 nwfilters/templates/nwfilters.html:94 #: nwfilters/templates/nwfilters.html:57 nwfilters/templates/nwfilters.html:94
#: storages/templates/storage.html:143 storages/templates/storage.html:203 #: storages/templates/storage.html:143 storages/templates/storage.html:203
msgid "Clone" msgid "Clone"
@ -4561,7 +4561,7 @@ msgstr ""
"sağlar." "sağlar."
#: instances/templates/instances/resize_tab.html:77 #: instances/templates/instances/resize_tab.html:77
#: instances/templates/instances/settings_tab.html:908 #: instances/templates/instances/settings_tab.html:915
msgid "Shut the VM down to change this." msgid "Shut the VM down to change this."
msgstr "Bunu değiştirmek için sanal makineyi kapatın." msgstr "Bunu değiştirmek için sanal makineyi kapatın."
@ -4628,7 +4628,7 @@ msgid "Boot"
msgstr "Ön Yükleme" msgstr "Ön Yükleme"
#: instances/templates/instances/settings_tab.html:39 #: instances/templates/instances/settings_tab.html:39
#: instances/templates/instances/settings_tab.html:794 #: instances/templates/instances/settings_tab.html:801
#: instances/templates/instances/stats_tab.html:44 #: instances/templates/instances/stats_tab.html:44
#: networks/templates/network.html:6 networks/templates/network.html:8 #: networks/templates/network.html:6 networks/templates/network.html:8
#: networks/templates/network.html:48 #: networks/templates/network.html:48
@ -4640,8 +4640,8 @@ msgid "Host devices"
msgstr "Sunucu aygıtları" msgstr "Sunucu aygıtları"
#: instances/templates/instances/settings_tab.html:60 #: instances/templates/instances/settings_tab.html:60
#: instances/templates/instances/settings_tab.html:609 #: instances/templates/instances/settings_tab.html:616
#: instances/templates/instances/settings_tab.html:612 #: instances/templates/instances/settings_tab.html:619
msgid "Migrate" msgid "Migrate"
msgstr "Taşı" msgstr "Taşı"
@ -5121,11 +5121,11 @@ msgstr ""
"Belleği kopyalanırken sanal makine çalışmaya devam eder. Kapalıysa aktarım " "Belleği kopyalanırken sanal makine çalışmaya devam eder. Kapalıysa aktarım "
"süresince duraklatılır." "süresince duraklatılır."
#: instances/templates/instances/settings_tab.html:574 #: instances/templates/instances/settings_tab.html:573
msgid "Auto converge" msgid "Auto converge"
msgstr "Otomatik yavaşlat" msgstr "Otomatik yavaşlat"
#: instances/templates/instances/settings_tab.html:576 #: instances/templates/instances/settings_tab.html:575
msgid "" msgid ""
"Slows the guest's CPUs so that a busy VM's live migration can finish. Only " "Slows the guest's CPUs so that a busy VM's live migration can finish. Only "
"with Live migration." "with Live migration."
@ -5133,21 +5133,21 @@ msgstr ""
"Yoğun bir sanal makinenin canlı taşımasının bitebilmesi için konuk sistemin " "Yoğun bir sanal makinenin canlı taşımasının bitebilmesi için konuk sistemin "
"CPU'larını yavaşlatır. Yalnızca canlı taşımada." "CPU'larını yavaşlatır. Yalnızca canlı taşımada."
#: instances/templates/instances/settings_tab.html:581 #: instances/templates/instances/settings_tab.html:580
msgid "Compressed" msgid "Compressed"
msgstr "Sıkıştırılmış" msgstr "Sıkıştırılmış"
#: instances/templates/instances/settings_tab.html:583 #: instances/templates/instances/settings_tab.html:582
msgid "Compresses the memory sent: less network, more CPU on both hosts." msgid "Compresses the memory sent: less network, more CPU on both hosts."
msgstr "" msgstr ""
"Gönderilen belleği sıkıştırır: daha az ağ trafiği, iki sunucuda da daha fazla" "Gönderilen belleği sıkıştırır: daha az ağ trafiği, iki sunucuda da daha fazla"
" CPU." " CPU."
#: instances/templates/instances/settings_tab.html:588 #: instances/templates/instances/settings_tab.html:594
msgid "Unsafe migration" msgid "Unsafe migration"
msgstr "Güvensiz şekilde taşı" msgstr "Güvensiz şekilde taşı"
#: instances/templates/instances/settings_tab.html:590 #: instances/templates/instances/settings_tab.html:596
msgid "" msgid ""
"Skips libvirt's safety checks, such as a disk cache mode that can corrupt " "Skips libvirt's safety checks, such as a disk cache mode that can corrupt "
"data in a migration." "data in a migration."
@ -5155,11 +5155,11 @@ msgstr ""
"libvirt'in güvenlik denetimlerini atlar; örneğin taşımada veriyi bozabilecek " "libvirt'in güvenlik denetimlerini atlar; örneğin taşımada veriyi bozabilecek "
"bir disk önbellek modu." "bir disk önbellek modu."
#: instances/templates/instances/settings_tab.html:596 #: instances/templates/instances/settings_tab.html:602
msgid "Delete the source files of copied disks" msgid "Delete the source files of copied disks"
msgstr "Kopyalanan disklerin kaynak dosyalarını sil" msgstr "Kopyalanan disklerin kaynak dosyalarını sil"
#: instances/templates/instances/settings_tab.html:598 #: instances/templates/instances/settings_tab.html:604
msgid "" msgid ""
"After a migration that copied disks, their files on the source host go. Disks" "After a migration that copied disks, their files on the source host go. Disks"
" on shared storage stay." " on shared storage stay."
@ -5167,22 +5167,22 @@ msgstr ""
"Diskleri kopyalayan bir taşımadan sonra kaynak sunucudaki dosyaları silinir. " "Diskleri kopyalayan bir taşımadan sonra kaynak sunucudaki dosyaları silinir. "
"Paylaşımlı depolamadaki diskler kalır." "Paylaşımlı depolamadaki diskler kalır."
#: instances/templates/instances/settings_tab.html:607 #: instances/templates/instances/settings_tab.html:614
msgid "Migration runs as a background job." msgid "Migration runs as a background job."
msgstr "Taşıma arka planda bir iş olarak çalışır." msgstr "Taşıma arka planda bir iş olarak çalışır."
#: instances/templates/instances/settings_tab.html:621 #: instances/templates/instances/settings_tab.html:628
msgid "" msgid ""
"This is the definition for the VM's next start; a saved change applies then." "This is the definition for the VM's next start; a saved change applies then."
msgstr "" msgstr ""
"Bu, sanal makinenin sonraki başlatmasındaki tanımdır; kaydedilen değişiklik o" "Bu, sanal makinenin sonraki başlatmasındaki tanımdır; kaydedilen değişiklik o"
" zaman uygulanır." " zaman uygulanır."
#: instances/templates/instances/settings_tab.html:628 #: instances/templates/instances/settings_tab.html:635
msgid "Review changes" msgid "Review changes"
msgstr "Değişiklikleri incele" msgstr "Değişiklikleri incele"
#: instances/templates/instances/settings_tab.html:632 #: instances/templates/instances/settings_tab.html:639
msgid "" msgid ""
"The request did not go through; your edit is still in the editor. Try again, " "The request did not go through; your edit is still in the editor. Try again, "
"or copy it and reload the page." "or copy it and reload the page."
@ -5190,19 +5190,24 @@ msgstr ""
"İstek iletilemedi; düzenlemeniz hâlâ düzenleyicide. Yeniden deneyin ya da " "İstek iletilemedi; düzenlemeniz hâlâ düzenleyicide. Yeniden deneyin ya da "
"kopyalayıp sayfayı yeniden yükleyin." "kopyalayıp sayfayı yeniden yükleyin."
#: instances/templates/instances/settings_tab.html:636 #: instances/templates/instances/settings_tab.html:643
msgid "Review the XML change" msgid "Review the XML change"
msgstr "XML değişikliğini incele" msgstr "XML değişikliğini incele"
#: instances/templates/instances/settings_tab.html:641 #: instances/templates/instances/settings_tab.html:648
msgid "The XML is the same as the VM's definition; there is nothing to save." msgid "The XML is the same as the VM's definition; there is nothing to save."
msgstr "XML, sanal makinenin tanımıyla aynı; kaydedilecek bir şey yok." msgstr "XML, sanal makinenin tanımıyla aynı; kaydedilecek bir şey yok."
#: instances/templates/instances/settings_tab.html:655 #: instances/templates/instances/settings_tab.html:649
#, python-format
msgid "Line %(line)s"
msgstr "Satır %(line)s"
#: instances/templates/instances/settings_tab.html:662
msgid "Instance owners" msgid "Instance owners"
msgstr "Sanal makine sahipleri" msgstr "Sanal makine sahipleri"
#: instances/templates/instances/settings_tab.html:658 #: instances/templates/instances/settings_tab.html:665
msgid "" msgid ""
"Every owner can power the VM and open its console. A new owner has no other " "Every owner can power the VM and open its console. A new owner has no other "
"right until it is given one." "right until it is given one."
@ -5210,19 +5215,19 @@ msgstr ""
"Her sahip sanal makineyi açıp kapatabilir ve konsolunu açabilir. Yeni bir " "Her sahip sanal makineyi açıp kapatabilir ve konsolunu açabilir. Yeni bir "
"sahibin, verilene kadar başka bir hakkı yoktur." "sahibin, verilene kadar başka bir hakkı yoktur."
#: instances/templates/instances/settings_tab.html:676 #: instances/templates/instances/settings_tab.html:683
msgid "Edit rights" msgid "Edit rights"
msgstr "Hakları düzenle" msgstr "Hakları düzenle"
#: instances/templates/instances/settings_tab.html:685 #: instances/templates/instances/settings_tab.html:692
msgid "The VM has no owner: only administrators can use it." msgid "The VM has no owner: only administrators can use it."
msgstr "Sanal makinenin sahibi yok: yalnızca yöneticiler kullanabilir." msgstr "Sanal makinenin sahibi yok: yalnızca yöneticiler kullanabilir."
#: instances/templates/instances/settings_tab.html:692 #: instances/templates/instances/settings_tab.html:699
msgid "Console settings" msgid "Console settings"
msgstr "Konsol ayarları" msgstr "Konsol ayarları"
#: instances/templates/instances/settings_tab.html:694 #: instances/templates/instances/settings_tab.html:701
msgid "" msgid ""
"The running console keeps its current settings; changes here apply after the " "The running console keeps its current settings; changes here apply after the "
"VM is shut down and started." "VM is shut down and started."
@ -5230,39 +5235,39 @@ msgstr ""
"Çalışan konsol mevcut ayarlarını korur; buradaki değişiklikler sanal makine " "Çalışan konsol mevcut ayarlarını korur; buradaki değişiklikler sanal makine "
"kapatılıp başlatıldıktan sonra uygulanır." "kapatılıp başlatıldıktan sonra uygulanır."
#: instances/templates/instances/settings_tab.html:701 #: instances/templates/instances/settings_tab.html:708
msgid "The settings below apply to a VNC console." msgid "The settings below apply to a VNC console."
msgstr "Aşağıdaki ayarlar VNC konsolu için geçerlidir." msgstr "Aşağıdaki ayarlar VNC konsolu için geçerlidir."
#: instances/templates/instances/settings_tab.html:703 #: instances/templates/instances/settings_tab.html:710
msgid "The VNC settings appear once the console type VNC is saved." msgid "The VNC settings appear once the console type VNC is saved."
msgstr "VNC ayarları, konsol tipi VNC olarak kaydedildiğinde görünür." msgstr "VNC ayarları, konsol tipi VNC olarak kaydedildiğinde görünür."
#: instances/templates/instances/settings_tab.html:711 #: instances/templates/instances/settings_tab.html:718
msgid "VNC connection" msgid "VNC connection"
msgstr "VNC bağlantısı" msgstr "VNC bağlantısı"
#: instances/templates/instances/settings_tab.html:716 #: instances/templates/instances/settings_tab.html:723
msgid "Only administrators can change this." msgid "Only administrators can change this."
msgstr "Bunu yalnızca yöneticiler değiştirebilir." msgstr "Bunu yalnızca yöneticiler değiştirebilir."
#: instances/templates/instances/settings_tab.html:716 #: instances/templates/instances/settings_tab.html:723
msgid "Beyond localhost the console is reachable from the network." msgid "Beyond localhost the console is reachable from the network."
msgstr "localhost dışında konsola ağdan erişilebilir." msgstr "localhost dışında konsola ağdan erişilebilir."
#: instances/templates/instances/settings_tab.html:727 #: instances/templates/instances/settings_tab.html:734
msgid "VNC password" msgid "VNC password"
msgstr "VNC parolası" msgstr "VNC parolası"
#: instances/templates/instances/settings_tab.html:730 #: instances/templates/instances/settings_tab.html:737
msgid "A password is set." msgid "A password is set."
msgstr "Parola ayarlanmış." msgstr "Parola ayarlanmış."
#: instances/templates/instances/settings_tab.html:730 #: instances/templates/instances/settings_tab.html:737
msgid "No password is set." msgid "No password is set."
msgstr "Parola ayarlanmamış." msgstr "Parola ayarlanmamış."
#: instances/templates/instances/settings_tab.html:740 #: instances/templates/instances/settings_tab.html:747
msgid "" msgid ""
"Up to 8 characters (an accented letter counts as two), used with \"Set a new " "Up to 8 characters (an accented letter counts as two), used with \"Set a new "
"one\"." "one\"."
@ -5270,20 +5275,20 @@ msgstr ""
"En fazla 8 karakter (aksanlı bir harf iki sayılır), \"Yenisini belirle\" ile " "En fazla 8 karakter (aksanlı bir harf iki sayılır), \"Yenisini belirle\" ile "
"kullanılır." "kullanılır."
#: instances/templates/instances/settings_tab.html:747 #: instances/templates/instances/settings_tab.html:754
msgid "Save console settings" msgid "Save console settings"
msgstr "Konsol ayarlarını kaydet" msgstr "Konsol ayarlarını kaydet"
#: instances/templates/instances/settings_tab.html:756 #: instances/templates/instances/settings_tab.html:763
msgid "Create a clone" msgid "Create a clone"
msgstr "Bir klon oluştur" msgstr "Bir klon oluştur"
#: instances/templates/instances/settings_tab.html:757 #: instances/templates/instances/settings_tab.html:764
#, python-format #, python-format
msgid "Source VM: %(name)s" msgid "Source VM: %(name)s"
msgstr "Kaynak sanal makine: %(name)s" msgstr "Kaynak sanal makine: %(name)s"
#: instances/templates/instances/settings_tab.html:759 #: instances/templates/instances/settings_tab.html:766
msgid "" msgid ""
"The clone gets a new, empty TPM: keys in this VM's TPM, such as BitLocker's, " "The clone gets a new, empty TPM: keys in this VM's TPM, such as BitLocker's, "
"do not come along." "do not come along."
@ -5291,69 +5296,69 @@ msgstr ""
"Klon yeni ve boş bir TPM alır: bu sanal makinenin TPM'indeki anahtarlar, " "Klon yeni ve boş bir TPM alır: bu sanal makinenin TPM'indeki anahtarlar, "
"örneğin BitLocker'ınkiler, klona geçmez." "örneğin BitLocker'ınkiler, klona geçmez."
#: instances/templates/instances/settings_tab.html:764 #: instances/templates/instances/settings_tab.html:771
#: instances/templates/instances/settings_tab.html:777 #: instances/templates/instances/settings_tab.html:784
#: instances/templates/instances/settings_tab.html:780 #: instances/templates/instances/settings_tab.html:787
msgid "Clone name" msgid "Clone name"
msgstr "Klon adı" msgstr "Klon adı"
#: instances/templates/instances/settings_tab.html:772 #: instances/templates/instances/settings_tab.html:779
#: instances/templates/instances/settings_tab.html:804 #: instances/templates/instances/settings_tab.html:811
msgid "Guess" msgid "Guess"
msgstr "Tahmin" msgstr "Tahmin"
#: instances/templates/instances/settings_tab.html:775 #: instances/templates/instances/settings_tab.html:782
msgid "The DHCP file has no free name to suggest." msgid "The DHCP file has no free name to suggest."
msgstr "DHCP dosyasında önerilecek boş ad yok." msgstr "DHCP dosyasında önerilecek boş ad yok."
#: instances/templates/instances/settings_tab.html:778 #: instances/templates/instances/settings_tab.html:785
msgid "Automatic" msgid "Automatic"
msgstr "Otomatik" msgstr "Otomatik"
#: instances/templates/instances/settings_tab.html:798 #: instances/templates/instances/settings_tab.html:805
msgid "New MAC address" msgid "New MAC address"
msgstr "Yeni MAC adresi" msgstr "Yeni MAC adresi"
#: instances/templates/instances/settings_tab.html:801 #: instances/templates/instances/settings_tab.html:808
msgid "Random" msgid "Random"
msgstr "Rastgele" msgstr "Rastgele"
#: instances/templates/instances/settings_tab.html:819 #: instances/templates/instances/settings_tab.html:826
#, python-format #, python-format
msgid "%(pool)s pool" msgid "%(pool)s pool"
msgstr "%(pool)s havuzu" msgstr "%(pool)s havuzu"
#: instances/templates/instances/settings_tab.html:820 #: instances/templates/instances/settings_tab.html:827
msgid "New volume name" msgid "New volume name"
msgstr "Yeni birim adı" msgstr "Yeni birim adı"
#: instances/templates/instances/settings_tab.html:826 #: instances/templates/instances/settings_tab.html:833
msgid "Preallocate qcow2 metadata" msgid "Preallocate qcow2 metadata"
msgstr "qcow2 meta verisini önceden ayır" msgstr "qcow2 meta verisini önceden ayır"
#: instances/templates/instances/settings_tab.html:831 #: instances/templates/instances/settings_tab.html:838
msgid "The VM has no disk to copy." msgid "The VM has no disk to copy."
msgstr "Sanal makinenin kopyalanacak diski yok." msgstr "Sanal makinenin kopyalanacak diski yok."
#: instances/templates/instances/settings_tab.html:850 #: instances/templates/instances/settings_tab.html:857
msgid "The VM's size to start from; the quota counts the larger of the two." msgid "The VM's size to start from; the quota counts the larger of the two."
msgstr "" msgstr ""
"Başlangıç olarak sanal makinenin boyutu; kota ikisinden büyük olanı sayar." "Başlangıç olarak sanal makinenin boyutu; kota ikisinden büyük olanı sayar."
#: instances/templates/instances/settings_tab.html:853 #: instances/templates/instances/settings_tab.html:860
msgid "Start the clone when it is made" msgid "Start the clone when it is made"
msgstr "Klon oluşturulunca başlat" msgstr "Klon oluşturulunca başlat"
#: instances/templates/instances/settings_tab.html:857 #: instances/templates/instances/settings_tab.html:864
msgid "Optional details" msgid "Optional details"
msgstr "İsteğe bağlı ayrıntılar" msgstr "İsteğe bağlı ayrıntılar"
#: instances/templates/instances/settings_tab.html:858 #: instances/templates/instances/settings_tab.html:865
#: instances/templates/instances/settings_tab.html:888 #: instances/templates/instances/settings_tab.html:895
msgid "Title" msgid "Title"
msgstr "Başlık" msgstr "Başlık"
#: instances/templates/instances/settings_tab.html:865 #: instances/templates/instances/settings_tab.html:872
msgid "" msgid ""
"The clone gets none of the VM's host devices: one VM holds a device of the " "The clone gets none of the VM's host devices: one VM holds a device of the "
"host." "host."
@ -5361,50 +5366,50 @@ msgstr ""
"Klon, sanal makinenin sunucu aygıtlarını almaz: bir sunucu aygıtını tek bir " "Klon, sanal makinenin sunucu aygıtlarını almaz: bir sunucu aygıtını tek bir "
"sanal makine tutar." "sanal makine tutar."
#: instances/templates/instances/settings_tab.html:868 #: instances/templates/instances/settings_tab.html:875
msgid "Cloning runs as a background job." msgid "Cloning runs as a background job."
msgstr "Klonlama arka planda bir iş olarak çalışır." msgstr "Klonlama arka planda bir iş olarak çalışır."
#: instances/templates/instances/settings_tab.html:885 #: instances/templates/instances/settings_tab.html:892
msgid "VM details" msgid "VM details"
msgstr "Sanal makine ayrıntıları" msgstr "Sanal makine ayrıntıları"
#: instances/templates/instances/settings_tab.html:904 #: instances/templates/instances/settings_tab.html:911
msgid "Use as a template" msgid "Use as a template"
msgstr "Şablon olarak kullan" msgstr "Şablon olarak kullan"
#: instances/templates/instances/settings_tab.html:906 #: instances/templates/instances/settings_tab.html:913
msgid "" msgid ""
"A template is a VM to clone: it is not counted in quotas and cannot be " "A template is a VM to clone: it is not counted in quotas and cannot be "
"started." "started."
msgstr "" msgstr ""
"Şablon, klonlanacak bir sanal makinedir: kotalarda sayılmaz ve başlatılamaz." "Şablon, klonlanacak bir sanal makinedir: kotalarda sayılmaz ve başlatılamaz."
#: instances/templates/instances/settings_tab.html:907 #: instances/templates/instances/settings_tab.html:914
msgid "Only administrators and staff can change this." msgid "Only administrators and staff can change this."
msgstr "Bunu yalnızca yöneticiler ve personel değiştirebilir." msgstr "Bunu yalnızca yöneticiler ve personel değiştirebilir."
#: instances/templates/instances/settings_tab.html:914 #: instances/templates/instances/settings_tab.html:921
msgid "Devices the guest sees" msgid "Devices the guest sees"
msgstr "Konuk sistemin gördüğü aygıtlar" msgstr "Konuk sistemin gördüğü aygıtlar"
#: instances/templates/instances/settings_tab.html:915 #: instances/templates/instances/settings_tab.html:922
msgid "Changes apply from the next start; the guest agent's at once." msgid "Changes apply from the next start; the guest agent's at once."
msgstr "Değişiklikler sonraki başlatmada geçerli olur; konuk ajanınki hemen." msgstr "Değişiklikler sonraki başlatmada geçerli olur; konuk ajanınki hemen."
#: instances/templates/instances/settings_tab.html:924 #: instances/templates/instances/settings_tab.html:931
msgid "The graphics device the guest sees." msgid "The graphics device the guest sees."
msgstr "Konuk sistemin gördüğü grafik aygıtı." msgstr "Konuk sistemin gördüğü grafik aygıtı."
#: instances/templates/instances/settings_tab.html:927 #: instances/templates/instances/settings_tab.html:934
msgid "Virtio RNG" msgid "Virtio RNG"
msgstr "Virtio RNG" msgstr "Virtio RNG"
#: instances/templates/instances/settings_tab.html:932 #: instances/templates/instances/settings_tab.html:939
msgid "The VM has its own RNG device: change it in the XML editor." msgid "The VM has its own RNG device: change it in the XML editor."
msgstr "Sanal makinenin kendi RNG aygıtı var: XML düzenleyicide değiştirin." msgstr "Sanal makinenin kendi RNG aygıtı var: XML düzenleyicide değiştirin."
#: instances/templates/instances/settings_tab.html:932 #: instances/templates/instances/settings_tab.html:939
msgid "" msgid ""
"Feeds the guest's entropy from the host, so a new VM does not wait for it at " "Feeds the guest's entropy from the host, so a new VM does not wait for it at "
"boot." "boot."
@ -5412,15 +5417,15 @@ msgstr ""
"Konuk sistemin entropisini sunucudan besler; yeni bir sanal makine açılışta " "Konuk sistemin entropisini sunucudan besler; yeni bir sanal makine açılışta "
"onu beklemez." "onu beklemez."
#: instances/templates/instances/settings_tab.html:941 #: instances/templates/instances/settings_tab.html:948
msgid "The VM has its own TPM: change it in the XML editor." msgid "The VM has its own TPM: change it in the XML editor."
msgstr "Sanal makinenin kendi TPM'i var: XML düzenleyicide değiştirin." msgstr "Sanal makinenin kendi TPM'i var: XML düzenleyicide değiştirin."
#: instances/templates/instances/settings_tab.html:942 #: instances/templates/instances/settings_tab.html:949
msgid "This host offers no TPM 2.0: install swtpm on it." msgid "This host offers no TPM 2.0: install swtpm on it."
msgstr "Bu sunucu TPM 2.0 sunmuyor: üzerine swtpm kurun." msgstr "Bu sunucu TPM 2.0 sunmuyor: üzerine swtpm kurun."
#: instances/templates/instances/settings_tab.html:943 #: instances/templates/instances/settings_tab.html:950
msgid "" msgid ""
"Turned off, its state stays on the host until the VM is destroyed; turned on " "Turned off, its state stays on the host until the VM is destroyed; turned on "
"again, it is back." "again, it is back."
@ -5428,42 +5433,42 @@ msgstr ""
"Kapatıldığında durumu, sanal makine silinene kadar sunucuda kalır; yeniden " "Kapatıldığında durumu, sanal makine silinene kadar sunucuda kalır; yeniden "
"açıldığında geri gelir." "açıldığında geri gelir."
#: instances/templates/instances/settings_tab.html:944 #: instances/templates/instances/settings_tab.html:951
msgid "Windows 11 needs it, with UEFI Secure Boot." msgid "Windows 11 needs it, with UEFI Secure Boot."
msgstr "Windows 11, UEFI Secure Boot ile birlikte bunu ister." msgstr "Windows 11, UEFI Secure Boot ile birlikte bunu ister."
#: instances/templates/instances/settings_tab.html:953 #: instances/templates/instances/settings_tab.html:960
msgid "The channel to the agent in the guest: a running VM gets it at once." msgid "The channel to the agent in the guest: a running VM gets it at once."
msgstr "" msgstr ""
"Konuk sistemdeki ajana giden kanal: çalışan bir sanal makine onu hemen alır." "Konuk sistemdeki ajana giden kanal: çalışan bir sanal makine onu hemen alır."
#: instances/templates/instances/settings_tab.html:954 #: instances/templates/instances/settings_tab.html:961
msgid "VM not running" msgid "VM not running"
msgstr "Sanal makine çalışmıyor" msgstr "Sanal makine çalışmıyor"
#: instances/templates/instances/settings_tab.html:955 #: instances/templates/instances/settings_tab.html:962
msgid "No channel" msgid "No channel"
msgstr "Kanal yok" msgstr "Kanal yok"
#: instances/templates/instances/settings_tab.html:957 #: instances/templates/instances/settings_tab.html:964
msgid "Not connected: is the agent installed and running in the guest?" msgid "Not connected: is the agent installed and running in the guest?"
msgstr "Bağlı değil: ajan konuk sistemde kurulu ve çalışıyor mu?" msgstr "Bağlı değil: ajan konuk sistemde kurulu ve çalışıyor mu?"
#: instances/templates/instances/settings_tab.html:962 #: instances/templates/instances/settings_tab.html:969
msgid "When the guest crashes" msgid "When the guest crashes"
msgstr "Konuk sistem çöktüğünde" msgstr "Konuk sistem çöktüğünde"
#: instances/templates/instances/settings_tab.html:967 #: instances/templates/instances/settings_tab.html:974
msgid "Restart" msgid "Restart"
msgstr "Yeniden başlat" msgstr "Yeniden başlat"
#: instances/templates/instances/settings_tab.html:969 #: instances/templates/instances/settings_tab.html:976
#: interfaces/templates/interface.html:16 networks/templates/network.html:16 #: interfaces/templates/interface.html:16 networks/templates/network.html:16
#: storages/templates/storage.html:18 #: storages/templates/storage.html:18
msgid "Stop" msgid "Stop"
msgstr "Durdur" msgstr "Durdur"
#: instances/templates/instances/settings_tab.html:971 #: instances/templates/instances/settings_tab.html:978
msgid "" msgid ""
"For a crash the guest reports, not a hang. Stop keeps a VM that crashes again" "For a crash the guest reports, not a hang. Stop keeps a VM that crashes again"
" and again down for a look. From the next start." " and again down for a look. From the next start."
@ -5472,7 +5477,7 @@ msgstr ""
" tekrar çöken bir sanal makineyi incelemek için kapalı tutar. Sonraki " " tekrar çöken bir sanal makineyi incelemek için kapalı tutar. Sonraki "
"başlatmadan itibaren." "başlatmadan itibaren."
#: instances/templates/instances/settings_tab.html:973 #: instances/templates/instances/settings_tab.html:980
#, python-format #, python-format
msgid "%(action)s: change it in the XML editor." msgid "%(action)s: change it in the XML editor."
msgstr "%(action)s: XML düzenleyicide değiştirin." msgstr "%(action)s: XML düzenleyicide değiştirin."

Binary file not shown.

View file

@ -7,7 +7,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: \n" "Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2026-11-04 09:10+0000\n" "POT-Creation-Date: 2026-11-04 11:17+0000\n"
"PO-Revision-Date: \n" "PO-Revision-Date: \n"
"Last-Translator: \n" "Last-Translator: \n"
"Language-Team: \n" "Language-Team: \n"
@ -27,17 +27,17 @@ msgid "Instance owned by another user"
msgstr "该虚拟机属于其他用户" msgstr "该虚拟机属于其他用户"
#: accounts/forms.py:36 accounts/templates/account.html:66 #: accounts/forms.py:36 accounts/templates/account.html:66
#: instances/templates/instances/settings_tab.html:668 #: instances/templates/instances/settings_tab.html:675
msgid "Change settings" msgid "Change settings"
msgstr "修改设置" msgstr "修改设置"
#: accounts/forms.py:36 accounts/templates/account.html:67 #: accounts/forms.py:36 accounts/templates/account.html:67
#: instances/templates/instances/settings_tab.html:668 #: instances/templates/instances/settings_tab.html:675
msgid "Delete the VM" msgid "Delete the VM"
msgstr "删除虚拟机" msgstr "删除虚拟机"
#: accounts/forms.py:37 accounts/templates/account.html:68 #: accounts/forms.py:37 accounts/templates/account.html:68
#: instances/templates/instances/settings_tab.html:668 #: instances/templates/instances/settings_tab.html:675
msgid "Change console settings" msgid "Change console settings"
msgstr "修改控制台设置" msgstr "修改控制台设置"
@ -231,7 +231,7 @@ msgid "Host"
msgstr "主机" msgstr "主机"
#: accounts/templates/account.html:69 #: accounts/templates/account.html:69
#: instances/templates/instances/settings_tab.html:670 #: instances/templates/instances/settings_tab.html:677
msgid "Power and console only" msgid "Power and console only"
msgstr "仅电源和控制台" msgstr "仅电源和控制台"
@ -276,7 +276,7 @@ msgstr "修改密码"
#: instances/templates/instances/edit_instance_volume.html:111 #: instances/templates/instances/edit_instance_volume.html:111
#: instances/templates/instances/move_disk.html:27 #: instances/templates/instances/move_disk.html:27
#: instances/templates/instances/settings_tab.html:411 #: instances/templates/instances/settings_tab.html:411
#: instances/templates/instances/settings_tab.html:645 #: instances/templates/instances/settings_tab.html:652
#: interfaces/templates/create_iface_block.html:147 #: interfaces/templates/create_iface_block.html:147
#: networks/templates/add_network_qos.html:35 #: networks/templates/add_network_qos.html:35
#: networks/templates/create_net_block.html:126 #: networks/templates/create_net_block.html:126
@ -691,8 +691,8 @@ msgstr "成员"
#: instances/templates/instances/edit_instance_volume.html:112 #: instances/templates/instances/edit_instance_volume.html:112
#: instances/templates/instances/nic_qos_form.html:23 #: instances/templates/instances/nic_qos_form.html:23
#: instances/templates/instances/settings_tab.html:412 #: instances/templates/instances/settings_tab.html:412
#: instances/templates/instances/settings_tab.html:646 #: instances/templates/instances/settings_tab.html:653
#: instances/templates/instances/settings_tab.html:896 #: instances/templates/instances/settings_tab.html:903
#: networks/templates/add_network_qos.html:36 #: networks/templates/add_network_qos.html:36
#: networks/templates/network.html:336 networks/templates/network.html:376 #: networks/templates/network.html:336 networks/templates/network.html:376
#: networks/templates/network.html:403 networks/templates/network.html:442 #: networks/templates/network.html:403 networks/templates/network.html:442
@ -1608,7 +1608,7 @@ msgstr "克隆"
#: console/templates/console-base.html:23 #: console/templates/console-base.html:23
#: instances/templates/instance_actions.html:11 #: instances/templates/instance_actions.html:11
#: instances/templates/instances/settings_tab.html:32 #: instances/templates/instances/settings_tab.html:32
#: instances/templates/instances/settings_tab.html:697 #: instances/templates/instances/settings_tab.html:704
msgid "Console" msgid "Console"
msgstr "控制台" msgstr "控制台"
@ -1672,8 +1672,8 @@ msgid "Stored, leave empty to keep"
msgstr "已保存,留空则保持不变" msgstr "已保存,留空则保持不变"
#: computes/forms.py:28 computes/templates/computes/instances.html:45 #: computes/forms.py:28 computes/templates/computes/instances.html:45
#: instances/templates/instances/settings_tab.html:860 #: instances/templates/instances/settings_tab.html:867
#: instances/templates/instances/settings_tab.html:892 #: instances/templates/instances/settings_tab.html:899
#: instances/templates/instances/snapshots_tab.html:27 #: instances/templates/instances/snapshots_tab.html:27
#: instances/templates/instances/snapshots_tab.html:71 #: instances/templates/instances/snapshots_tab.html:71
msgid "Description" msgid "Description"
@ -1921,7 +1921,7 @@ msgstr "虚拟机"
#: computes/templates/computes/host_nav.html:16 #: computes/templates/computes/host_nav.html:16
#: computes/templates/overview.html:74 #: computes/templates/overview.html:74
#: instances/templates/instances/settings_tab.html:550 #: instances/templates/instances/settings_tab.html:550
#: instances/templates/instances/settings_tab.html:816 #: instances/templates/instances/settings_tab.html:823
#: storages/templates/storage.html:6 storages/templates/storage.html:8 #: storages/templates/storage.html:6 storages/templates/storage.html:8
msgid "Storage" msgid "Storage"
msgstr "存储" msgstr "存储"
@ -2055,7 +2055,7 @@ msgstr "共 %(memory)s"
#: instances/templates/allinstances_index_nongrouped.html:14 #: instances/templates/allinstances_index_nongrouped.html:14
#: instances/templates/create_instance_w2.html:63 #: instances/templates/create_instance_w2.html:63
#: instances/templates/instances/resize_tab.html:29 #: instances/templates/instances/resize_tab.html:29
#: instances/templates/instances/settings_tab.html:842 #: instances/templates/instances/settings_tab.html:849
msgid "vCPUs" msgid "vCPUs"
msgstr "vCPU" msgstr "vCPU"
@ -2063,7 +2063,7 @@ msgstr "vCPU"
#: console/templates/console-vnc.html:13 #: console/templates/console-vnc.html:13
#: console/templates/console-xterm.html:16 #: console/templates/console-xterm.html:16
#: instances/templates/allinstances_index_grouped.html:36 #: instances/templates/allinstances_index_grouped.html:36
#: instances/templates/instances/settings_tab.html:956 #: instances/templates/instances/settings_tab.html:963
#: networks/templates/network.html:260 #: networks/templates/network.html:260
msgid "Connected" msgid "Connected"
msgstr "已连接" msgstr "已连接"
@ -2397,7 +2397,7 @@ msgstr "连接"
#: instances/templates/instances/edit_instance_volume.html:13 #: instances/templates/instances/edit_instance_volume.html:13
#: instances/templates/instances/move_disk.html:13 #: instances/templates/instances/move_disk.html:13
#: instances/templates/instances/settings_tab.html:362 #: instances/templates/instances/settings_tab.html:362
#: instances/templates/instances/settings_tab.html:637 #: instances/templates/instances/settings_tab.html:644
#: interfaces/templates/create_iface_block.html:20 #: interfaces/templates/create_iface_block.html:20
#: networks/templates/add_network_qos.html:8 #: networks/templates/add_network_qos.html:8
#: networks/templates/create_net_block.html:20 #: networks/templates/create_net_block.html:20
@ -2486,7 +2486,7 @@ msgid ""
msgstr "不支持控制台类型 '%(type)s'。请将虚拟机图形切换为 VNC。" msgstr "不支持控制台类型 '%(type)s'。请将虚拟机图形切换为 VNC。"
#: instances/forms.py:14 instances/templates/create_instance_w2.html:69 #: instances/forms.py:14 instances/templates/create_instance_w2.html:69
#: instances/templates/instances/settings_tab.html:846 #: instances/templates/instances/settings_tab.html:853
msgid "Memory (MiB)" msgid "Memory (MiB)"
msgstr "内存(MiB)" msgstr "内存(MiB)"
@ -3143,7 +3143,7 @@ msgid "Letters, digits, dot, dash and underscore."
msgstr "字母、数字、点、短横线和下划线。" msgstr "字母、数字、点、短横线和下划线。"
#: instances/templates/add_instance_volume.html:44 #: instances/templates/add_instance_volume.html:44
#: instances/templates/instances/settings_tab.html:839 #: instances/templates/instances/settings_tab.html:846
msgid "Size" msgid "Size"
msgstr "大小" msgstr "大小"
@ -3450,7 +3450,7 @@ msgid "Firmware"
msgstr "固件" msgstr "固件"
#: instances/templates/create_instance_w2.html:86 #: instances/templates/create_instance_w2.html:86
#: instances/templates/instances/settings_tab.html:935 #: instances/templates/instances/settings_tab.html:942
msgid "TPM 2.0" msgid "TPM 2.0"
msgstr "TPM 2.0" msgstr "TPM 2.0"
@ -3506,7 +3506,7 @@ msgstr "设备"
#: instances/templates/create_instance_w2.html:188 #: instances/templates/create_instance_w2.html:188
#: instances/templates/create_instance_w2.html:246 #: instances/templates/create_instance_w2.html:246
#: instances/templates/instances/boot_device.html:14 #: instances/templates/instances/boot_device.html:14
#: instances/templates/instances/settings_tab.html:677 #: instances/templates/instances/settings_tab.html:684
#: networks/templates/network.html:304 #: networks/templates/network.html:304
msgid "Remove" msgid "Remove"
msgstr "移除" msgstr "移除"
@ -3553,7 +3553,7 @@ msgid "Network filter"
msgstr "网络过滤器" msgstr "网络过滤器"
#: instances/templates/create_instance_w2.html:293 #: instances/templates/create_instance_w2.html:293
#: instances/templates/instances/settings_tab.html:918 #: instances/templates/instances/settings_tab.html:925
#: vrtManager/nodedevs.py:30 #: vrtManager/nodedevs.py:30
msgid "Video" msgid "Video"
msgstr "显卡" msgstr "显卡"
@ -3567,7 +3567,7 @@ msgid "Input device"
msgstr "输入设备" msgstr "输入设备"
#: instances/templates/create_instance_w2.html:334 #: instances/templates/create_instance_w2.html:334
#: instances/templates/instances/settings_tab.html:948 #: instances/templates/instances/settings_tab.html:955
msgid "Guest agent" msgid "Guest agent"
msgstr "客户机代理" msgstr "客户机代理"
@ -3607,8 +3607,8 @@ msgstr "详情"
#: instances/templates/instance.html:34 #: instances/templates/instance.html:34
#: instances/templates/instance_actions.html:13 #: instances/templates/instance_actions.html:13
#: instances/templates/instances/settings_tab.html:53 #: instances/templates/instances/settings_tab.html:53
#: instances/templates/instances/settings_tab.html:870 #: instances/templates/instances/settings_tab.html:877
#: instances/templates/instances/settings_tab.html:872 #: instances/templates/instances/settings_tab.html:879
#: nwfilters/templates/nwfilters.html:57 nwfilters/templates/nwfilters.html:94 #: nwfilters/templates/nwfilters.html:57 nwfilters/templates/nwfilters.html:94
#: storages/templates/storage.html:143 storages/templates/storage.html:203 #: storages/templates/storage.html:143 storages/templates/storage.html:203
msgid "Clone" msgid "Clone"
@ -4371,7 +4371,7 @@ msgid "Lets vCPUs up to the maximum be turned on and off while the VM runs."
msgstr "允许在虚拟机运行时开启或关闭不超过最大数量的 vCPU。" msgstr "允许在虚拟机运行时开启或关闭不超过最大数量的 vCPU。"
#: instances/templates/instances/resize_tab.html:77 #: instances/templates/instances/resize_tab.html:77
#: instances/templates/instances/settings_tab.html:908 #: instances/templates/instances/settings_tab.html:915
msgid "Shut the VM down to change this." msgid "Shut the VM down to change this."
msgstr "请先关闭虚拟机再修改此项。" msgstr "请先关闭虚拟机再修改此项。"
@ -4433,7 +4433,7 @@ msgid "Boot"
msgstr "启动" msgstr "启动"
#: instances/templates/instances/settings_tab.html:39 #: instances/templates/instances/settings_tab.html:39
#: instances/templates/instances/settings_tab.html:794 #: instances/templates/instances/settings_tab.html:801
#: instances/templates/instances/stats_tab.html:44 #: instances/templates/instances/stats_tab.html:44
#: networks/templates/network.html:6 networks/templates/network.html:8 #: networks/templates/network.html:6 networks/templates/network.html:8
#: networks/templates/network.html:48 #: networks/templates/network.html:48
@ -4445,8 +4445,8 @@ msgid "Host devices"
msgstr "主机设备" msgstr "主机设备"
#: instances/templates/instances/settings_tab.html:60 #: instances/templates/instances/settings_tab.html:60
#: instances/templates/instances/settings_tab.html:609 #: instances/templates/instances/settings_tab.html:616
#: instances/templates/instances/settings_tab.html:612 #: instances/templates/instances/settings_tab.html:619
msgid "Migrate" msgid "Migrate"
msgstr "迁移" msgstr "迁移"
@ -4897,326 +4897,331 @@ msgid ""
"transfer." "transfer."
msgstr "复制内存期间虚拟机保持运行。关闭此项时,虚拟机在传输期间暂停。" msgstr "复制内存期间虚拟机保持运行。关闭此项时,虚拟机在传输期间暂停。"
#: instances/templates/instances/settings_tab.html:574 #: instances/templates/instances/settings_tab.html:573
msgid "Auto converge" msgid "Auto converge"
msgstr "自动收敛" msgstr "自动收敛"
#: instances/templates/instances/settings_tab.html:576 #: instances/templates/instances/settings_tab.html:575
msgid "" msgid ""
"Slows the guest's CPUs so that a busy VM's live migration can finish. Only " "Slows the guest's CPUs so that a busy VM's live migration can finish. Only "
"with Live migration." "with Live migration."
msgstr "降低客户机 CPU 速度,使繁忙虚拟机的在线迁移能够完成。仅适用于在线迁移。" msgstr "降低客户机 CPU 速度,使繁忙虚拟机的在线迁移能够完成。仅适用于在线迁移。"
#: instances/templates/instances/settings_tab.html:581 #: instances/templates/instances/settings_tab.html:580
msgid "Compressed" msgid "Compressed"
msgstr "压缩" msgstr "压缩"
#: instances/templates/instances/settings_tab.html:583 #: instances/templates/instances/settings_tab.html:582
msgid "Compresses the memory sent: less network, more CPU on both hosts." msgid "Compresses the memory sent: less network, more CPU on both hosts."
msgstr "压缩发送的内存:占用更少网络,但两台主机的 CPU 占用更多。" msgstr "压缩发送的内存:占用更少网络,但两台主机的 CPU 占用更多。"
#: instances/templates/instances/settings_tab.html:588 #: instances/templates/instances/settings_tab.html:594
msgid "Unsafe migration" msgid "Unsafe migration"
msgstr "不安全迁移" msgstr "不安全迁移"
#: instances/templates/instances/settings_tab.html:590 #: instances/templates/instances/settings_tab.html:596
msgid "" msgid ""
"Skips libvirt's safety checks, such as a disk cache mode that can corrupt " "Skips libvirt's safety checks, such as a disk cache mode that can corrupt "
"data in a migration." "data in a migration."
msgstr "跳过 libvirt 的安全检查,例如可能在迁移中损坏数据的磁盘缓存模式。" msgstr "跳过 libvirt 的安全检查,例如可能在迁移中损坏数据的磁盘缓存模式。"
#: instances/templates/instances/settings_tab.html:596 #: instances/templates/instances/settings_tab.html:602
msgid "Delete the source files of copied disks" msgid "Delete the source files of copied disks"
msgstr "删除已复制磁盘的源文件" msgstr "删除已复制磁盘的源文件"
#: instances/templates/instances/settings_tab.html:598 #: instances/templates/instances/settings_tab.html:604
msgid "" msgid ""
"After a migration that copied disks, their files on the source host go. Disks" "After a migration that copied disks, their files on the source host go. Disks"
" on shared storage stay." " on shared storage stay."
msgstr "迁移复制磁盘后,删除其在源主机上的文件。共享存储上的磁盘保留。" msgstr "迁移复制磁盘后,删除其在源主机上的文件。共享存储上的磁盘保留。"
#: instances/templates/instances/settings_tab.html:607 #: instances/templates/instances/settings_tab.html:614
msgid "Migration runs as a background job." msgid "Migration runs as a background job."
msgstr "迁移作为后台任务运行。" msgstr "迁移作为后台任务运行。"
#: instances/templates/instances/settings_tab.html:621 #: instances/templates/instances/settings_tab.html:628
msgid "" msgid ""
"This is the definition for the VM's next start; a saved change applies then." "This is the definition for the VM's next start; a saved change applies then."
msgstr "这是虚拟机下次启动时使用的定义;保存的更改将在那时生效。" msgstr "这是虚拟机下次启动时使用的定义;保存的更改将在那时生效。"
#: instances/templates/instances/settings_tab.html:628 #: instances/templates/instances/settings_tab.html:635
msgid "Review changes" msgid "Review changes"
msgstr "查看更改" msgstr "查看更改"
#: instances/templates/instances/settings_tab.html:632 #: instances/templates/instances/settings_tab.html:639
msgid "" msgid ""
"The request did not go through; your edit is still in the editor. Try again, " "The request did not go through; your edit is still in the editor. Try again, "
"or copy it and reload the page." "or copy it and reload the page."
msgstr "请求未成功;您的编辑仍在编辑器中。请重试,或复制内容后重新加载页面。" msgstr "请求未成功;您的编辑仍在编辑器中。请重试,或复制内容后重新加载页面。"
#: instances/templates/instances/settings_tab.html:636 #: instances/templates/instances/settings_tab.html:643
msgid "Review the XML change" msgid "Review the XML change"
msgstr "查看 XML 更改" msgstr "查看 XML 更改"
#: instances/templates/instances/settings_tab.html:641 #: instances/templates/instances/settings_tab.html:648
msgid "The XML is the same as the VM's definition; there is nothing to save." msgid "The XML is the same as the VM's definition; there is nothing to save."
msgstr "该 XML 与虚拟机的定义相同,无需保存。" msgstr "该 XML 与虚拟机的定义相同,无需保存。"
#: instances/templates/instances/settings_tab.html:655 #: instances/templates/instances/settings_tab.html:649
#, python-format
msgid "Line %(line)s"
msgstr "第 %(line)s 行"
#: instances/templates/instances/settings_tab.html:662
msgid "Instance owners" msgid "Instance owners"
msgstr "虚拟机所有者" msgstr "虚拟机所有者"
#: instances/templates/instances/settings_tab.html:658 #: instances/templates/instances/settings_tab.html:665
msgid "" msgid ""
"Every owner can power the VM and open its console. A new owner has no other " "Every owner can power the VM and open its console. A new owner has no other "
"right until it is given one." "right until it is given one."
msgstr "每个所有者都可以控制虚拟机电源并打开其控制台。新所有者在被授予其他权限之前没有其他权限。" msgstr "每个所有者都可以控制虚拟机电源并打开其控制台。新所有者在被授予其他权限之前没有其他权限。"
#: instances/templates/instances/settings_tab.html:676 #: instances/templates/instances/settings_tab.html:683
msgid "Edit rights" msgid "Edit rights"
msgstr "编辑权限" msgstr "编辑权限"
#: instances/templates/instances/settings_tab.html:685 #: instances/templates/instances/settings_tab.html:692
msgid "The VM has no owner: only administrators can use it." msgid "The VM has no owner: only administrators can use it."
msgstr "该虚拟机没有所有者:只有管理员可以使用。" msgstr "该虚拟机没有所有者:只有管理员可以使用。"
#: instances/templates/instances/settings_tab.html:692 #: instances/templates/instances/settings_tab.html:699
msgid "Console settings" msgid "Console settings"
msgstr "控制台设置" msgstr "控制台设置"
#: instances/templates/instances/settings_tab.html:694 #: instances/templates/instances/settings_tab.html:701
msgid "" msgid ""
"The running console keeps its current settings; changes here apply after the " "The running console keeps its current settings; changes here apply after the "
"VM is shut down and started." "VM is shut down and started."
msgstr "运行中的控制台保持当前设置;此处的更改在虚拟机关机并重新启动后生效。" msgstr "运行中的控制台保持当前设置;此处的更改在虚拟机关机并重新启动后生效。"
#: instances/templates/instances/settings_tab.html:701 #: instances/templates/instances/settings_tab.html:708
msgid "The settings below apply to a VNC console." msgid "The settings below apply to a VNC console."
msgstr "以下设置适用于 VNC 控制台。" msgstr "以下设置适用于 VNC 控制台。"
#: instances/templates/instances/settings_tab.html:703 #: instances/templates/instances/settings_tab.html:710
msgid "The VNC settings appear once the console type VNC is saved." msgid "The VNC settings appear once the console type VNC is saved."
msgstr "保存控制台类型为 VNC 后,将显示 VNC 设置。" msgstr "保存控制台类型为 VNC 后,将显示 VNC 设置。"
#: instances/templates/instances/settings_tab.html:711 #: instances/templates/instances/settings_tab.html:718
msgid "VNC connection" msgid "VNC connection"
msgstr "VNC 连接" msgstr "VNC 连接"
#: instances/templates/instances/settings_tab.html:716 #: instances/templates/instances/settings_tab.html:723
msgid "Only administrators can change this." msgid "Only administrators can change this."
msgstr "只有管理员可以更改此项。" msgstr "只有管理员可以更改此项。"
#: instances/templates/instances/settings_tab.html:716 #: instances/templates/instances/settings_tab.html:723
msgid "Beyond localhost the console is reachable from the network." msgid "Beyond localhost the console is reachable from the network."
msgstr "监听 localhost 以外的地址时,可从网络访问控制台。" msgstr "监听 localhost 以外的地址时,可从网络访问控制台。"
#: instances/templates/instances/settings_tab.html:727 #: instances/templates/instances/settings_tab.html:734
msgid "VNC password" msgid "VNC password"
msgstr "VNC 密码" msgstr "VNC 密码"
#: instances/templates/instances/settings_tab.html:730 #: instances/templates/instances/settings_tab.html:737
msgid "A password is set." msgid "A password is set."
msgstr "已设置密码。" msgstr "已设置密码。"
#: instances/templates/instances/settings_tab.html:730 #: instances/templates/instances/settings_tab.html:737
msgid "No password is set." msgid "No password is set."
msgstr "未设置密码。" msgstr "未设置密码。"
#: instances/templates/instances/settings_tab.html:740 #: instances/templates/instances/settings_tab.html:747
msgid "" msgid ""
"Up to 8 characters (an accented letter counts as two), used with \"Set a new " "Up to 8 characters (an accented letter counts as two), used with \"Set a new "
"one\"." "one\"."
msgstr "最多 8 个字符(带重音的字母计为两个),用于“设置新密码”。" msgstr "最多 8 个字符(带重音的字母计为两个),用于“设置新密码”。"
#: instances/templates/instances/settings_tab.html:747 #: instances/templates/instances/settings_tab.html:754
msgid "Save console settings" msgid "Save console settings"
msgstr "保存控制台设置" msgstr "保存控制台设置"
#: instances/templates/instances/settings_tab.html:756 #: instances/templates/instances/settings_tab.html:763
msgid "Create a clone" msgid "Create a clone"
msgstr "创建克隆" msgstr "创建克隆"
#: instances/templates/instances/settings_tab.html:757 #: instances/templates/instances/settings_tab.html:764
#, python-format #, python-format
msgid "Source VM: %(name)s" msgid "Source VM: %(name)s"
msgstr "源虚拟机:%(name)s" msgstr "源虚拟机:%(name)s"
#: instances/templates/instances/settings_tab.html:759 #: instances/templates/instances/settings_tab.html:766
msgid "" msgid ""
"The clone gets a new, empty TPM: keys in this VM's TPM, such as BitLocker's, " "The clone gets a new, empty TPM: keys in this VM's TPM, such as BitLocker's, "
"do not come along." "do not come along."
msgstr "克隆将获得一个新的空 TPM:此虚拟机 TPM 中的密钥(例如 BitLocker 的密钥)不会被带过去。" msgstr "克隆将获得一个新的空 TPM:此虚拟机 TPM 中的密钥(例如 BitLocker 的密钥)不会被带过去。"
#: instances/templates/instances/settings_tab.html:764 #: instances/templates/instances/settings_tab.html:771
#: instances/templates/instances/settings_tab.html:777 #: instances/templates/instances/settings_tab.html:784
#: instances/templates/instances/settings_tab.html:780 #: instances/templates/instances/settings_tab.html:787
msgid "Clone name" msgid "Clone name"
msgstr "克隆名称" msgstr "克隆名称"
#: instances/templates/instances/settings_tab.html:772 #: instances/templates/instances/settings_tab.html:779
#: instances/templates/instances/settings_tab.html:804 #: instances/templates/instances/settings_tab.html:811
msgid "Guess" msgid "Guess"
msgstr "推测" msgstr "推测"
#: instances/templates/instances/settings_tab.html:775 #: instances/templates/instances/settings_tab.html:782
msgid "The DHCP file has no free name to suggest." msgid "The DHCP file has no free name to suggest."
msgstr "DHCP 文件中没有可建议的空闲名称。" msgstr "DHCP 文件中没有可建议的空闲名称。"
#: instances/templates/instances/settings_tab.html:778 #: instances/templates/instances/settings_tab.html:785
msgid "Automatic" msgid "Automatic"
msgstr "自动" msgstr "自动"
#: instances/templates/instances/settings_tab.html:798 #: instances/templates/instances/settings_tab.html:805
msgid "New MAC address" msgid "New MAC address"
msgstr "新 MAC 地址" msgstr "新 MAC 地址"
#: instances/templates/instances/settings_tab.html:801 #: instances/templates/instances/settings_tab.html:808
msgid "Random" msgid "Random"
msgstr "随机" msgstr "随机"
#: instances/templates/instances/settings_tab.html:819 #: instances/templates/instances/settings_tab.html:826
#, python-format #, python-format
msgid "%(pool)s pool" msgid "%(pool)s pool"
msgstr "%(pool)s 存储池" msgstr "%(pool)s 存储池"
#: instances/templates/instances/settings_tab.html:820 #: instances/templates/instances/settings_tab.html:827
msgid "New volume name" msgid "New volume name"
msgstr "新卷名称" msgstr "新卷名称"
#: instances/templates/instances/settings_tab.html:826 #: instances/templates/instances/settings_tab.html:833
msgid "Preallocate qcow2 metadata" msgid "Preallocate qcow2 metadata"
msgstr "预分配 qcow2 元数据" msgstr "预分配 qcow2 元数据"
#: instances/templates/instances/settings_tab.html:831 #: instances/templates/instances/settings_tab.html:838
msgid "The VM has no disk to copy." msgid "The VM has no disk to copy."
msgstr "该虚拟机没有可复制的磁盘。" msgstr "该虚拟机没有可复制的磁盘。"
#: instances/templates/instances/settings_tab.html:850 #: instances/templates/instances/settings_tab.html:857
msgid "The VM's size to start from; the quota counts the larger of the two." msgid "The VM's size to start from; the quota counts the larger of the two."
msgstr "以虚拟机的大小作为起点;配额按两者中较大的计算。" msgstr "以虚拟机的大小作为起点;配额按两者中较大的计算。"
#: instances/templates/instances/settings_tab.html:853 #: instances/templates/instances/settings_tab.html:860
msgid "Start the clone when it is made" msgid "Start the clone when it is made"
msgstr "创建后启动克隆" msgstr "创建后启动克隆"
#: instances/templates/instances/settings_tab.html:857 #: instances/templates/instances/settings_tab.html:864
msgid "Optional details" msgid "Optional details"
msgstr "可选详情" msgstr "可选详情"
#: instances/templates/instances/settings_tab.html:858 #: instances/templates/instances/settings_tab.html:865
#: instances/templates/instances/settings_tab.html:888 #: instances/templates/instances/settings_tab.html:895
msgid "Title" msgid "Title"
msgstr "标题" msgstr "标题"
#: instances/templates/instances/settings_tab.html:865 #: instances/templates/instances/settings_tab.html:872
msgid "" msgid ""
"The clone gets none of the VM's host devices: one VM holds a device of the " "The clone gets none of the VM's host devices: one VM holds a device of the "
"host." "host."
msgstr "克隆不会获得虚拟机的任何主机设备:一个主机设备只能由一台虚拟机持有。" msgstr "克隆不会获得虚拟机的任何主机设备:一个主机设备只能由一台虚拟机持有。"
#: instances/templates/instances/settings_tab.html:868 #: instances/templates/instances/settings_tab.html:875
msgid "Cloning runs as a background job." msgid "Cloning runs as a background job."
msgstr "克隆作为后台任务运行。" msgstr "克隆作为后台任务运行。"
#: instances/templates/instances/settings_tab.html:885 #: instances/templates/instances/settings_tab.html:892
msgid "VM details" msgid "VM details"
msgstr "虚拟机详情" msgstr "虚拟机详情"
#: instances/templates/instances/settings_tab.html:904 #: instances/templates/instances/settings_tab.html:911
msgid "Use as a template" msgid "Use as a template"
msgstr "用作模板" msgstr "用作模板"
#: instances/templates/instances/settings_tab.html:906 #: instances/templates/instances/settings_tab.html:913
msgid "" msgid ""
"A template is a VM to clone: it is not counted in quotas and cannot be " "A template is a VM to clone: it is not counted in quotas and cannot be "
"started." "started."
msgstr "模板是用于克隆的虚拟机:不计入配额,且无法启动。" msgstr "模板是用于克隆的虚拟机:不计入配额,且无法启动。"
#: instances/templates/instances/settings_tab.html:907 #: instances/templates/instances/settings_tab.html:914
msgid "Only administrators and staff can change this." msgid "Only administrators and staff can change this."
msgstr "只有管理员和工作人员可以更改此项。" msgstr "只有管理员和工作人员可以更改此项。"
#: instances/templates/instances/settings_tab.html:914 #: instances/templates/instances/settings_tab.html:921
msgid "Devices the guest sees" msgid "Devices the guest sees"
msgstr "客户机看到的设备" msgstr "客户机看到的设备"
#: instances/templates/instances/settings_tab.html:915 #: instances/templates/instances/settings_tab.html:922
msgid "Changes apply from the next start; the guest agent's at once." msgid "Changes apply from the next start; the guest agent's at once."
msgstr "更改在下次启动时生效;客户机代理的更改立即生效。" msgstr "更改在下次启动时生效;客户机代理的更改立即生效。"
#: instances/templates/instances/settings_tab.html:924 #: instances/templates/instances/settings_tab.html:931
msgid "The graphics device the guest sees." msgid "The graphics device the guest sees."
msgstr "客户机看到的图形设备。" msgstr "客户机看到的图形设备。"
#: instances/templates/instances/settings_tab.html:927 #: instances/templates/instances/settings_tab.html:934
msgid "Virtio RNG" msgid "Virtio RNG"
msgstr "Virtio RNG" msgstr "Virtio RNG"
#: instances/templates/instances/settings_tab.html:932 #: instances/templates/instances/settings_tab.html:939
msgid "The VM has its own RNG device: change it in the XML editor." msgid "The VM has its own RNG device: change it in the XML editor."
msgstr "该虚拟机有自定义的 RNG 设备:请在 XML 编辑器中更改。" msgstr "该虚拟机有自定义的 RNG 设备:请在 XML 编辑器中更改。"
#: instances/templates/instances/settings_tab.html:932 #: instances/templates/instances/settings_tab.html:939
msgid "" msgid ""
"Feeds the guest's entropy from the host, so a new VM does not wait for it at " "Feeds the guest's entropy from the host, so a new VM does not wait for it at "
"boot." "boot."
msgstr "从主机为客户机提供熵,新虚拟机启动时无需等待。" msgstr "从主机为客户机提供熵,新虚拟机启动时无需等待。"
#: instances/templates/instances/settings_tab.html:941 #: instances/templates/instances/settings_tab.html:948
msgid "The VM has its own TPM: change it in the XML editor." msgid "The VM has its own TPM: change it in the XML editor."
msgstr "该虚拟机有自定义的 TPM:请在 XML 编辑器中更改。" msgstr "该虚拟机有自定义的 TPM:请在 XML 编辑器中更改。"
#: instances/templates/instances/settings_tab.html:942 #: instances/templates/instances/settings_tab.html:949
msgid "This host offers no TPM 2.0: install swtpm on it." msgid "This host offers no TPM 2.0: install swtpm on it."
msgstr "此主机不提供 TPM 2.0:请在其上安装 swtpm。" msgstr "此主机不提供 TPM 2.0:请在其上安装 swtpm。"
#: instances/templates/instances/settings_tab.html:943 #: instances/templates/instances/settings_tab.html:950
msgid "" msgid ""
"Turned off, its state stays on the host until the VM is destroyed; turned on " "Turned off, its state stays on the host until the VM is destroyed; turned on "
"again, it is back." "again, it is back."
msgstr "关闭后,其状态保留在主机上,直到虚拟机被销毁;再次开启时会恢复。" msgstr "关闭后,其状态保留在主机上,直到虚拟机被销毁;再次开启时会恢复。"
#: instances/templates/instances/settings_tab.html:944 #: instances/templates/instances/settings_tab.html:951
msgid "Windows 11 needs it, with UEFI Secure Boot." msgid "Windows 11 needs it, with UEFI Secure Boot."
msgstr "Windows 11 需要它,并需 UEFI 安全启动。" msgstr "Windows 11 需要它,并需 UEFI 安全启动。"
#: instances/templates/instances/settings_tab.html:953 #: instances/templates/instances/settings_tab.html:960
msgid "The channel to the agent in the guest: a running VM gets it at once." msgid "The channel to the agent in the guest: a running VM gets it at once."
msgstr "通往客户机内代理的通道:运行中的虚拟机会立即获得。" msgstr "通往客户机内代理的通道:运行中的虚拟机会立即获得。"
#: instances/templates/instances/settings_tab.html:954 #: instances/templates/instances/settings_tab.html:961
msgid "VM not running" msgid "VM not running"
msgstr "虚拟机未运行" msgstr "虚拟机未运行"
#: instances/templates/instances/settings_tab.html:955 #: instances/templates/instances/settings_tab.html:962
msgid "No channel" msgid "No channel"
msgstr "无通道" msgstr "无通道"
#: instances/templates/instances/settings_tab.html:957 #: instances/templates/instances/settings_tab.html:964
msgid "Not connected: is the agent installed and running in the guest?" msgid "Not connected: is the agent installed and running in the guest?"
msgstr "未连接:客户机中是否已安装并运行代理?" msgstr "未连接:客户机中是否已安装并运行代理?"
#: instances/templates/instances/settings_tab.html:962 #: instances/templates/instances/settings_tab.html:969
msgid "When the guest crashes" msgid "When the guest crashes"
msgstr "客户机崩溃时" msgstr "客户机崩溃时"
#: instances/templates/instances/settings_tab.html:967 #: instances/templates/instances/settings_tab.html:974
msgid "Restart" msgid "Restart"
msgstr "重启" msgstr "重启"
#: instances/templates/instances/settings_tab.html:969 #: instances/templates/instances/settings_tab.html:976
#: interfaces/templates/interface.html:16 networks/templates/network.html:16 #: interfaces/templates/interface.html:16 networks/templates/network.html:16
#: storages/templates/storage.html:18 #: storages/templates/storage.html:18
msgid "Stop" msgid "Stop"
msgstr "停止" msgstr "停止"
#: instances/templates/instances/settings_tab.html:971 #: instances/templates/instances/settings_tab.html:978
msgid "" msgid ""
"For a crash the guest reports, not a hang. Stop keeps a VM that crashes again" "For a crash the guest reports, not a hang. Stop keeps a VM that crashes again"
" and again down for a look. From the next start." " and again down for a look. From the next start."
msgstr "适用于客户机报告的崩溃,而非挂起。“停止”会让反复崩溃的虚拟机保持停止状态以便排查。下次启动时生效。" msgstr "适用于客户机报告的崩溃,而非挂起。“停止”会让反复崩溃的虚拟机保持停止状态以便排查。下次启动时生效。"
#: instances/templates/instances/settings_tab.html:973 #: instances/templates/instances/settings_tab.html:980
#, python-format #, python-format
msgid "%(action)s: change it in the XML editor." msgid "%(action)s: change it in the XML editor."
msgstr "%(action)s:请在 XML 编辑器中更改。" msgstr "%(action)s:请在 XML 编辑器中更改。"

View file

@ -52,6 +52,27 @@
height: 350px; height: 350px;
} }
/* the VM's XML editor: as tall as most of the window, framed like a form field */
.xml-editor .ace_editor {
height: max(350px, 65vh);
border: var(--bs-border-width) solid var(--bs-border-color);
border-radius: var(--bs-border-radius);
}
/* the review dialog's diff: added and removed lines on a tint, a hunk starts with its line number */
.xml-diff > div {
padding: 0 .5rem;
}
.xml-diff .diff-add {
background-color: rgba(var(--bs-success-rgb), .12);
}
.xml-diff .diff-del {
background-color: rgba(var(--bs-danger-rgb), .12);
}
.xml-diff .diff-hunk:not(:first-child) {
margin-top: .75rem;
}
/* headers of sortable tables (static/js/sort_tables.js): the sorted one shows /* headers of sortable tables (static/js/sort_tables.js): the sorted one shows
its direction, up for ascending */ its direction, up for ascending */
th[role=columnheader]:not([data-sort-method="none"]) { th[role=columnheader]:not([data-sort-method="none"]) {

View file

@ -60,11 +60,12 @@
save.classList.toggle("d-none", lines.length === 0); save.classList.toggle("d-none", lines.length === 0);
save.disabled = false; save.disabled = false;
diff.replaceChildren(); diff.replaceChildren();
// skip the two file header lines; + added, - removed, @@ where // skip the two file header lines; + added, - removed, @@ where: "@@ -1,9 +1,9 @@" shows as "Line 1"
lines.slice(2).forEach(function (line) { lines.slice(2).forEach(function (line) {
var row = document.createElement("div"); var row = document.createElement("div");
row.textContent = line; var hunk = line.match(/^@@ -\d+(?:,\d+)? \+(\d+)/);
row.className = {"+": "text-success", "-": "text-danger", "@": "text-body-secondary"}[line[0]] || ""; row.textContent = hunk ? diff.dataset.line.replace("__line__", hunk[1]) : line;
row.className = hunk ? "diff-hunk small text-body-secondary" : {"+": "diff-add text-success", "-": "diff-del text-danger"}[line[0]] || "";
diff.appendChild(row); diff.appendChild(row);
}); });
diff.classList.toggle("d-none", lines.length === 0); diff.classList.toggle("d-none", lines.length === 0);