all lists on lists.proxmox.com
 help / color / mirror / Atom feed
From: "Daniel Kral" <d.kral@proxmox.com>
To: "Proxmox VE development discussion" <pve-devel@lists.proxmox.com>
Subject: Re: [pve-devel] [PATCH manager] ui: migration: Improve grammar on error string
Date: Fri, 09 Jan 2026 16:28:40 +0100	[thread overview]
Message-ID: <DFK5YBEK740H.1EK31WVSLX9J8@proxmox.com> (raw)
In-Reply-To: <20260109083058.92951-1-m.sandoval@proxmox.com>

On Fri Jan 9, 2026 at 9:30 AM CET, Maximiliano Sandoval wrote:
> Signed-off-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
> ---
>
> This was spotted while translating the UI:
>
>  - Toward was selected instead of towards due to it being slithly more common in
>    written american english, and also because the string was already too long.
>  - This string was mentioned at https://forum.proxmox.com/threads/ha-non-strict-negative-resource-affinity.176757/#post-822473
>
>
>  www/manager6/window/Migrate.js | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/www/manager6/window/Migrate.js b/www/manager6/window/Migrate.js
> index ff80c70c..702009c3 100644
> --- a/www/manager6/window/Migrate.js
> +++ b/www/manager6/window/Migrate.js
> @@ -428,7 +428,7 @@ Ext.define('PVE.window.Migrate', {
>                      if (cause === 'resource-affinity') {
>                          reasonText = Ext.String.format(
>                              gettext(
> -                                'HA resource {0} with negative affinity to VM on selected target node',
> +                                'HA resource {0} has negative affinity toward a VM on the selected target node',

Unfortunately, "a VM" is misleading here, because `sid`, is the
_blocking_ HA resource, which is the reason why "VM" cannot be migrated
to the selected target node.

Sorry that it was misleading, but maybe we could either use "the VM" or
"VM {vmid}", where vmid = vm.get('vmid') I think in there.

>                              ),
>                              sid,
>                          );
> @@ -518,7 +518,7 @@ Ext.define('PVE.window.Migrate', {
>                      if (cause === 'resource-affinity') {
>                          reasonText = Ext.String.format(
>                              gettext(
> -                                'HA resource {0} with negative affinity to container on selected target node',
> +                                'HA resource {0} has negative affinity toward a container on the selected target node',
>                              ),
>                              sid,
>                          );

Same here



Otherwise the new text is better, thanks for sending!

Would be a nice-to-have to also improve the text for positive resource
affinity rules in a second patch in the same manner so it's less
confusing :)


_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel


      reply	other threads:[~2026-01-09 15:29 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-01-09  8:30 Maximiliano Sandoval
2026-01-09 15:28 ` Daniel Kral [this message]

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=DFK5YBEK740H.1EK31WVSLX9J8@proxmox.com \
    --to=d.kral@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.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal