fix typos in comments

Signed-off-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
This commit is contained in:
Maximiliano Sandoval 2024-07-17 14:16:46 +02:00 committed by Thomas Lamprecht
parent 48b64ef35b
commit d76c2b0f9e
17 changed files with 17 additions and 17 deletions

View File

@ -399,7 +399,7 @@ __PACKAGE__->register_method({
type => "object",
additionalProperties => 1,
properties => {
# TODO: document remaing ones
# TODO: document remaining ones
'boot-info' => {
description => "Meta-information about the boot mode.",
type => 'object',

View File

@ -86,7 +86,7 @@ sub read_aplinfo_from_fh {
$template = $res->{location};
$template =~ s|.*/([^/]+$PVE::Storage::VZTMPL_EXT_RE_1)$|$1|;
if ($res->{location} !~ m|^([a-zA-Z]+)\://|) {
# relative localtion (no http:// prefix)
# relative location (no http:// prefix)
$res->{location} = "$source/$res->{location}";
}
} else {

View File

@ -216,7 +216,7 @@ __PACKAGE__->register_method ({
print "start installation\n";
# this flag helps to determine when apt is actually done installing (vs. partial extracing)
# this flag helps to determine when apt is actually done installing (vs. partial extracting)
my $install_flag_fn = PVE::Ceph::Tools::ceph_install_flag_file();
open(my $install_flag, '>', $install_flag_fn) or die "could not create install flag - $!\n";
close $install_flag;

View File

@ -103,7 +103,7 @@ sub update_supported_cpuflags {
$supported_cpuflags = {};
} else {
# only set cached version if there's actually something to braodcast
# only set cached version if there's actually something to broadcast
$cached_kvm_version = $kvm_version;
}

View File

@ -89,7 +89,7 @@ sub _send_batch_size {
return $mtu - 50; # a bit more than 48byte to allow for safe room
}
# call with the smalles $data chunks possible
# call with the smallest $data chunks possible
sub add_metric_data {
my ($class, $txn, $data) = @_;
return if !defined($data);

View File

@ -65,7 +65,7 @@ Ext.define('PVE.Parser', {
if (Ext.isDefined(res[defaultKey])) {
throw 'defaultKey may be only defined once in propertyString';
}
res[defaultKey] = k; // k ist the value in this case
res[defaultKey] = k; // k is the value in this case
} else {
throw `Failed to parse key-value pair: ${property}`;
}

View File

@ -265,7 +265,7 @@ Ext.define('PVE.ceph.ServiceList', {
});
me.ids.push(list[i].id);
} else {
delete pendingRemoval[list[i].id]; // drop exisiting from for-removal
delete pendingRemoval[list[i].id]; // drop existing from for-removal
}
service.updateService(list[i].title, list[i].text, list[i].health);
}

View File

@ -124,7 +124,7 @@ Ext.define('PVE.dc.ACMEPluginEditor', {
datafield.setValue(extradata.join('\n'));
if (!me.createdInitially) {
datafield.resetOriginalValue();
me.createdInitially = true; // save that we initally set that
me.createdInitially = true; // save that we initially set that
}
},
onGetValues: function(values) {

View File

@ -37,7 +37,7 @@ Ext.define('PVE.form.SizeField', {
unit: 'MiB',
unitPostfix: '',
// use this if the backend saves values in another unit tha bytes, e.g.,
// use this if the backend saves values in a unit other than bytes, e.g.,
// for KiB set it to 'KiB'
backendUnit: undefined,

View File

@ -43,7 +43,7 @@ Ext.define('PVE.lxc.CPUEdit', {
},
});
// The view model of the parent shoul contain a 'cgroupMode' variable (or params for v2 are used).
// The view model of the parent should contain a 'cgroupMode' variable (or params for v2 are used).
Ext.define('PVE.lxc.CPUInputPanel', {
extend: 'Proxmox.panel.InputPanel',
alias: 'widget.pveLxcCPUInputPanel',

View File

@ -61,7 +61,7 @@ Ext.define('PVE.qemu.OSDefaults', {
networkCard: 'virtio',
});
// recommandation from http://wiki.qemu.org/Windows2000
// recommendation from http://wiki.qemu.org/Windows2000
addOS({
pveOS: 'w2k',
parent: 'generic',

View File

@ -180,7 +180,7 @@ Ext.define('PVE.qemu.PCIInputPanel', {
columnWidth: 1,
padding: '0 0 10 0',
itemId: 'iommuwarning',
value: 'The selected Device is not in a seperate IOMMU group, make sure this is intended.',
value: 'The selected Device is not in a separate IOMMU group, make sure this is intended.',
userCls: 'pmx-hint',
},
];

View File

@ -1,4 +1,4 @@
// The view model of the parent shoul contain a 'cgroupMode' variable (or params for v2 are used).
// The view model of the parent should contain a 'cgroupMode' variable (or params for v2 are used).
Ext.define('PVE.qemu.ProcessorInputPanel', {
extend: 'Proxmox.panel.InputPanel',
alias: 'widget.pveQemuProcessorPanel',

View File

@ -102,7 +102,7 @@ Ext.define('PVE.window.Migrate', {
},
onTargetChange: function(nodeSelector) {
// Always display the storages of the currently seleceted migration target
// Always display the storages of the currently selected migration target
this.lookup('pveDiskStorageSelector').setNodename(nodeSelector.value);
this.checkMigratePreconditions();
},

View File

@ -132,7 +132,7 @@ Ext.define('PVE.window.Restore', {
if (key === '#qmdump#map') {
let match = value.match(/^(\S+):(\S+):(\S*):(\S*):$/) ?? [];
// if a /dev/XYZ disk was backed up, ther is no storage hint
// if a /dev/XYZ disk was backed up, there is no storage hint
allStoragesAvailable &&= !!match[3] && !!PVE.data.ResourceStore.getById(
`storage/${view.nodename}/${match[3]}`);
} else if (key === 'name' || key === 'hostname') {

View File

@ -5,7 +5,7 @@ Ext.define('PVE.window.TreeSettingsEdit', {
title: gettext('Tree Settings'),
isCreate: false,
url: '#', // ignored as submit() gets overriden here, but the parent class requires it
url: '#', // ignored as submit() gets overridden here, but the parent class requires it
width: 450,
fieldDefaults: {

View File

@ -37,7 +37,7 @@ var js_api_version;
/**
* Message types for messsages to/from the extension
* Message types for messages to/from the extension
* @const
* @enum {string}
*/