mirror of
https://github.com/retspen/webvirtcloud
synced 2026-12-03 17:36:05 +00:00
feat(accounts): a password change card that continues the sign-in
The forced first-login change was a plain settings form under a menu whose every link led back to it, asked for an "Old password" the user did not know was the temporary one, and listed Django's four rules as long sentences, with their refusals under the confirmation field. The page is now a card like the sign-in page: "Set your own password", signed in as whom and why, the temporary password named as such, and no menu but a Log out link. A rule list under the two new entries ticks what the browser can check (8 characters, not only digits, both entries match) and says the rest is checked on save; the server's refusals join that list. The eye button shows both new entries. A change chosen from the profile uses the same card with the menu and a Cancel link. base.html gets a navbar block for it. Turkish and Chinese texts.
This commit is contained in:
parent
40e3a7dfdd
commit
9809e5b79a
10 changed files with 546 additions and 135 deletions
|
|
@ -1,39 +1,93 @@
|
|||
{% extends "base.html" %}
|
||||
{% load django_bootstrap5 %}
|
||||
{% load static %}
|
||||
{% load i18n %}
|
||||
|
||||
{% block title %}{% trans "Change password" %}{% endblock title %}
|
||||
|
||||
{% block page_heading %}{% trans "Change password" %}{% endblock page_heading %}
|
||||
{# a user who must change it (the first admin, a new or reset account) can go nowhere else first #}
|
||||
{% block navbar %}{% if not must_change %}{{ block.super }}{% endif %}{% endblock navbar %}
|
||||
{% block page_header %}{% endblock page_header %}{# the card has its own heading #}
|
||||
|
||||
{% block content %}
|
||||
{# a user changes their own password; one who must (a new or reset account) cannot go elsewhere first #}
|
||||
<form id="password-change" method="post">
|
||||
{% csrf_token %}
|
||||
{% bootstrap_form_errors form type="non_fields" %}
|
||||
<div class="row justify-content-center{% if must_change %} pt-5{% endif %}">
|
||||
<div class="col-sm-9 col-md-7 col-lg-6">
|
||||
<div class="card shadow-sm">
|
||||
<div class="card-body p-4 p-sm-5">
|
||||
<div class="text-center mb-4">
|
||||
<div class="d-inline-block rounded-3 text-bg-primary fs-2 lh-1 p-3 mb-3"><i class="bi bi-key" aria-hidden="true"></i></div>
|
||||
<h1 class="h3 fw-bold mb-1">{% if must_change %}{% trans "Set your own password" %}{% else %}{% trans "Change password" %}{% endif %}</h1>
|
||||
<p class="text-body-secondary small mb-0">
|
||||
{% if must_change %}
|
||||
{% blocktrans with name=request.user.username %}Signed in as {{ name }} with a temporary password. Replace it to continue.{% endblocktrans %}
|
||||
{% else %}
|
||||
{% blocktrans with name=request.user.username %}For {{ name }}. You stay signed in here; your other sessions end.{% endblocktrans %}
|
||||
{% endif %}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<section class="form-section">
|
||||
<div class="row g-3">
|
||||
<div class="col-lg-3">
|
||||
<h2 class="h6 fw-semibold mb-1 text-break">{{ request.user.username }}</h2>
|
||||
<p class="small text-body-secondary mb-0">
|
||||
{% if must_change %}{% trans "Choose a new password before you go on." %}{% else %}{% trans "You stay signed in here; your other sessions end." %}{% endif %}
|
||||
</p>
|
||||
</div>
|
||||
<div class="col-lg-9 form-section-fields">
|
||||
<div class="row g-3">
|
||||
<div class="col-sm-6">{% bootstrap_field form.old_password %}</div>
|
||||
<div class="w-100 m-0"></div>
|
||||
<div class="col-sm-6">{% bootstrap_field form.new_password1 %}</div>
|
||||
<div class="col-sm-6">{% bootstrap_field form.new_password2 show_help=False %}</div>
|
||||
{% for error in form.non_field_errors %}
|
||||
<div class="alert alert-danger mb-4" role="alert">{{ error }}</div>
|
||||
{% endfor %}
|
||||
|
||||
<form id="password-change" method="post" novalidate>
|
||||
{% csrf_token %}
|
||||
{# focus: the first entry with an error; a refused new password is typed again from the first entry #}
|
||||
{% with old_bad=form.old_password.errors new_bad=form.new_password1.errors again_bad=form.new_password2.errors %}
|
||||
<div class="mb-4">
|
||||
<label class="form-label small fw-medium" for="id_old_password">{% if must_change %}{% trans "Temporary password" %}{% else %}{% trans "Current password" %}{% endif %}</label>
|
||||
<input type="password" id="id_old_password" name="old_password" class="form-control{% if old_bad %} is-invalid{% endif %}"
|
||||
autocomplete="current-password" required{% if old_bad %} aria-invalid="true" aria-describedby="old-password-error"{% elif must_change %} aria-describedby="old-password-help"{% endif %}{% if not form.is_bound or old_bad %} autofocus{% endif %}>
|
||||
{% if old_bad %}<div id="old-password-error" class="invalid-feedback">{{ old_bad|join:" " }}</div>{% endif %}
|
||||
{% if must_change %}<div id="old-password-help" class="form-text">{% trans "The one you just signed in with." %}</div>{% endif %}
|
||||
</div>
|
||||
|
||||
<div class="mb-4">
|
||||
<label class="form-label small fw-medium" for="id_new_password1">{% trans "New password" %}</label>
|
||||
<div class="input-group has-validation">
|
||||
<input type="password" id="id_new_password1" name="new_password1" class="form-control{% if new_bad or again_bad %} is-invalid{% endif %}"
|
||||
autocomplete="new-password" aria-describedby="{% if new_bad %}new-password-error {% endif %}password-rules" required{% if new_bad or again_bad %} aria-invalid="true"{% if not old_bad %} autofocus{% endif %}{% endif %}>
|
||||
<button class="btn btn-outline-secondary" type="button" id="toggle-new-password" aria-label="{% trans 'Toggle password visibility' %}" aria-pressed="false"><i class="bi bi-eye"></i></button>
|
||||
{% if new_bad %}<div id="new-password-error" class="invalid-feedback">{{ new_bad|join:" " }}</div>{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="mb-3">
|
||||
<label class="form-label small fw-medium" for="id_new_password2">{% trans "New password again" %}</label>
|
||||
<input type="password" id="id_new_password2" name="new_password2" class="form-control{% if again_bad %} is-invalid{% endif %}"
|
||||
autocomplete="new-password" aria-describedby="password-rules" required{% if again_bad %} aria-invalid="true"{% endif %}>
|
||||
</div>
|
||||
|
||||
{# the rules the server checks; the first three are checked as you type, its refusals follow #}
|
||||
<ul id="password-rules" class="list-unstyled small mb-4" data-met="{% trans "met" %}" data-unmet="{% trans "not met" %}">
|
||||
<li class="d-flex" data-rule="length"><i class="bi bi-circle me-2" aria-hidden="true"></i><span>{% trans "8 characters or more" %} <span class="visually-hidden">{% trans "not met" %}</span></span></li>
|
||||
<li class="d-flex" data-rule="letters"><i class="bi bi-circle me-2" aria-hidden="true"></i><span>{% trans "Not only digits" %} <span class="visually-hidden">{% trans "not met" %}</span></span></li>
|
||||
<li class="d-flex" data-rule="match"><i class="bi bi-circle me-2" aria-hidden="true"></i><span>{% trans "Both entries match" %} <span class="visually-hidden">{% trans "not met" %}</span></span></li>
|
||||
<li class="d-flex text-body-secondary"><i class="bi bi-hourglass me-2" aria-hidden="true"></i><span>{% trans "Not like your name or e-mail, and not a common password: checked when you save" %}</span></li>
|
||||
{% for error in again_bad %}
|
||||
<li class="d-flex text-danger fw-medium"><i class="bi bi-x-circle-fill me-2" aria-hidden="true"></i><span>{{ error }}</span></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endwith %}
|
||||
|
||||
<button type="submit" class="btn btn-primary w-100 py-2">
|
||||
{% if must_change %}{% trans "Save and continue" %}{% else %}{% trans "Change password" %}{% endif %}
|
||||
</button>
|
||||
</form>
|
||||
|
||||
<div class="text-center small mt-4">
|
||||
{% if must_change %}
|
||||
<form method="post" action="{% url 'accounts:logout' %}" class="d-inline">{% csrf_token %}
|
||||
<button type="submit" class="btn btn-link btn-sm text-body-secondary">{% trans "Log out" %}</button>
|
||||
</form>
|
||||
{% else %}
|
||||
<a class="text-body-secondary" href="{% url 'accounts:profile' %}">{% trans "Cancel" %}</a>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<div class="form-section d-flex justify-content-end gap-2">
|
||||
{% if not must_change %}<a class="btn btn-outline-secondary" href="{% url 'accounts:profile' %}">{% trans "Cancel" %}</a>{% endif %}
|
||||
<button type="submit" class="btn btn-primary">{% trans "Change password" %}</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
{% endblock content %}
|
||||
|
||||
{% block script %}
|
||||
<script src="{% static 'js/password_change.js' %}"></script>
|
||||
{% endblock script %}
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
<div class="card shadow-sm">
|
||||
<div class="card-body p-4 p-sm-5">
|
||||
<div class="text-center mb-4">
|
||||
<div class="d-inline-block rounded-3 bg-primary text-white fs-2 lh-1 p-3 mb-3"><i class="bi bi-hdd-network"></i></div>
|
||||
<div class="d-inline-block rounded-3 text-bg-primary fs-2 lh-1 p-3 mb-3"><i class="bi bi-hdd-network"></i></div>
|
||||
<h1 class="h3 fw-bold mb-1">WebVirtCloud</h1>
|
||||
<p class="text-body-secondary small mb-0">{% trans "Virtualization management console" %}</p>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ class ChangePasswordPermissionTestCase(TestCase):
|
|||
self.assertContains(page, f'href="{reverse("accounts:profile")}">Cancel')
|
||||
UserAttributes.objects.create(user=user, must_change_password=True)
|
||||
page = self.client.get(reverse("accounts:change_password"))
|
||||
self.assertContains(page, "Choose a new password before you go on.")
|
||||
self.assertContains(page, "Replace it to continue.")
|
||||
self.assertNotContains(page, f'href="{reverse("accounts:profile")}">Cancel')
|
||||
|
||||
def test_a_user_without_a_local_password_cannot_change_it(self):
|
||||
|
|
|
|||
|
|
@ -59,6 +59,43 @@ class FirstLoginPasswordChangeTestCase(TestCase):
|
|||
response = self.client.get(reverse("instances:index"))
|
||||
self.assertEqual(response.status_code, 200)
|
||||
|
||||
def test_the_forced_form_has_no_menu_and_offers_sign_out(self):
|
||||
# every page but this one sends the user back here: no links that lead nowhere
|
||||
self.client.force_login(self.admin)
|
||||
response = self.client.get(reverse("accounts:change_password"))
|
||||
self.assertNotContains(response, f'href="{reverse("instances:index")}"')
|
||||
self.assertContains(response, f'action="{reverse("accounts:logout")}"')
|
||||
self.assertContains(response, "Temporary password")
|
||||
|
||||
def test_a_refused_new_password_shows_the_reasons_in_the_rules(self):
|
||||
self.client.force_login(self.admin)
|
||||
response = self.client.post(reverse("accounts:change_password"), {
|
||||
"old_password": GENERATED, "new_password1": "12345678", "new_password2": "12345678",
|
||||
})
|
||||
rules = response.content.decode().split('id="password-rules"')[1].split("</ul>")[0]
|
||||
self.assertIn("This password is entirely numeric.", rules)
|
||||
|
||||
def test_an_empty_first_new_entry_is_shown_and_focused(self):
|
||||
self.client.force_login(self.admin)
|
||||
response = self.client.post(reverse("accounts:change_password"), {
|
||||
"old_password": GENERATED, "new_password1": "", "new_password2": "A-new-strong-pass-456",
|
||||
})
|
||||
page = response.content.decode()
|
||||
self.assertIn('id="new-password-error"', page)
|
||||
first_entry = page.split('id="id_new_password1"')[1].split(">")[0]
|
||||
self.assertIn('aria-invalid="true"', first_entry)
|
||||
self.assertIn("autofocus", first_entry)
|
||||
|
||||
def test_a_chosen_change_keeps_the_menu_and_a_way_back(self):
|
||||
other = get_user_model().objects.create_superuser(
|
||||
username="otheradmin", email="otheradmin@example.com", password="Other-pass-789"
|
||||
)
|
||||
self.client.force_login(other)
|
||||
response = self.client.get(reverse("accounts:change_password"))
|
||||
self.assertContains(response, f'href="{reverse("instances:index")}"')
|
||||
self.assertContains(response, f'href="{reverse("accounts:profile")}"')
|
||||
self.assertContains(response, "Current password")
|
||||
|
||||
def test_user_with_another_password_is_not_forced(self):
|
||||
get_user_model().objects.create_superuser(
|
||||
username="otheradmin", email="otheradmin@example.com", password="Other-pass-789"
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -279,14 +279,6 @@ msgstr "Kullanıcıdan kaldır"
|
|||
msgid "No VMs."
|
||||
msgstr "Sanal makine yok."
|
||||
|
||||
#: accounts/templates/accounts/change_password_form.html:20
|
||||
msgid "Choose a new password before you go on."
|
||||
msgstr "Devam etmeden önce yeni bir parola seçin."
|
||||
|
||||
#: accounts/templates/accounts/change_password_form.html:20
|
||||
msgid "You stay signed in here; your other sessions end."
|
||||
msgstr "Burada oturumunuz açık kalır; diğer oturumlarınız kapanır."
|
||||
|
||||
#: accounts/templates/accounts/change_password_form.html:35
|
||||
#: accounts/templates/accounts/email_otp_form.html:25
|
||||
#: admin/templates/admin/group_form.html:73
|
||||
|
|
@ -693,8 +685,14 @@ msgid "Can view instances"
|
|||
msgstr "Sanal makineleri görebilir"
|
||||
|
||||
#: admin/forms.py:33
|
||||
msgid "Back up the VMs they may change into targets open to VM owners, restore those backups over the VM or as a new VM, and delete the backups they took, within their quotas"
|
||||
msgstr "Değiştirebildiği sanal makineleri sanal makine sahiplerine açık hedeflere yedekleme, bu yedekleri sanal makinenin üzerine ya da yeni bir sanal makine olarak geri yükleme ve kendi aldığı yedekleri silme; kotaları içinde"
|
||||
msgid ""
|
||||
"Back up the VMs they may change into targets open to VM owners, restore those"
|
||||
" backups over the VM or as a new VM, and delete the backups they took, within"
|
||||
" their quotas"
|
||||
msgstr ""
|
||||
"Değiştirebildiği sanal makineleri sanal makine sahiplerine açık hedeflere "
|
||||
"yedekleme, bu yedekleri sanal makinenin üzerine ya da yeni bir sanal makine "
|
||||
"olarak geri yükleme ve kendi aldığı yedekleri silme; kotaları içinde"
|
||||
|
||||
#: admin/forms.py:35
|
||||
msgid "Change their own password on their profile page"
|
||||
|
|
@ -2269,8 +2267,13 @@ msgid "encrypt migrations (TLS)"
|
|||
msgstr "taşımaları şifrele (TLS)"
|
||||
|
||||
#: computes/models.py:76
|
||||
msgid "A VM migrating between two hosts that both have this sends its memory and disks over TLS; each host needs QEMU's certificates in /etc/pki/qemu"
|
||||
msgstr "İki sunucuda da bu seçiliyse aralarında taşınan sanal makine, belleğini ve disklerini TLS ile gönderir; her sunucuda /etc/pki/qemu içinde QEMU sertifikaları gerekir"
|
||||
msgid ""
|
||||
"A VM migrating between two hosts that both have this sends its memory and "
|
||||
"disks over TLS; each host needs QEMU's certificates in /etc/pki/qemu"
|
||||
msgstr ""
|
||||
"İki sunucuda da bu seçiliyse aralarında taşınan sanal makine, belleğini ve "
|
||||
"disklerini TLS ile gönderir; her sunucuda /etc/pki/qemu içinde QEMU "
|
||||
"sertifikaları gerekir"
|
||||
|
||||
#: computes/models.py:81 computes/templates/computes/form.html:42
|
||||
msgid "gstfsd key"
|
||||
|
|
@ -2311,16 +2314,25 @@ msgstr "Bu sunucu zaten %(name)s olarak ekli"
|
|||
|
||||
#: computes/models.py:253
|
||||
#, python-format
|
||||
msgid "The panel cannot reach the host to tell that its VMs are there: %(error)s"
|
||||
msgstr "Panel sunucuya ulaşamadığı için sanal makinelerinin orada olduğunu doğrulayamıyor: %(error)s"
|
||||
msgid ""
|
||||
"The panel cannot reach the host to tell that its VMs are there: %(error)s"
|
||||
msgstr ""
|
||||
"Panel sunucuya ulaşamadığı için sanal makinelerinin orada olduğunu "
|
||||
"doğrulayamıyor: %(error)s"
|
||||
|
||||
#: computes/models.py:260
|
||||
msgid "The host its VMs are on is not known yet: change the connection when the panel has reached the host at its current one"
|
||||
msgstr "Sanal makinelerinin bulunduğu sunucu henüz bilinmiyor: bağlantıyı, panel sunucuya mevcut bağlantısından ulaştıktan sonra değiştirin"
|
||||
msgid ""
|
||||
"The host its VMs are on is not known yet: change the connection when the "
|
||||
"panel has reached the host at its current one"
|
||||
msgstr ""
|
||||
"Sanal makinelerinin bulunduğu sunucu henüz bilinmiyor: bağlantıyı, panel "
|
||||
"sunucuya mevcut bağlantısından ulaştıktan sonra değiştirin"
|
||||
|
||||
#: computes/models.py:263
|
||||
msgid "This is another host than the one its VMs are on: add it as a new host"
|
||||
msgstr "Bu, sanal makinelerinin bulunduğu sunucudan başka bir sunucu: yeni bir sunucu olarak ekleyin"
|
||||
msgstr ""
|
||||
"Bu, sanal makinelerinin bulunduğu sunucudan başka bir sunucu: yeni bir sunucu"
|
||||
" olarak ekleyin"
|
||||
|
||||
#: computes/reach.py:60
|
||||
msgid ""
|
||||
|
|
@ -4871,7 +4883,9 @@ msgstr "%(label)s: %(vcpu)s vCPU, %(memory)s MiB, yeni %(disk)s GiB disk"
|
|||
|
||||
#: instances/templates/create_presets.html:13
|
||||
msgid "A preset fills vCPUs, memory and a new disk of its size."
|
||||
msgstr "Hazır boyut; vCPU, bellek ve kendi boyutunda yeni bir disk alanlarını doldurur."
|
||||
msgstr ""
|
||||
"Hazır boyut; vCPU, bellek ve kendi boyutunda yeni bir disk alanlarını "
|
||||
"doldurur."
|
||||
|
||||
#: instances/templates/create_presets.html:15
|
||||
msgid "No flavors yet."
|
||||
|
|
@ -5159,8 +5173,12 @@ msgstr ""
|
|||
|
||||
#: instances/templates/instances/destroy_instance_form.html:13
|
||||
#: instances/templates/instances/destroy_tab.html:9
|
||||
msgid "This VM is protected: an administrator turns its protection off on the Settings tab first."
|
||||
msgstr "Bu sanal makine korumalı: önce bir yönetici Ayarlar sekmesinde korumasını kapatmalı."
|
||||
msgid ""
|
||||
"This VM is protected: an administrator turns its protection off on the "
|
||||
"Settings tab first."
|
||||
msgstr ""
|
||||
"Bu sanal makine korumalı: önce bir yönetici Ayarlar sekmesinde korumasını "
|
||||
"kapatmalı."
|
||||
|
||||
#: instances/templates/instances/destroy_instance_form.html:18
|
||||
msgid "What should happen to the files?"
|
||||
|
|
@ -6728,8 +6746,14 @@ msgid "Stop"
|
|||
msgstr "Durdur"
|
||||
|
||||
#: instances/templates/instances/settings_tab.html:1028
|
||||
msgid "A hang is noticed once the guest arms its watchdog (Linux: RuntimeWatchdogSec in systemd's system.conf). Stop keeps a VM that crashes again and again down for a look. From the next start."
|
||||
msgstr "Donma, konuk sistem watchdog'unu kurduğunda fark edilir (Linux: systemd'nin system.conf dosyasında RuntimeWatchdogSec). Durdur, tekrar tekrar çöken bir sanal makineyi incelemek için kapalı tutar. Sonraki başlatmadan itibaren."
|
||||
msgid ""
|
||||
"A hang is noticed once the guest arms its watchdog (Linux: RuntimeWatchdogSec"
|
||||
" in systemd's system.conf). Stop keeps a VM that crashes again and again down"
|
||||
" for a look. From the next start."
|
||||
msgstr ""
|
||||
"Donma, konuk sistem watchdog'unu kurduğunda fark edilir (Linux: systemd'nin "
|
||||
"system.conf dosyasında RuntimeWatchdogSec). Durdur, tekrar tekrar çöken bir "
|
||||
"sanal makineyi incelemek için kapalı tutar. Sonraki başlatmadan itibaren."
|
||||
|
||||
#: instances/templates/instances/settings_tab.html:1030
|
||||
#, python-format
|
||||
|
|
@ -7147,8 +7171,11 @@ msgstr ""
|
|||
|
||||
#: instances/views.py:274
|
||||
#, python-format
|
||||
msgid "Guest agents not read (a paused VM, no answer in time, or an error): %(n)s"
|
||||
msgstr "Okunamayan konuk ajanları (duraklatılmış sanal makine, zamanında yanıt yok ya da hata): %(n)s"
|
||||
msgid ""
|
||||
"Guest agents not read (a paused VM, no answer in time, or an error): %(n)s"
|
||||
msgstr ""
|
||||
"Okunamayan konuk ajanları (duraklatılmış sanal makine, zamanında yanıt yok ya"
|
||||
" da hata): %(n)s"
|
||||
|
||||
#: instances/views.py:276
|
||||
#, python-format
|
||||
|
|
@ -9772,8 +9799,12 @@ msgid "Volume name"
|
|||
msgstr "Birim adı"
|
||||
|
||||
#: storages/templates/create_stg_vol_block.html:98
|
||||
msgid "Empty: the file's name in the address. An ISO keeps its .iso ending, or VMs do not list it as media."
|
||||
msgstr "Boş bırakılırsa: adresteki dosyanın adı. ISO dosyasının adı .iso ile bitmeli; yoksa sanal makineler onu ortam olarak listelemez."
|
||||
msgid ""
|
||||
"Empty: the file's name in the address. An ISO keeps its .iso ending, or VMs "
|
||||
"do not list it as media."
|
||||
msgstr ""
|
||||
"Boş bırakılırsa: adresteki dosyanın adı. ISO dosyasının adı .iso ile bitmeli;"
|
||||
" yoksa sanal makineler onu ortam olarak listelemez."
|
||||
|
||||
#: storages/templates/create_stg_vol_block.html:103
|
||||
#: storages/templates/storage.html:176
|
||||
|
|
@ -10486,8 +10517,12 @@ msgid ""
|
|||
msgstr "Ayrıca yedeği olan en yeni N ayın her birinin en yeni yedeği; 0: yok"
|
||||
|
||||
#: vmbackups/forms.py:102
|
||||
msgid "1: every backup is full. Above 1, the backups between copy only what changed (running VMs with qcow2 disks)."
|
||||
msgstr "1: her yedek tamdır. 1'den büyükse aradaki yedekler yalnızca değişenleri kopyalar (qcow2 diskli, çalışan sanal makineler)."
|
||||
msgid ""
|
||||
"1: every backup is full. Above 1, the backups between copy only what changed "
|
||||
"(running VMs with qcow2 disks)."
|
||||
msgstr ""
|
||||
"1: her yedek tamdır. 1'den büyükse aradaki yedekler yalnızca değişenleri "
|
||||
"kopyalar (qcow2 diskli, çalışan sanal makineler)."
|
||||
|
||||
#: vmbackups/forms.py:119 vmbackups/jobs.py:115
|
||||
#, python-format
|
||||
|
|
@ -10767,25 +10802,38 @@ msgstr "Üzerine yedek geri yüklemek için sanal makineyi kapatın"
|
|||
|
||||
#: vmbackups/jobs.py:1177
|
||||
msgid "The VM has snapshots; delete them to restore a backup over it"
|
||||
msgstr "Sanal makinenin anlık görüntüleri var; üzerine yedek geri yüklemek için onları silin"
|
||||
msgstr ""
|
||||
"Sanal makinenin anlık görüntüleri var; üzerine yedek geri yüklemek için "
|
||||
"onları silin"
|
||||
|
||||
#: vmbackups/jobs.py:1182
|
||||
#, python-format
|
||||
msgid "The VM's disks (%(now)s) are not the backup's (%(then)s); restore it as a new VM or one disk"
|
||||
msgstr "Sanal makinenin diskleri (%(now)s) yedeğinkiler (%(then)s) değil; yeni bir sanal makine olarak ya da tek disk olarak geri yükleyin"
|
||||
msgid ""
|
||||
"The VM's disks (%(now)s) are not the backup's (%(then)s); restore it as a new"
|
||||
" VM or one disk"
|
||||
msgstr ""
|
||||
"Sanal makinenin diskleri (%(now)s) yedeğinkiler (%(then)s) değil; yeni bir "
|
||||
"sanal makine olarak ya da tek disk olarak geri yükleyin"
|
||||
|
||||
#: vmbackups/jobs.py:1186
|
||||
#, python-format
|
||||
msgid "The backup's disk %(dev)s is larger than the VM's now; restore it as a new VM"
|
||||
msgstr "Yedeğin %(dev)s diski sanal makinenin şimdiki diskinden büyük; yeni bir sanal makine olarak geri yükleyin"
|
||||
msgid ""
|
||||
"The backup's disk %(dev)s is larger than the VM's now; restore it as a new VM"
|
||||
msgstr ""
|
||||
"Yedeğin %(dev)s diski sanal makinenin şimdiki diskinden büyük; yeni bir sanal"
|
||||
" makine olarak geri yükleyin"
|
||||
|
||||
#: vmbackups/jobs.py:1189
|
||||
msgid "The VM's UEFI firmware changed since the backup; restore it as a new VM"
|
||||
msgstr "Sanal makinenin UEFI donanım yazılımı yedekten sonra değişti; yeni bir sanal makine olarak geri yükleyin"
|
||||
msgstr ""
|
||||
"Sanal makinenin UEFI donanım yazılımı yedekten sonra değişti; yeni bir sanal "
|
||||
"makine olarak geri yükleyin"
|
||||
|
||||
#: vmbackups/jobs.py:1191
|
||||
msgid "The VM's TPM changed since the backup; restore it as a new VM"
|
||||
msgstr "Sanal makinenin TPM'i yedekten sonra değişti; yeni bir sanal makine olarak geri yükleyin"
|
||||
msgstr ""
|
||||
"Sanal makinenin TPM'i yedekten sonra değişti; yeni bir sanal makine olarak "
|
||||
"geri yükleyin"
|
||||
|
||||
#: vmbackups/jobs.py:1222
|
||||
msgid "Restore backup over the VM"
|
||||
|
|
@ -10793,7 +10841,9 @@ msgstr "Yedeği sanal makinenin üzerine geri yükle"
|
|||
|
||||
#: vmbackups/jobs.py:1235
|
||||
msgid "The backup's VM is no longer in the panel; restore it as a new VM"
|
||||
msgstr "Yedeğin sanal makinesi artık panelde yok; yeni bir sanal makine olarak geri yükleyin"
|
||||
msgstr ""
|
||||
"Yedeğin sanal makinesi artık panelde yok; yeni bir sanal makine olarak geri "
|
||||
"yükleyin"
|
||||
|
||||
#: vmbackups/jobs.py:1266
|
||||
msgid "The VM's disks changed after the job was queued"
|
||||
|
|
@ -10801,19 +10851,28 @@ msgstr "İş kuyruğa alındıktan sonra sanal makinenin diskleri değişti"
|
|||
|
||||
#: vmbackups/jobs.py:1300
|
||||
msgid "The VM changed while its backup was copied; it keeps its disks"
|
||||
msgstr "Yedeği kopyalanırken sanal makine değişti; sanal makine disklerini koruyor"
|
||||
msgstr ""
|
||||
"Yedeği kopyalanırken sanal makine değişti; sanal makine disklerini koruyor"
|
||||
|
||||
#: vmbackups/jobs.py:1303
|
||||
msgid "Replacing the VM's disks"
|
||||
msgstr "Sanal makinenin diskleri değiştiriliyor"
|
||||
|
||||
#: vmbackups/jobs.py:1363
|
||||
msgid "The VM moved to another compute; check its disks and the restore's copies, then resolve this job"
|
||||
msgstr "Sanal makine başka bir sunucuya taşındı; disklerini ve geri yüklemenin kopyalarını denetleyin, sonra bu işi çözümleyin"
|
||||
msgid ""
|
||||
"The VM moved to another compute; check its disks and the restore's copies, "
|
||||
"then resolve this job"
|
||||
msgstr ""
|
||||
"Sanal makine başka bir sunucuya taşındı; disklerini ve geri yüklemenin "
|
||||
"kopyalarını denetleyin, sonra bu işi çözümleyin"
|
||||
|
||||
#: vmbackups/jobs.py:1376
|
||||
msgid "The VM was started while its disks were being replaced; check its disks, then resolve this job"
|
||||
msgstr "Sanal makinenin diskleri değiştirilirken sanal makine başlatıldı; disklerini denetleyin, sonra bu işi çözümleyin"
|
||||
msgid ""
|
||||
"The VM was started while its disks were being replaced; check its disks, then"
|
||||
" resolve this job"
|
||||
msgstr ""
|
||||
"Sanal makinenin diskleri değiştirilirken sanal makine başlatıldı; disklerini "
|
||||
"denetleyin, sonra bu işi çözümleyin"
|
||||
|
||||
#: vmbackups/jobs.py:1394
|
||||
msgid "The VM keeps its disks; the restore's copies were removed"
|
||||
|
|
@ -10955,8 +11014,12 @@ msgstr "Doğrula"
|
|||
|
||||
#: vmbackups/templates/vmbackups/delete_form.html:16
|
||||
#, python-format
|
||||
msgid "Delete the backup of %(vm)s taken %(time)s? Its files are removed from %(target)s; this cannot be undone."
|
||||
msgstr "%(vm)s sanal makinesinin %(time)s tarihli yedeği silinsin mi? Dosyaları %(target)s hedefinden kaldırılır; bu geri alınamaz."
|
||||
msgid ""
|
||||
"Delete the backup of %(vm)s taken %(time)s? Its files are removed from "
|
||||
"%(target)s; this cannot be undone."
|
||||
msgstr ""
|
||||
"%(vm)s sanal makinesinin %(time)s tarihli yedeği silinsin mi? Dosyaları "
|
||||
"%(target)s hedefinden kaldırılır; bu geri alınamaz."
|
||||
|
||||
#: vmbackups/templates/vmbackups/index.html:13
|
||||
#: vmbackups/templates/vmbackups/target.html:7
|
||||
|
|
@ -11088,8 +11151,12 @@ msgid "No backup schedule yet."
|
|||
msgstr "Henüz yedekleme zamanlaması yok."
|
||||
|
||||
#: vmbackups/templates/vmbackups/policies.html:36
|
||||
msgid "A schedule backs chosen VMs, or every VM of a compute, up every day and keeps the newest."
|
||||
msgstr "Bir zamanlama, seçilen sanal makineleri ya da bir sunucunun bütün sanal makinelerini her gün yedekler ve en yenilerini tutar."
|
||||
msgid ""
|
||||
"A schedule backs chosen VMs, or every VM of a compute, up every day and keeps"
|
||||
" the newest."
|
||||
msgstr ""
|
||||
"Bir zamanlama, seçilen sanal makineleri ya da bir sunucunun bütün sanal "
|
||||
"makinelerini her gün yedekler ve en yenilerini tutar."
|
||||
|
||||
#: vmbackups/templates/vmbackups/policy.html:13
|
||||
#, python-format
|
||||
|
|
@ -11130,8 +11197,16 @@ msgid "Time zone: %(time_zone)s"
|
|||
msgstr "Saat dilimi: %(time_zone)s"
|
||||
|
||||
#: vmbackups/templates/vmbackups/policy_form.html:23
|
||||
msgid "Each VM is backed up once a day, starting at the time; a VM that has not started within 6 hours waits for the next day. Older backups of each VM beyond those kept are deleted, a chain of incremental backups once all of it is beyond; backups taken by hand are not."
|
||||
msgstr "Her sanal makine günde bir kez, belirtilen saatte başlayarak yedeklenir; 6 saat içinde başlamayan sanal makine ertesi günü bekler. Her sanal makinenin tutulanların dışında kalan eski yedekleri silinir; artımlı yedek zinciri ise tamamı bunların dışına çıkınca silinir. Elle alınan yedekler silinmez."
|
||||
msgid ""
|
||||
"Each VM is backed up once a day, starting at the time; a VM that has not "
|
||||
"started within 6 hours waits for the next day. Older backups of each VM "
|
||||
"beyond those kept are deleted, a chain of incremental backups once all of it "
|
||||
"is beyond; backups taken by hand are not."
|
||||
msgstr ""
|
||||
"Her sanal makine günde bir kez, belirtilen saatte başlayarak yedeklenir; 6 "
|
||||
"saat içinde başlamayan sanal makine ertesi günü bekler. Her sanal makinenin "
|
||||
"tutulanların dışında kalan eski yedekleri silinir; artımlı yedek zinciri ise "
|
||||
"tamamı bunların dışına çıkınca silinir. Elle alınan yedekler silinmez."
|
||||
|
||||
#: vmbackups/templates/vmbackups/restore.html:12
|
||||
#, python-format
|
||||
|
|
@ -11144,8 +11219,12 @@ msgstr ""
|
|||
|
||||
#: vmbackups/templates/vmbackups/restore.html:18
|
||||
#, python-format
|
||||
msgid "On %(compute)s, in storage pool %(pool)s: the VM's host and the pool of its first disk."
|
||||
msgstr "%(compute)s üzerinde, %(pool)s depolama havuzunda: sanal makinenin sunucusu ve ilk diskinin havuzu."
|
||||
msgid ""
|
||||
"On %(compute)s, in storage pool %(pool)s: the VM's host and the pool of its "
|
||||
"first disk."
|
||||
msgstr ""
|
||||
"%(compute)s üzerinde, %(pool)s depolama havuzunda: sanal makinenin sunucusu "
|
||||
"ve ilk diskinin havuzu."
|
||||
|
||||
#: vmbackups/templates/vmbackups/restore_disk.html:7
|
||||
#: vmbackups/templates/vmbackups/restore_disk.html:9
|
||||
|
|
@ -11154,8 +11233,12 @@ msgstr "Tek disk geri yükle"
|
|||
|
||||
#: vmbackups/templates/vmbackups/restore_disk.html:12
|
||||
#, python-format
|
||||
msgid "A disk of the backup of %(vm)s taken %(time)s, in %(target)s, is copied as a new volume, attached to no VM."
|
||||
msgstr "%(vm)s sanal makinesinin %(time)s tarihli, %(target)s içindeki yedeğinden bir disk, hiçbir sanal makineye bağlanmadan yeni bir birim olarak kopyalanır."
|
||||
msgid ""
|
||||
"A disk of the backup of %(vm)s taken %(time)s, in %(target)s, is copied as a "
|
||||
"new volume, attached to no VM."
|
||||
msgstr ""
|
||||
"%(vm)s sanal makinesinin %(time)s tarihli, %(target)s içindeki yedeğinden bir"
|
||||
" disk, hiçbir sanal makineye bağlanmadan yeni bir birim olarak kopyalanır."
|
||||
|
||||
#: vmbackups/templates/vmbackups/restore_over.html:6
|
||||
#: vmbackups/templates/vmbackups/restore_over.html:8
|
||||
|
|
@ -11165,8 +11248,15 @@ msgstr "Sanal makinenin üzerine geri yükle"
|
|||
|
||||
#: vmbackups/templates/vmbackups/restore_over.html:11
|
||||
#, python-format
|
||||
msgid "The backup of %(vm)s taken %(time)s, in %(target)s, is restored over the VM: its disks are copied as new volumes and the VM is switched to them. Its settings, MAC addresses and UUID stay."
|
||||
msgstr "%(vm)s sanal makinesinin %(time)s tarihli, %(target)s içindeki yedeği sanal makinenin üzerine geri yüklenir: diskleri yeni birimler olarak kopyalanır ve sanal makine bunlara geçirilir. Ayarları, MAC adresleri ve UUID'si aynı kalır."
|
||||
msgid ""
|
||||
"The backup of %(vm)s taken %(time)s, in %(target)s, is restored over the VM: "
|
||||
"its disks are copied as new volumes and the VM is switched to them. Its "
|
||||
"settings, MAC addresses and UUID stay."
|
||||
msgstr ""
|
||||
"%(vm)s sanal makinesinin %(time)s tarihli, %(target)s içindeki yedeği sanal "
|
||||
"makinenin üzerine geri yüklenir: diskleri yeni birimler olarak kopyalanır ve "
|
||||
"sanal makine bunlara geçirilir. Ayarları, MAC adresleri ve UUID'si aynı "
|
||||
"kalır."
|
||||
|
||||
#: vmbackups/templates/vmbackups/restore_over.html:19
|
||||
msgid "After the restore"
|
||||
|
|
@ -11177,8 +11267,11 @@ msgid "The old volumes stay in their pools until you delete them."
|
|||
msgstr "Eski birimler siz silene kadar havuzlarında kalır."
|
||||
|
||||
#: vmbackups/templates/vmbackups/restore_over.html:28
|
||||
msgid "The disks the VM runs from now are deleted once it is switched to the new ones."
|
||||
msgstr "Sanal makine yeni disklere geçirilince şu an çalıştığı diskler silinir."
|
||||
msgid ""
|
||||
"The disks the VM runs from now are deleted once it is switched to the new "
|
||||
"ones."
|
||||
msgstr ""
|
||||
"Sanal makine yeni disklere geçirilince şu an çalıştığı diskler silinir."
|
||||
|
||||
#: vmbackups/templates/vmbackups/restore_over.html:29
|
||||
msgid "The UEFI variables return to the backup's."
|
||||
|
|
@ -11190,8 +11283,12 @@ msgstr "TPM durumu yedekteki haline döner."
|
|||
|
||||
#: vmbackups/templates/vmbackups/restore_over.html:35
|
||||
#, python-format
|
||||
msgid "Restore the backup over %(vm)s? What the VM wrote since the backup is no longer on the disks it runs from."
|
||||
msgstr "Yedek %(vm)s üzerine geri yüklensin mi? Sanal makinenin yedekten sonra yazdıkları, çalışacağı disklerde artık olmaz."
|
||||
msgid ""
|
||||
"Restore the backup over %(vm)s? What the VM wrote since the backup is no "
|
||||
"longer on the disks it runs from."
|
||||
msgstr ""
|
||||
"Yedek %(vm)s üzerine geri yüklensin mi? Sanal makinenin yedekten sonra "
|
||||
"yazdıkları, çalışacağı disklerde artık olmaz."
|
||||
|
||||
#: vmbackups/templates/vmbackups/state.html:1
|
||||
msgid "Its deletion did not end; delete it again"
|
||||
|
|
@ -11346,8 +11443,11 @@ msgstr ""
|
|||
"%(pool)s depolama havuzu %(target)s yedek hedefidir; önce hedeften çıkarın"
|
||||
|
||||
#: vmbackups/utils.py:84
|
||||
msgid "No backup target open to VM owners has a storage pool on this VM's host."
|
||||
msgstr "Sanal makine sahiplerine açık hiçbir yedek hedefinin bu sanal makinenin sunucusunda depolama havuzu yok."
|
||||
msgid ""
|
||||
"No backup target open to VM owners has a storage pool on this VM's host."
|
||||
msgstr ""
|
||||
"Sanal makine sahiplerine açık hiçbir yedek hedefinin bu sanal makinenin "
|
||||
"sunucusunda depolama havuzu yok."
|
||||
|
||||
#: vmbackups/utils.py:85
|
||||
msgid "No backup target has a storage pool on this VM's host."
|
||||
|
|
@ -11381,7 +11481,9 @@ msgstr ""
|
|||
#: vmbackups/views.py:155
|
||||
#, python-format
|
||||
msgid "VM owners with the backup permission may now use %(target)s."
|
||||
msgstr "Yedekleme izni olan sanal makine sahipleri artık %(target)s hedefini kullanabilir."
|
||||
msgstr ""
|
||||
"Yedekleme izni olan sanal makine sahipleri artık %(target)s hedefini "
|
||||
"kullanabilir."
|
||||
|
||||
#: vmbackups/views.py:156
|
||||
#, python-format
|
||||
|
|
@ -11643,13 +11745,18 @@ msgstr "Hedef sunucuda sanal makinenin şu ağları yok: %(names)s"
|
|||
|
||||
#: vrtManager/instance.py:231
|
||||
#, python-format
|
||||
msgid "The destination host does not have these network filters of the VM: %(names)s"
|
||||
msgid ""
|
||||
"The destination host does not have these network filters of the VM: %(names)s"
|
||||
msgstr "Hedef sunucuda sanal makinenin şu ağ filtreleri yok: %(names)s"
|
||||
|
||||
#: vrtManager/instance.py:234
|
||||
#, python-format
|
||||
msgid "These network filters of the VM have other rules on the destination host: %(names)s"
|
||||
msgstr "Sanal makinenin şu ağ filtrelerinin hedef sunucudaki kuralları farklı: %(names)s"
|
||||
msgid ""
|
||||
"These network filters of the VM have other rules on the destination host: "
|
||||
"%(names)s"
|
||||
msgstr ""
|
||||
"Sanal makinenin şu ağ filtrelerinin hedef sunucudaki kuralları farklı: "
|
||||
"%(names)s"
|
||||
|
||||
#: vrtManager/instance.py:237
|
||||
#, python-format
|
||||
|
|
@ -11901,8 +12008,12 @@ msgstr "Sanal makinede ekran kartı yok"
|
|||
|
||||
#: vrtManager/instance.py:1977
|
||||
#, python-format
|
||||
msgid "The VM's CPU topology has %(count)s vCPUs: change it in the XML editor to set another maximum"
|
||||
msgstr "Sanal makinenin CPU topolojisi %(count)s vCPU içeriyor: başka bir en fazla değer için onu XML düzenleyicide değiştirin"
|
||||
msgid ""
|
||||
"The VM's CPU topology has %(count)s vCPUs: change it in the XML editor to set"
|
||||
" another maximum"
|
||||
msgstr ""
|
||||
"Sanal makinenin CPU topolojisi %(count)s vCPU içeriyor: başka bir en fazla "
|
||||
"değer için onu XML düzenleyicide değiştirin"
|
||||
|
||||
#: vrtManager/instance.py:2003
|
||||
#, python-format
|
||||
|
|
@ -12311,8 +12422,12 @@ msgstr ""
|
|||
|
||||
#: vrtManager/interface.py:314
|
||||
#, python-format
|
||||
msgid "Interface %(iface)s is in use by the running VMs %(vms)s; shut them down or move their network cards first"
|
||||
msgstr "%(iface)s arabirimini çalışan %(vms)s sanal makineleri kullanıyor; önce onları kapatın ya da ağ kartlarını başka yere taşıyın"
|
||||
msgid ""
|
||||
"Interface %(iface)s is in use by the running VMs %(vms)s; shut them down or "
|
||||
"move their network cards first"
|
||||
msgstr ""
|
||||
"%(iface)s arabirimini çalışan %(vms)s sanal makineleri kullanıyor; önce "
|
||||
"onları kapatın ya da ağ kartlarını başka yere taşıyın"
|
||||
|
||||
#: vrtManager/interface.py:332 vrtManager/virtsecrets.py:118
|
||||
#, python-format
|
||||
|
|
@ -12831,15 +12946,21 @@ msgstr "Oturum açma kilitlendi"
|
|||
#: accounts/templates/accounts/lockout.html:14
|
||||
#, python-format
|
||||
msgid "Too many failed sign-ins. The lock ends within %(minutes)s minute."
|
||||
msgid_plural "Too many failed sign-ins. The lock ends within %(minutes)s minutes."
|
||||
msgstr[0] "Çok fazla başarısız oturum açma denemesi. Kilit en geç %(minutes)s dakika içinde kalkar."
|
||||
msgstr[1] "Çok fazla başarısız oturum açma denemesi. Kilit en geç %(minutes)s dakika içinde kalkar."
|
||||
msgid_plural ""
|
||||
"Too many failed sign-ins. The lock ends within %(minutes)s minutes."
|
||||
msgstr[0] ""
|
||||
"Çok fazla başarısız oturum açma denemesi. Kilit en geç %(minutes)s dakika "
|
||||
"içinde kalkar."
|
||||
msgstr[1] ""
|
||||
"Çok fazla başarısız oturum açma denemesi. Kilit en geç %(minutes)s dakika "
|
||||
"içinde kalkar."
|
||||
|
||||
#: accounts/templates/accounts/lockout.html:20
|
||||
msgid "Back to sign in"
|
||||
msgstr "Oturum açmaya dön"
|
||||
|
||||
#: accounts/templates/accounts/otp_login.html:52 accounts/templates/login.html:51
|
||||
#: accounts/templates/accounts/otp_login.html:52
|
||||
#: accounts/templates/login.html:51
|
||||
msgid "Caps Lock is on"
|
||||
msgstr "Caps Lock açık"
|
||||
|
||||
|
|
@ -12851,7 +12972,9 @@ msgstr "Oturum açma duyurusu"
|
|||
msgid ""
|
||||
"Shown above the sign-in form, e.g. planned maintenance or a terms-of-use "
|
||||
"line; empty: none"
|
||||
msgstr "Oturum açma formunun üstünde gösterilir; örneğin planlı bakım ya da kullanım koşulları satırı; boş: yok"
|
||||
msgstr ""
|
||||
"Oturum açma formunun üstünde gösterilir; örneğin planlı bakım ya da kullanım "
|
||||
"koşulları satırı; boş: yok"
|
||||
|
||||
#: accounts/templates/account.html:38
|
||||
msgid "Unlock sign-in"
|
||||
|
|
@ -12868,7 +12991,9 @@ msgstr "Oturum süresi (saat)"
|
|||
|
||||
#: appsettings/migrations/0030_login_session_hours.py:6
|
||||
msgid "How long a sign-in lasts; a change applies from the next sign-in"
|
||||
msgstr "Bir oturum ne kadar açık kalır; değişiklik bir sonraki oturum açmadan itibaren geçerlidir"
|
||||
msgstr ""
|
||||
"Bir oturum ne kadar açık kalır; değişiklik bir sonraki oturum açmadan "
|
||||
"itibaren geçerlidir"
|
||||
|
||||
#. django-otp's sign-in errors, shown on the OTP sign-in page
|
||||
msgid "Please enter your OTP token."
|
||||
|
|
@ -12878,10 +13003,18 @@ msgid "Invalid token. Please make sure you have entered it correctly."
|
|||
msgstr "Geçersiz kod. Lütfen doğru girdiğinizden emin olun."
|
||||
|
||||
#, python-format
|
||||
msgid "Verification temporarily disabled because of %(failure_count)d failed attempt, please try again soon."
|
||||
msgid_plural "Verification temporarily disabled because of %(failure_count)d failed attempts, please try again soon."
|
||||
msgstr[0] "%(failure_count)d başarısız deneme nedeniyle doğrulama geçici olarak kapatıldı; lütfen biraz sonra tekrar deneyin."
|
||||
msgstr[1] "%(failure_count)d başarısız deneme nedeniyle doğrulama geçici olarak kapatıldı; lütfen biraz sonra tekrar deneyin."
|
||||
msgid ""
|
||||
"Verification temporarily disabled because of %(failure_count)d failed "
|
||||
"attempt, please try again soon."
|
||||
msgid_plural ""
|
||||
"Verification temporarily disabled because of %(failure_count)d failed "
|
||||
"attempts, please try again soon."
|
||||
msgstr[0] ""
|
||||
"%(failure_count)d başarısız deneme nedeniyle doğrulama geçici olarak "
|
||||
"kapatıldı; lütfen biraz sonra tekrar deneyin."
|
||||
msgstr[1] ""
|
||||
"%(failure_count)d başarısız deneme nedeniyle doğrulama geçici olarak "
|
||||
"kapatıldı; lütfen biraz sonra tekrar deneyin."
|
||||
|
||||
msgid "Verification of the token is currently disabled"
|
||||
msgstr "Kod doğrulaması şu anda kapalı"
|
||||
|
|
@ -12987,12 +13120,18 @@ msgstr "%(job)s iptal edilsin mi? Olduğu yerde durur."
|
|||
|
||||
#: admin/templates/admin/user_list.html
|
||||
#, python-format
|
||||
msgid "Block %(name)s? They are signed out and their API tokens are deleted; unblocking does not bring the tokens back."
|
||||
msgstr "%(name)s engellensin mi? Oturumları kapatılır ve API anahtarları silinir; engeli kaldırmak anahtarları geri getirmez."
|
||||
msgid ""
|
||||
"Block %(name)s? They are signed out and their API tokens are deleted; "
|
||||
"unblocking does not bring the tokens back."
|
||||
msgstr ""
|
||||
"%(name)s engellensin mi? Oturumları kapatılır ve API anahtarları silinir; "
|
||||
"engeli kaldırmak anahtarları geri getirmez."
|
||||
|
||||
#: webvirtcloud/middleware.py
|
||||
msgid "You were signed out, so it was not done: sign in and do it again."
|
||||
msgstr "Oturumunuz kapanmıştı, bu yüzden işlem yapılmadı: giriş yapıp yeniden deneyin."
|
||||
msgstr ""
|
||||
"Oturumunuz kapanmıştı, bu yüzden işlem yapılmadı: giriş yapıp yeniden "
|
||||
"deneyin."
|
||||
|
||||
#: templates/base.html
|
||||
msgid "You were signed out: this page is no longer updated."
|
||||
|
|
@ -13018,7 +13157,6 @@ msgstr "Hangi sanal makineler"
|
|||
msgid "Choose the VMs to back up"
|
||||
msgstr "Yedeklenecek sanal makineleri seçin"
|
||||
|
||||
|
||||
#: webvirtcloud/common_tags.py:29
|
||||
#, python-format
|
||||
msgid "%(percent)s%%"
|
||||
|
|
@ -13027,15 +13165,18 @@ msgstr "%%%(percent)s"
|
|||
#: operations/templates/operations/jobs.html:16
|
||||
#: operations/templatetags/operations.py:98
|
||||
#, python-format
|
||||
msgid "The job worker is not running; it was last seen %(when)s. Jobs wait until it runs again."
|
||||
msgstr "İş işleyicisi çalışmıyor; en son %(when)s görüldü. İşler o yeniden çalışana kadar bekler."
|
||||
msgid ""
|
||||
"The job worker is not running; it was last seen %(when)s. Jobs wait until it "
|
||||
"runs again."
|
||||
msgstr ""
|
||||
"İş işleyicisi çalışmıyor; en son %(when)s görüldü. İşler o yeniden çalışana "
|
||||
"kadar bekler."
|
||||
|
||||
#: operations/templates/operations/jobs.html:16
|
||||
#: operations/templatetags/operations.py:99
|
||||
msgid "The job worker has not run yet. Jobs wait until it runs."
|
||||
msgstr "İş işleyicisi henüz hiç çalışmadı. İşler o çalışana kadar bekler."
|
||||
|
||||
|
||||
#: instances/states.py:27
|
||||
msgid "Paused by a disk error"
|
||||
msgstr "Bir disk hatası nedeniyle duraklatıldı"
|
||||
|
|
@ -13084,8 +13225,83 @@ msgstr "Depolamasında yer açın, ardından sanal makineyi devam ettirin."
|
|||
|
||||
#: instances/templates/instance.html:55
|
||||
msgid "An administrator has to free space on its storage and resume it."
|
||||
msgstr "Bir yöneticinin depolamasında yer açıp sanal makineyi devam ettirmesi gerekir."
|
||||
msgstr ""
|
||||
"Bir yöneticinin depolamasında yer açıp sanal makineyi devam ettirmesi "
|
||||
"gerekir."
|
||||
|
||||
#: instances/templates/instances/settings_tab.html:1030
|
||||
msgid "This VM cannot report a crash or a hang yet: a choice adds the devices it reports them through, from the next start."
|
||||
msgstr "Bu sanal makine henüz çöktüğünü ya da donduğunu bildiremiyor: bir seçim, bildirdiği aygıtları sonraki başlatmadan itibaren ekler."
|
||||
msgid ""
|
||||
"This VM cannot report a crash or a hang yet: a choice adds the devices it "
|
||||
"reports them through, from the next start."
|
||||
msgstr ""
|
||||
"Bu sanal makine henüz çöktüğünü ya da donduğunu bildiremiyor: bir seçim, "
|
||||
"bildirdiği aygıtları sonraki başlatmadan itibaren ekler."
|
||||
|
||||
#: accounts/templates/accounts/change_password_form.html:17
|
||||
msgid "Set your own password"
|
||||
msgstr "Kendi parolanızı belirleyin"
|
||||
|
||||
#: accounts/templates/accounts/change_password_form.html:20
|
||||
#, python-format
|
||||
msgid ""
|
||||
"Signed in as %(name)s with a temporary password. Replace it to continue."
|
||||
msgstr ""
|
||||
"%(name)s olarak geçici bir parolayla oturum açtınız. Devam etmek için onu "
|
||||
"değiştirin."
|
||||
|
||||
#: accounts/templates/accounts/change_password_form.html:22
|
||||
#, python-format
|
||||
msgid "For %(name)s. You stay signed in here; your other sessions end."
|
||||
msgstr ""
|
||||
"%(name)s için. Burada oturumunuz açık kalır; diğer oturumlarınız kapanır."
|
||||
|
||||
#: accounts/templates/accounts/change_password_form.html:34
|
||||
msgid "Temporary password"
|
||||
msgstr "Geçici parola"
|
||||
|
||||
#: accounts/templates/accounts/change_password_form.html:34
|
||||
msgid "Current password"
|
||||
msgstr "Mevcut parola"
|
||||
|
||||
#: accounts/templates/accounts/change_password_form.html:38
|
||||
msgid "The one you just signed in with."
|
||||
msgstr "Az önce oturum açarken kullandığınız parola."
|
||||
|
||||
#: accounts/templates/accounts/change_password_form.html:51
|
||||
msgid "New password again"
|
||||
msgstr "Yeni parola (tekrar)"
|
||||
|
||||
#: accounts/templates/accounts/change_password_form.html:57
|
||||
msgid "8 characters or more"
|
||||
msgstr "En az 8 karakter"
|
||||
|
||||
#: accounts/templates/accounts/change_password_form.html:58
|
||||
msgid "Not only digits"
|
||||
msgstr "Yalnızca rakamlardan oluşmuyor"
|
||||
|
||||
#: accounts/templates/accounts/change_password_form.html:59
|
||||
msgid "Both entries match"
|
||||
msgstr "İki giriş aynı"
|
||||
|
||||
#: accounts/templates/accounts/change_password_form.html:60
|
||||
msgid ""
|
||||
"Not like your name or e-mail, and not a common password: checked when you "
|
||||
"save"
|
||||
msgstr ""
|
||||
"Adınıza veya e-postanıza benzemiyor ve yaygın bir parola değil: "
|
||||
"kaydettiğinizde denetlenir"
|
||||
|
||||
#: accounts/templates/accounts/change_password_form.html:67
|
||||
msgid "Save and continue"
|
||||
msgstr "Kaydet ve devam et"
|
||||
|
||||
#: accounts/templates/accounts/change_password_form.html:60
|
||||
msgid "met"
|
||||
msgstr "sağlandı"
|
||||
|
||||
#: accounts/templates/accounts/change_password_form.html:60
|
||||
#: accounts/templates/accounts/change_password_form.html:61
|
||||
#: accounts/templates/accounts/change_password_form.html:62
|
||||
#: accounts/templates/accounts/change_password_form.html:63
|
||||
msgid "not met"
|
||||
msgstr "sağlanmadı"
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -274,14 +274,6 @@ msgstr "从用户移除"
|
|||
msgid "No VMs."
|
||||
msgstr "没有虚拟机。"
|
||||
|
||||
#: accounts/templates/accounts/change_password_form.html:20
|
||||
msgid "Choose a new password before you go on."
|
||||
msgstr "请先设置新密码再继续。"
|
||||
|
||||
#: accounts/templates/accounts/change_password_form.html:20
|
||||
msgid "You stay signed in here; your other sessions end."
|
||||
msgstr "您在此处保持登录;您的其他会话将结束。"
|
||||
|
||||
#: accounts/templates/accounts/change_password_form.html:35
|
||||
#: accounts/templates/accounts/email_otp_form.html:25
|
||||
#: admin/templates/admin/group_form.html:73
|
||||
|
|
@ -6363,8 +6355,13 @@ msgid "Stop"
|
|||
msgstr "停止"
|
||||
|
||||
#: instances/templates/instances/settings_tab.html:1028
|
||||
msgid "A hang is noticed once the guest arms its watchdog (Linux: RuntimeWatchdogSec in systemd's system.conf). Stop keeps a VM that crashes again and again down for a look. From the next start."
|
||||
msgstr "客户机启用其看门狗后才能发现挂起(Linux:systemd 的 system.conf 中的 RuntimeWatchdogSec)。“停止”会让反复崩溃的虚拟机保持停止状态以便排查。下次启动时生效。"
|
||||
msgid ""
|
||||
"A hang is noticed once the guest arms its watchdog (Linux: RuntimeWatchdogSec"
|
||||
" in systemd's system.conf). Stop keeps a VM that crashes again and again down"
|
||||
" for a look. From the next start."
|
||||
msgstr ""
|
||||
"客户机启用其看门狗后才能发现挂起(Linux:systemd 的 system.conf 中的 "
|
||||
"RuntimeWatchdogSec)。“停止”会让反复崩溃的虚拟机保持停止状态以便排查。下次启动时生效。"
|
||||
|
||||
#: instances/templates/instances/settings_tab.html:1030
|
||||
#, python-format
|
||||
|
|
@ -12111,14 +12108,16 @@ msgstr "登录已锁定"
|
|||
#: accounts/templates/accounts/lockout.html:14
|
||||
#, python-format
|
||||
msgid "Too many failed sign-ins. The lock ends within %(minutes)s minute."
|
||||
msgid_plural "Too many failed sign-ins. The lock ends within %(minutes)s minutes."
|
||||
msgid_plural ""
|
||||
"Too many failed sign-ins. The lock ends within %(minutes)s minutes."
|
||||
msgstr[0] "登录失败次数过多。锁定将在 %(minutes)s 分钟内解除。"
|
||||
|
||||
#: accounts/templates/accounts/lockout.html:20
|
||||
msgid "Back to sign in"
|
||||
msgstr "返回登录"
|
||||
|
||||
#: accounts/templates/accounts/otp_login.html:52 accounts/templates/login.html:51
|
||||
#: accounts/templates/accounts/otp_login.html:52
|
||||
#: accounts/templates/login.html:51
|
||||
msgid "Caps Lock is on"
|
||||
msgstr "大写锁定已开启"
|
||||
|
||||
|
|
@ -12157,8 +12156,12 @@ msgid "Invalid token. Please make sure you have entered it correctly."
|
|||
msgstr "验证码无效。请确认输入正确。"
|
||||
|
||||
#, python-format
|
||||
msgid "Verification temporarily disabled because of %(failure_count)d failed attempt, please try again soon."
|
||||
msgid_plural "Verification temporarily disabled because of %(failure_count)d failed attempts, please try again soon."
|
||||
msgid ""
|
||||
"Verification temporarily disabled because of %(failure_count)d failed "
|
||||
"attempt, please try again soon."
|
||||
msgid_plural ""
|
||||
"Verification temporarily disabled because of %(failure_count)d failed "
|
||||
"attempts, please try again soon."
|
||||
msgstr[0] "由于 %(failure_count)d 次验证失败,验证已暂时停用,请稍后再试。"
|
||||
|
||||
msgid "Verification of the token is currently disabled"
|
||||
|
|
@ -12265,7 +12268,9 @@ msgstr "取消 %(job)s?它将停在当前进度。"
|
|||
|
||||
#: admin/templates/admin/user_list.html
|
||||
#, python-format
|
||||
msgid "Block %(name)s? They are signed out and their API tokens are deleted; unblocking does not bring the tokens back."
|
||||
msgid ""
|
||||
"Block %(name)s? They are signed out and their API tokens are deleted; "
|
||||
"unblocking does not bring the tokens back."
|
||||
msgstr "禁用 %(name)s?其登录将被注销,API 令牌将被删除;解除禁用不会恢复这些令牌。"
|
||||
|
||||
#: webvirtcloud/middleware.py
|
||||
|
|
@ -12296,7 +12301,6 @@ msgstr "哪些虚拟机"
|
|||
msgid "Choose the VMs to back up"
|
||||
msgstr "请选择要备份的虚拟机"
|
||||
|
||||
|
||||
#: webvirtcloud/common_tags.py:29
|
||||
#, python-format
|
||||
msgid "%(percent)s%%"
|
||||
|
|
@ -12305,7 +12309,9 @@ msgstr "%(percent)s%%"
|
|||
#: operations/templates/operations/jobs.html:16
|
||||
#: operations/templatetags/operations.py:98
|
||||
#, python-format
|
||||
msgid "The job worker is not running; it was last seen %(when)s. Jobs wait until it runs again."
|
||||
msgid ""
|
||||
"The job worker is not running; it was last seen %(when)s. Jobs wait until it "
|
||||
"runs again."
|
||||
msgstr "工作进程未在运行;最后在线时间 %(when)s。任务将等待它重新运行。"
|
||||
|
||||
#: operations/templates/operations/jobs.html:16
|
||||
|
|
@ -12313,7 +12319,6 @@ msgstr "工作进程未在运行;最后在线时间 %(when)s。任务将等待
|
|||
msgid "The job worker has not run yet. Jobs wait until it runs."
|
||||
msgstr "工作进程尚未运行过。任务将等待它运行。"
|
||||
|
||||
|
||||
#: instances/states.py:27
|
||||
msgid "Paused by a disk error"
|
||||
msgstr "因磁盘错误而暂停"
|
||||
|
|
@ -12365,5 +12370,71 @@ msgid "An administrator has to free space on its storage and resume it."
|
|||
msgstr "需要管理员在其存储上释放空间并恢复它。"
|
||||
|
||||
#: instances/templates/instances/settings_tab.html:1030
|
||||
msgid "This VM cannot report a crash or a hang yet: a choice adds the devices it reports them through, from the next start."
|
||||
msgid ""
|
||||
"This VM cannot report a crash or a hang yet: a choice adds the devices it "
|
||||
"reports them through, from the next start."
|
||||
msgstr "此虚拟机尚无法报告崩溃或挂起:做出选择即会添加其报告所用的设备,下次启动时生效。"
|
||||
|
||||
#: accounts/templates/accounts/change_password_form.html:17
|
||||
msgid "Set your own password"
|
||||
msgstr "设置您自己的密码"
|
||||
|
||||
#: accounts/templates/accounts/change_password_form.html:20
|
||||
#, python-format
|
||||
msgid ""
|
||||
"Signed in as %(name)s with a temporary password. Replace it to continue."
|
||||
msgstr "您已使用临时密码以 %(name)s 身份登录。请更换后继续。"
|
||||
|
||||
#: accounts/templates/accounts/change_password_form.html:22
|
||||
#, python-format
|
||||
msgid "For %(name)s. You stay signed in here; your other sessions end."
|
||||
msgstr "用户 %(name)s。您在此处保持登录;您的其他会话将结束。"
|
||||
|
||||
#: accounts/templates/accounts/change_password_form.html:34
|
||||
msgid "Temporary password"
|
||||
msgstr "临时密码"
|
||||
|
||||
#: accounts/templates/accounts/change_password_form.html:34
|
||||
msgid "Current password"
|
||||
msgstr "当前密码"
|
||||
|
||||
#: accounts/templates/accounts/change_password_form.html:38
|
||||
msgid "The one you just signed in with."
|
||||
msgstr "即您刚才登录时使用的密码。"
|
||||
|
||||
#: accounts/templates/accounts/change_password_form.html:51
|
||||
msgid "New password again"
|
||||
msgstr "再次输入新密码"
|
||||
|
||||
#: accounts/templates/accounts/change_password_form.html:57
|
||||
msgid "8 characters or more"
|
||||
msgstr "至少 8 个字符"
|
||||
|
||||
#: accounts/templates/accounts/change_password_form.html:58
|
||||
msgid "Not only digits"
|
||||
msgstr "不全是数字"
|
||||
|
||||
#: accounts/templates/accounts/change_password_form.html:59
|
||||
msgid "Both entries match"
|
||||
msgstr "两次输入一致"
|
||||
|
||||
#: accounts/templates/accounts/change_password_form.html:60
|
||||
msgid ""
|
||||
"Not like your name or e-mail, and not a common password: checked when you "
|
||||
"save"
|
||||
msgstr "与您的姓名或电子邮件不相似,且不是常见密码:保存时检查"
|
||||
|
||||
#: accounts/templates/accounts/change_password_form.html:67
|
||||
msgid "Save and continue"
|
||||
msgstr "保存并继续"
|
||||
|
||||
#: accounts/templates/accounts/change_password_form.html:60
|
||||
msgid "met"
|
||||
msgstr "已满足"
|
||||
|
||||
#: accounts/templates/accounts/change_password_form.html:60
|
||||
#: accounts/templates/accounts/change_password_form.html:61
|
||||
#: accounts/templates/accounts/change_password_form.html:62
|
||||
#: accounts/templates/accounts/change_password_form.html:63
|
||||
msgid "not met"
|
||||
msgstr "未满足"
|
||||
|
|
|
|||
31
static/js/password_change.js
Normal file
31
static/js/password_change.js
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
// The password change form: the eye button shows or hides both new
|
||||
// entries, and the rules the browser can check are ticked as you type.
|
||||
// The server checks every rule again when the form is sent.
|
||||
var newPassword = document.getElementById("id_new_password1");
|
||||
var again = document.getElementById("id_new_password2");
|
||||
var rules = document.getElementById("password-rules");
|
||||
|
||||
document.getElementById("toggle-new-password").addEventListener("click", function () {
|
||||
var shown = newPassword.type === "password";
|
||||
newPassword.type = again.type = shown ? "text" : "password";
|
||||
this.setAttribute("aria-pressed", String(shown));
|
||||
this.querySelector("i").className = shown ? "bi bi-eye-slash" : "bi bi-eye";
|
||||
});
|
||||
|
||||
function tick() {
|
||||
var value = newPassword.value;
|
||||
// as Python counts them: characters, not UTF-16 units; any digit, as str.isdigit
|
||||
var met = {
|
||||
length: Array.from(value).length >= 8,
|
||||
letters: value !== "" && !/^[\p{Nd}\p{No}]+$/u.test(value),
|
||||
match: value !== "" && value === again.value,
|
||||
};
|
||||
Object.keys(met).forEach(function (rule) {
|
||||
var item = rules.querySelector('[data-rule="' + rule + '"]');
|
||||
item.classList.toggle("text-success", met[rule]);
|
||||
item.querySelector("i").className = (met[rule] ? "bi bi-check-circle-fill" : "bi bi-circle") + " me-2";
|
||||
item.querySelector(".visually-hidden").textContent = met[rule] ? rules.dataset.met : rules.dataset.unmet;
|
||||
});
|
||||
}
|
||||
newPassword.addEventListener("input", tick);
|
||||
again.addEventListener("input", tick);
|
||||
|
|
@ -29,11 +29,13 @@
|
|||
|
||||
<body class="pb-5"{% block body_attrs %}{% endblock %}>
|
||||
|
||||
{% block navbar %}{# a page that leads nowhere else leaves it out #}
|
||||
{% if request.user.is_authenticated %}
|
||||
{# for the keyboard: past the menu, shown when it has the focus #}
|
||||
<a class="visually-hidden-focusable d-block text-center p-2" href="#main">{% trans "Skip to content" %}</a>
|
||||
{% include 'navbar.html' %}
|
||||
{% endif %}
|
||||
{% endblock navbar %}
|
||||
|
||||
<div role="main" id="main" class="container">
|
||||
{% block page_header %}{# a page with a heading of its own leaves it out #}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue