1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-11-09 03:36:48 +00:00

feat(locale): the Turkish catalog covers the whole panel

The Turkish catalog had not been extracted since 2024: of the panel's
1727 messages, 817 were missing and 489 carried old fuzzy guesses, so
most pages, dialogs and messages showed in English, and some fuzzy
guesses said something else.

The catalog is extracted again (obsolete entries dropped) and every
message is translated, the earlier terms kept (Sanal Makine, Sunucu,
Depolama havuzu, Birim, Anlık görüntü), placeholders and markup checked
against the English. The Settings page's names and descriptions come
from the database through migrations that did not mark them for
translation; they are marked now (gettext_noop, the stored values
unchanged), so they are in the catalog too.
This commit is contained in:
catborise 2026-10-31 21:16:31 +03:00
parent c401479cf9
commit 9521c79733
6 changed files with 7163 additions and 4053 deletions

View file

@ -1,12 +1,13 @@
from django.core.management.color import no_style
from django.db import migrations
from django.utils.translation import gettext_noop as _
SETTINGS = [
("Login Failure Limit", "LOGIN_FAILURE_LIMIT", "5",
"Failed logins of a user from one address before it is locked"),
("Login Lockout Minutes", "LOGIN_LOCKOUT_MINUTES", "15",
"How long a locked login stays locked, in minutes"),
(_("Login Failure Limit"), "LOGIN_FAILURE_LIMIT", "5",
_("Failed logins of a user from one address before it is locked")),
(_("Login Lockout Minutes"), "LOGIN_LOCKOUT_MINUTES", "15",
_("How long a locked login stays locked, in minutes")),
]

View file

@ -1,12 +1,13 @@
from django.core.management.color import no_style
from django.db import migrations
from django.utils.translation import gettext_noop as _
SETTINGS = [
("Snapshot Free Percent", "SNAPSHOT_FREE_SPACE_PERCENT", "10",
"Free space a storage pool keeps for a snapshot, in percent of the VM's disks in it (0: none)"),
("Snapshot Free Min GiB", "SNAPSHOT_FREE_SPACE_MIN_GIB", "1",
"Free space a storage pool keeps for a snapshot at least, in GiB (0: none)"),
(_("Snapshot Free Percent"), "SNAPSHOT_FREE_SPACE_PERCENT", "10",
_("Free space a storage pool keeps for a snapshot, in percent of the VM's disks in it (0: none)")),
(_("Snapshot Free Min GiB"), "SNAPSHOT_FREE_SPACE_MIN_GIB", "1",
_("Free space a storage pool keeps for a snapshot at least, in GiB (0: none)")),
]

View file

@ -1,10 +1,11 @@
from django.core.management.color import no_style
from django.db import migrations
from django.utils.translation import gettext_noop as _
SETTINGS = [
("Worker Concurrency", "WORKER_CONCURRENCY", "4", "Jobs the worker runs at the same time (1-16)"),
("Job Retention Days", "JOB_RETENTION_DAYS", "30", "Days finished jobs stay in the job history (1-3650)"),
(_("Worker Concurrency"), "WORKER_CONCURRENCY", "4", _("Jobs the worker runs at the same time (1-16)")),
(_("Job Retention Days"), "JOB_RETENTION_DAYS", "30", _("Days finished jobs stay in the job history (1-3650)")),
]

View file

