[pbs-devel] [PATCH proxmox-backup 3/3] GUI option for node.cfg default-lang
Matthias Heiserer
m.heiserer at proxmox.com
Mon Feb 7 12:19:03 CET 2022
Signed-off-by: Matthias Heiserer <m.heiserer at proxmox.com>
---
www/config/NodeOptionView.js | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/www/config/NodeOptionView.js b/www/config/NodeOptionView.js
index 64f3d792..24458058 100644
--- a/www/config/NodeOptionView.js
+++ b/www/config/NodeOptionView.js
@@ -42,7 +42,16 @@ Ext.define('PBS.NodeOptionView', {
vtype: 'proxmoxMail',
deleteEmpty: true,
},
-
+ {
+ 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),
+ deleteEmpty: true,
+ },
],
initComponent: function() {
--
2.30.2
More information about the pbs-devel
mailing list