[pve-devel] [PATCH widget-toolkit 1/1] fixes #4874: Improve VM Name error message

Thomas Lamprecht t.lamprecht at proxmox.com
Wed Aug 2 10:16:12 CEST 2023


First thanks for this patch, such polishing are important contributions!

Am 26/07/2023 um 17:36 schrieb Amin Vakil:

please add the cover letter text to the commit message so that the context is
actually conserved in git history.

Also, for a simple single patch a cover letter is rather overhead, so you can
omit it there.


> Signed-off-by: Amin Vakil <info at aminvakil.com>
> ---
>  src/Toolkit.js | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/src/Toolkit.js b/src/Toolkit.js
> index 67200c8..9dc28b9 100644
> --- a/src/Toolkit.js
> +++ b/src/Toolkit.js
> @@ -129,12 +129,12 @@ Ext.apply(Ext.form.field.VTypes, {
>      DnsName: function(v) {
>  	return Proxmox.Utils.DnsName_match.test(v);
>      },
> -    DnsNameText: gettext('This is not a valid DNS name'),
> +    DnsNameText: gettext('This is not a valid Host name'),

I'd not capitalize "Host" that looks odd here, it isn't an acronym after all.

Maybe even spell it together as "hostname", but no hard feelings on that part.

>  
>      DnsNameOrWildcard: function(v) {
>  	return Proxmox.Utils.DnsName_or_Wildcard_match.test(v);
>      },
> -    DnsNameOrWildcardText: gettext('This is not a valid DNS name'),
> +    DnsNameOrWildcardText: gettext('This is not a valid Host name'),

same as above

>  
>      // email regex used by pve-common
>      proxmoxMail: function(v) {






More information about the pve-devel mailing list