[pbs-devel] [PATCH proxmox-backup v2] GUI: add support for default language

Matthias Heiserer m.heiserer at proxmox.com
Thu Feb 10 12:57:37 CET 2022


Allows setting the default language in Configuration/Other/General

Signed-off-by: Matthias Heiserer <m.heiserer at proxmox.com>
---
 Sorry for the many mails!

 Without the proxmox-widget-toolkit patch, '__default__' will be shown
 when no default language is set in the config file.

 Changes from v1:
 use `__default__` as default value
 squash commits 
 
 www/config/NodeOptionView.js | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/www/config/NodeOptionView.js b/www/config/NodeOptionView.js
index 64f3d792..506768d9 100644
--- a/www/config/NodeOptionView.js
+++ b/www/config/NodeOptionView.js
@@ -42,7 +42,15 @@ Ext.define('PBS.NodeOptionView', {
 	    vtype: 'proxmoxMail',
 	    deleteEmpty: true,
 	},
-
+	{
+	    xtype: 'combobox',
+	    name: 'default-lang',
+	    text: gettext('Default language'),
+	    defaultValue: '__default__',
+	    comboItems: Proxmox.Utils.language_array(),
+	    deleteEmpty: true,
+	    renderer: Proxmox.Utils.render_language,
+	},
     ],
 
     initComponent: function() {
-- 
2.30.2






More information about the pbs-devel mailing list