]> git.proxmox.com Git - pve-manager.git/commit
fix #4551: ui: use gettext on hardcoded byte units
authorNoel Ullreich <n.ullreich@proxmox.com>
Mon, 3 Jul 2023 12:15:59 +0000 (14:15 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 5 Jul 2023 07:12:57 +0000 (09:12 +0200)
commitf9b888b05564533090763723ae7c0b3707f03475
tree164847b6b8b8eb641dbcb3bf6439bb82bf047409
parent114e5f2c4a29f021962c9d2729d76f487e88d70e
fix #4551: ui: use gettext on hardcoded byte units

Since some languages translate byte units like 'GiB' or write them in their
own script, this patch wraps units in the `gettext` function.

While most occurrences of byte strings can be translated within the
`format_size` function in `proxmox-widget-toolkit/src/Utils.js`, this patch
catches those instances that are not translated.

Signed-off-by: Noel Ullreich <n.ullreich@proxmox.com>
www/manager6/ceph/OSD.js
www/manager6/form/DiskStorageSelector.js
www/manager6/lxc/MPResize.js
www/manager6/qemu/HDResize.js