From: "Shannon Sterz" <s.sterz@proxmox.com>
To: "Proxmox VE development discussion" <pve-devel@lists.proxmox.com>,
"Maximiliano Sandoval" <m.sandoval@proxmox.com>
Subject: Re: [pve-devel] [PATCH manager v2 2/3] improve some translatable strings
Date: Wed, 30 Jul 2025 14:49:08 +0200 [thread overview]
Message-ID: <DBPEHDAIICJY.19RYQII2PP62I@proxmox.com> (raw)
In-Reply-To: <20250730103825.233570-3-m.sandoval@proxmox.com>
On Wed Jul 30, 2025 at 12:38 PM CEST, Maximiliano Sandoval wrote:
> In certain languages (e.g. spanish) CT and VM would have different
> genders, hence it is not possible to use the same string.
>
> Signed-off-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
> ---
> www/manager6/dc/MetricServerView.js | 2 +-
> www/manager6/window/Restore.js | 11 +++++------
> 2 files changed, 6 insertions(+), 7 deletions(-)
>
> diff --git a/www/manager6/dc/MetricServerView.js b/www/manager6/dc/MetricServerView.js
> index 26e89923..683e91fd 100644
> --- a/www/manager6/dc/MetricServerView.js
> +++ b/www/manager6/dc/MetricServerView.js
> @@ -369,7 +369,7 @@ Ext.define('PVE.dc.InfluxDBEdit', {
> {
> xtype: 'proxmoxintegerfield',
> name: 'max-body-size',
> - fieldLabel: gettext('Batch Size (b)'),
> + fieldLabel: gettext('Batch Size (bits)'),
nit: this is unrelated to the reasoning above, might be nice to add some
information about this too and/or split it out
> minValue: 1,
> emptyText: '25000000',
> submitEmpty: false,
> diff --git a/www/manager6/window/Restore.js b/www/manager6/window/Restore.js
> index 690116df..7fb0167b 100644
> --- a/www/manager6/window/Restore.js
> +++ b/www/manager6/window/Restore.js
> @@ -93,13 +93,12 @@ Ext.define('PVE.window.Restore', {
> };
>
> if (view.vmid) {
> - confirmMsg += `. ${Ext.String.format(
> - gettext('This will permanently erase current {0} data.'),
> - view.vmtype === 'lxc' ? 'CT' : 'VM',
> - )}`;
> - if (view.vmtype === 'lxc') {
> + if (view.vmtype === 'lxc')
> + confirmMsg += `. ${gettext('This will permanently erase current CT data.')}`;
> confirmMsg += `<br>${gettext('Mount point volumes are also erased.')}`;
> - }
> + } else {
> + confirmMsg += `. ${gettext('This will permanently erase current VM data.')}`;
> + };
> Ext.Msg.confirm(gettext('Confirm'), confirmMsg, function (btn) {
> if (btn === 'yes') {
> executeRestore();
_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
next prev parent reply other threads:[~2025-07-30 12:47 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-30 10:38 [pve-devel] [PATCH backup/manager/pmg-gui/pmg-yew-quarantine-gui/proxmox-datacenter-manager/widget-toolkit/yew-mobile-gui/yew-widget-toolkit v2 00/16] Improve " Maximiliano Sandoval
2025-07-30 10:38 ` [pve-devel] [PATCH manager v2 1/3] add context to " Maximiliano Sandoval
2025-07-30 10:38 ` [pve-devel] [PATCH manager v2 2/3] improve some " Maximiliano Sandoval
2025-07-30 12:49 ` Shannon Sterz [this message]
2025-07-30 10:38 ` [pve-devel] [PATCH manager v2 3/3] use Unicode not equal sign in " Maximiliano Sandoval
2025-07-30 10:38 ` [pve-devel] [PATCH widget-toolkit v2 1/3] add context to " Maximiliano Sandoval
2025-07-30 10:38 ` [pve-devel] [PATCH widget-toolkit v2 2/3] " Maximiliano Sandoval
2025-07-30 12:48 ` Shannon Sterz
2025-07-30 10:38 ` [pve-devel] [PATCH widget-toolkit v2 3/3] use WebAuthn in translatable string Maximiliano Sandoval
2025-07-30 10:38 ` [pve-devel] [PATCH pmg-gui v2 1/2] add context to translatable strings Maximiliano Sandoval
2025-07-30 10:38 ` [pve-devel] [PATCH pmg-gui v2 2/2] use WebAuthn in " Maximiliano Sandoval
2025-07-30 10:38 ` [pve-devel] [PATCH backup v2 1/3] add translators comments to some translations Maximiliano Sandoval
2025-07-30 12:48 ` Shannon Sterz
2025-07-30 10:38 ` [pve-devel] [PATCH backup v2 2/3] improve some translatable strings Maximiliano Sandoval
2025-07-30 10:38 ` [pve-devel] [PATCH backup v2 3/3] use WebAuthn in " Maximiliano Sandoval
2025-07-30 10:38 ` [pve-devel] [PATCH proxmox-datacenter-manager v2 1/2] add context to " Maximiliano Sandoval
2025-07-30 12:48 ` Shannon Sterz
2025-07-30 13:12 ` Michael Köppl
2025-07-30 10:38 ` [pve-devel] [PATCH proxmox-datacenter-manager v2 2/2] improve " Maximiliano Sandoval
2025-07-30 10:38 ` [pve-devel] [PATCH yew-widget-toolkit v2 1/1] " Maximiliano Sandoval
2025-07-30 12:48 ` Shannon Sterz
2025-07-30 10:38 ` [pve-devel] [PATCH pve-yew-mobile-gui " Maximiliano Sandoval
2025-07-30 10:38 ` [pve-devel] [PATCH pmg-yew-quarantine-gui v2 1/1] improve some " Maximiliano Sandoval
2025-07-30 12:51 ` [pve-devel] [PATCH backup/manager/pmg-gui/pmg-yew-quarantine-gui/proxmox-datacenter-manager/widget-toolkit/yew-mobile-gui/yew-widget-toolkit v2 00/16] Improve " Shannon Sterz
2025-07-30 12:54 ` Thomas Lamprecht
2025-07-30 13:37 ` [pve-devel] superseded: " Maximiliano Sandoval
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=DBPEHDAIICJY.19RYQII2PP62I@proxmox.com \
--to=s.sterz@proxmox.com \
--cc=m.sandoval@proxmox.com \
--cc=pve-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.