[pbs-devel] [PATCH proxmox-backup] node config: display default language

Matthias Heiserer m.heiserer at proxmox.com
Thu Feb 10 11:16:31 CET 2022


The default-langage can now be reset by selecting 'Default (English)'.

Signed-off-by: Matthias Heiserer <m.heiserer at proxmox.com>
---
 www/config/NodeOptionView.js | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/www/config/NodeOptionView.js b/www/config/NodeOptionView.js
index 24458058..506768d9 100644
--- a/www/config/NodeOptionView.js
+++ b/www/config/NodeOptionView.js
@@ -46,11 +46,10 @@ Ext.define('PBS.NodeOptionView', {
 	    xtype: 'combobox',
 	    name: 'default-lang',
 	    text: gettext('Default language'),
-	    defaultValue: 'English',
-	    // skip the 'default' item. It's not possible to delete the default
-	    // language from the GUI, but setting it to 'en' has the same result
-	    comboItems: Proxmox.Utils.language_array().slice(1),
+	    defaultValue: '__default__',
+	    comboItems: Proxmox.Utils.language_array(),
 	    deleteEmpty: true,
+	    renderer: Proxmox.Utils.render_language,
 	},
     ],
 
-- 
2.30.2






More information about the pbs-devel mailing list