[pve-devel] [PATCH v3 manager 1/3] gui/cluster: fix translation for cluster join button

Stefan Reiter s.reiter at proxmox.com
Mon Mar 23 13:41:12 CET 2020


New version including the cluster name didn't work in some languages,
e.g. german: "Beitreten 'cluster'" vs the correct "'cluster' beitreten"

Signed-off-by: Stefan Reiter <s.reiter at proxmox.com>
---
 www/manager6/dc/ClusterEdit.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/www/manager6/dc/ClusterEdit.js b/www/manager6/dc/ClusterEdit.js
index e0fa5d9d..7542104a 100644
--- a/www/manager6/dc/ClusterEdit.js
+++ b/www/manager6/dc/ClusterEdit.js
@@ -166,7 +166,7 @@ Ext.define('PVE.ClusterJoinNodeWindow', {
 	    submittxt: function(get) {
 		let cn = get('info.clusterName');
 		if (cn) {
-		    return `${gettext('Join')} '${cn}'`;
+		    return Ext.String.format(gettext('Join {0}'), `'${cn}'`);
 		}
 		return gettext('Join');
 	    },
-- 
2.25.2





More information about the pve-devel mailing list