Commit 71a69316 authored by Dietmar Maurer's avatar Dietmar Maurer

use gettext for 'none'

parent eb9d4732
...@@ -670,6 +670,7 @@ Ext.define('PVE.Utils', { statics: { ...@@ -670,6 +670,7 @@ Ext.define('PVE.Utils', { statics: {
yesText: gettext('Yes'), yesText: gettext('Yes'),
noText: gettext('No'), noText: gettext('No'),
noneText: gettext('none'),
errorText: gettext('Error'), errorText: gettext('Error'),
unknownText: gettext('Unknown'), unknownText: gettext('Unknown'),
defaultText: gettext('Default'), defaultText: gettext('Default'),
......
...@@ -127,7 +127,7 @@ Ext.define('PVE.dc.AuthEdit', { ...@@ -127,7 +127,7 @@ Ext.define('PVE.dc.AuthEdit', {
name: 'tfa', name: 'tfa',
value: '', value: '',
fieldLabel: gettext('TFA'), fieldLabel: gettext('TFA'),
data: [ ['', 'none'], ['oath', 'OATH'], ['yubico', 'Yubico']], data: [ ['', PVE.Utils.noneText], ['oath', 'OATH'], ['yubico', 'Yubico']],
listeners: { listeners: {
change: function(f, value) { change: function(f, value) {
if (!me.rendered) { if (!me.rendered) {
......
...@@ -6,7 +6,7 @@ Ext.define('PVE.form.CompressionSelector', { ...@@ -6,7 +6,7 @@ Ext.define('PVE.form.CompressionSelector', {
var me = this; var me = this;
me.data = [ me.data = [
['', gettext('none')], ['', PVE.Utils.noneText],
['lzo', 'LZO (' + gettext('fast') + ')'], ['lzo', 'LZO (' + gettext('fast') + ')'],
['gzip', 'GZIP (' + gettext('good') + ')'] ['gzip', 'GZIP (' + gettext('good') + ')']
]; ];
......
...@@ -78,7 +78,7 @@ Ext.define('PVE.qemu.BootOrderPanel', { ...@@ -78,7 +78,7 @@ Ext.define('PVE.qemu.BootOrderPanel', {
//} //}
if (includeNone) { if (includeNone) {
list.push(['', 'none']); list.push(['', PVE.Utils.noneText]);
} }
return list; return list;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment