]> git.proxmox.com Git - pve-manager-legacy.git/commitdiff
use gettext for 'none'
authorDietmar Maurer <dietmar@proxmox.com>
Wed, 13 Aug 2014 10:46:05 +0000 (12:46 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Wed, 13 Aug 2014 10:46:05 +0000 (12:46 +0200)
www/manager/Utils.js
www/manager/dc/AuthEdit.js
www/manager/form/CompressionSelector.js
www/manager/qemu/BootOrderEdit.js

index 4728b78f20bf4a8425235c2d31fa659314e20f11..f95c180ac48f27216ad1ccde30328f3347c5eb31 100644 (file)
@@ -670,6 +670,7 @@ Ext.define('PVE.Utils', { statics: {
 
     yesText: gettext('Yes'),
     noText: gettext('No'),
+    noneText: gettext('none'),
     errorText: gettext('Error'),
     unknownText: gettext('Unknown'),
     defaultText: gettext('Default'),
index 0efa47c3c7003f4d0f1054e66dbba90081cc611b..0ed901e55186727c9d5096c0bcfc11f22206b305 100644 (file)
@@ -127,7 +127,7 @@ Ext.define('PVE.dc.AuthEdit', {
             name: 'tfa',
            value: '',
             fieldLabel: gettext('TFA'),
-           data: [ ['', 'none'], ['oath', 'OATH'], ['yubico', 'Yubico']],
+           data: [ ['', PVE.Utils.noneText], ['oath', 'OATH'], ['yubico', 'Yubico']],
            listeners: {
                change: function(f, value) {
                    if (!me.rendered) {
index b060bfc79a4a6a248a5b82eb3da1712225c057b2..f32cae14b38610d5f89667efd2f9b06817828732 100644 (file)
@@ -6,7 +6,7 @@ Ext.define('PVE.form.CompressionSelector', {
        var me = this;
 
         me.data = [ 
-           ['', gettext('none')],
+           ['', PVE.Utils.noneText],
            ['lzo', 'LZO (' + gettext('fast') + ')'],
            ['gzip', 'GZIP (' + gettext('good') + ')']
        ];
index a42f330aae65990d88af7f9f1d19462beb6b2630..9601313eacad11fb0ace51a221e550b0c9bf759d 100644 (file)
@@ -78,7 +78,7 @@ Ext.define('PVE.qemu.BootOrderPanel', {
        //}
        
        if (includeNone) {
-           list.push(['', 'none']);
+           list.push(['', PVE.Utils.noneText]);
        }
 
        return list;