@ -1,38 +1,39 @@
from django.db import migrations
from django.utils.translation import gettext_noop as _
# what each setting does, shown under it on the Settings page
# what each setting does, shown under it on the Settings page, translated there
DESCRIPTIONS = {
"INSTANCE_ARCH_DEFAULT_TYPE": "Architecture chosen first on the new VM pages",
"INSTANCE_MACHINE_DEFAULT_TYPE": "Machine type chosen first on the new VM pages",
"INSTANCE_FIRMWARE_DEFAULT_TYPE": "Firmware chosen first for a new x86_64 VM",
"INSTANCE_CPU_DEFAULT_MODE": "CPU mode chosen first for a new VM",
"INSTANCE_NIC_DEFAULT_TYPE": "Network card model chosen first for a new VM (default: libvirt's choice)",
"INSTANCE_VIDEO_DEFAULT_TYPE": "Video device chosen first for a new VM",
"INSTANCE_INPUT_DEFAULT_DEVICE": "Input device chosen first for a new VM (None: no input device)",
"INSTANCE_CDROM_ADD": "Bus of the CD-ROM a new VM gets (None: no CD-ROM)",
"INSTANCE_VOLUME_DEFAULT_BUS": "Bus of new disks",
"INSTANCE_VOLUME_DEFAULT_FORMAT": "Format of new disk images in directory pools",
"INSTANCE_VOLUME_DEFAULT_CACHE": "Cache mode of new disks",
"INSTANCE_VOLUME_DEFAULT_IO": "I/O mode of new disks (native needs cache none or directsync)",
"INSTANCE_VOLUME_DEFAULT_DISCARD": "Discard of new disks (unmap: the guest's TRIM frees space in the image)",
"INSTANCE_VOLUME_DEFAULT_DETECT_ZEROES": "Detect zeroes of new disks: how blocks of zeros the guest writes are stored",
"INSTANCE_VOLUME_DEFAULT_SCSI_CONTROLLER": "Controller model for disks on the SCSI bus",
"INSTANCE_VOLUME_DEFAULT_OWNER_UID": "Owner of new disk image files (0: root; qemu is often 107)",
"INSTANCE_VOLUME_DEFAULT_OWNER_GID": "Group of new disk image files (0: root; qemu is often 107)",
"CLONE_INSTANCE_AUTO_NAME": "Users who are not administrators get clone names made from the prefix",
"CLONE_INSTANCE_DEFAULT_PREFIX": "Prefix of the names made for clones: prefix1, prefix2, ...",
"CONSOLE_SCALE": "The console starts scaled to its window",
"CONSOLE_VIEW_ONLY": "The console starts view-only: no keyboard or mouse input",
"CONSOLE_RESIZE_SESSION": "The console starts asking the guest to fit its screen to the window",
"CONSOLE_CLIP_VIEWPORT": "The console starts clipped to its window, without scaling",
"SHOW_ACCESS_ROOT_PASSWORD": "Show Root Password on a VM's Access tab",
"SHOW_ACCESS_SSH_KEYS": "Show SSH Keys on a VM's Access tab",
"ALLOW_INSTANCE_MULTIPLE_OWNER": "A VM can be given to more than one user",
"QUOTA_DEBUG": "A quota refusal shows the numbers: what would be used and what is allowed",
"VIEW_INSTANCES_LIST_STYLE": "Instances page for administrators: VMs under their host, or one list",
"VIEW_INSTANCE_DETAIL_BOTTOM_BAR": "A VM's page shows a bar with its host's links at the bottom",
"VM_DRBD_STATUS": "The Instances page shows each VM's DRBD state",
"LOGS_PER_PAGE": "Rows per page on the Logs page",
"INSTANCE_ARCH_DEFAULT_TYPE": _("Architecture chosen first on the new VM pages"),
"INSTANCE_MACHINE_DEFAULT_TYPE": _("Machine type chosen first on the new VM pages"),
"INSTANCE_FIRMWARE_DEFAULT_TYPE": _("Firmware chosen first for a new x86_64 VM"),
"INSTANCE_CPU_DEFAULT_MODE": _("CPU mode chosen first for a new VM"),
"INSTANCE_NIC_DEFAULT_TYPE": _("Network card model chosen first for a new VM (default: libvirt's choice)"),
"INSTANCE_VIDEO_DEFAULT_TYPE": _("Video device chosen first for a new VM"),
"INSTANCE_INPUT_DEFAULT_DEVICE": _("Input device chosen first for a new VM (None: no input device)"),
"INSTANCE_CDROM_ADD": _("Bus of the CD-ROM a new VM gets (None: no CD-ROM)"),
"INSTANCE_VOLUME_DEFAULT_BUS": _("Bus of new disks"),
"INSTANCE_VOLUME_DEFAULT_FORMAT": _("Format of new disk images in directory pools"),
"INSTANCE_VOLUME_DEFAULT_CACHE": _("Cache mode of new disks"),
"INSTANCE_VOLUME_DEFAULT_IO": _("I/O mode of new disks (native needs cache none or directsync)"),
"INSTANCE_VOLUME_DEFAULT_DISCARD": _("Discard of new disks (unmap: the guest's TRIM frees space in the image)"),
"INSTANCE_VOLUME_DEFAULT_DETECT_ZEROES": _("Detect zeroes of new disks: how blocks of zeros the guest writes are stored"),
"INSTANCE_VOLUME_DEFAULT_SCSI_CONTROLLER": _("Controller model for disks on the SCSI bus"),
"INSTANCE_VOLUME_DEFAULT_OWNER_UID": _("Owner of new disk image files (0: root; qemu is often 107)"),
"INSTANCE_VOLUME_DEFAULT_OWNER_GID": _("Group of new disk image files (0: root; qemu is often 107)"),
"CLONE_INSTANCE_AUTO_NAME": _("Users who are not administrators get clone names made from the prefix"),
"CLONE_INSTANCE_DEFAULT_PREFIX": _("Prefix of the names made for clones: prefix1, prefix2, ..."),
"CONSOLE_SCALE": _("The console starts scaled to its window"),
"CONSOLE_VIEW_ONLY": _("The console starts view-only: no keyboard or mouse input"),
"CONSOLE_RESIZE_SESSION": _("The console starts asking the guest to fit its screen to the window"),
"CONSOLE_CLIP_VIEWPORT": _("The console starts clipped to its window, without scaling"),
"SHOW_ACCESS_ROOT_PASSWORD": _("Show Root Password on a VM's Access tab"),
"SHOW_ACCESS_SSH_KEYS": _("Show SSH Keys on a VM's Access tab"),
"ALLOW_INSTANCE_MULTIPLE_OWNER": _("A VM can be given to more than one user"),
"QUOTA_DEBUG": _("A quota refusal shows the numbers: what would be used and what is allowed"),
"VIEW_INSTANCES_LIST_STYLE": _("Instances page for administrators: VMs under their host, or one list"),
"VIEW_INSTANCE_DETAIL_BOTTOM_BAR": _("A VM's page shows a bar with its host's links at the bottom"),
"VM_DRBD_STATUS": _("The Instances page shows each VM's DRBD state"),
"LOGS_PER_PAGE": _("Rows per page on the Logs page"),
}

Binary file not shown.

File diff suppressed because it is too large Load diff