fix: fix various user facing and non-user facing typos (#3743)

* fix: fix various user facing and non-user facing typos

Found via `odespell -q 3 -S ./third-party,*.po,*.ts -L filetest,inout`
This commit is contained in:
luzpaz 2022-08-31 12:28:54 -04:00 committed by GitHub
parent 6f0d520daf
commit f8203148f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
17 changed files with 20 additions and 20 deletions

View File

@ -10,7 +10,7 @@ Click "Preferences". Then go to tab "Remote"
![image](resources/QT-Enable-Web-Win-2.png)
Click on "Allow remote access" checkbox. If password protection is required, click on "Use authentication" checkbox, set username and password. If "Only allow these IP adresses" is checked, Transmission will only allow the specified list of addresses to access the web interface.
Click on "Allow remote access" checkbox. If password protection is required, click on "Use authentication" checkbox, set username and password. If "Only allow these IP addresses" is checked, Transmission will only allow the specified list of addresses to access the web interface.
![image](resources/QT-Enable-Web-Win-3.png)
@ -26,7 +26,7 @@ Then go to tab "Remote"
![Screenshot_2022-07-20_23-49-18](resources/QT-Enable-Web-Lnx-2.png)
Click on "Allow remote access" checkbox. If password protection is required, click on "Use authentication" checkbox, set username and password. If "Only allow these IP adresses" is checked, Transmission will only allow the specified list of addresses to access the web interface.
Click on "Allow remote access" checkbox. If password protection is required, click on "Use authentication" checkbox, set username and password. If "Only allow these IP addresses" is checked, Transmission will only allow the specified list of addresses to access the web interface.
![image](resources/QT-Enable-Web-Lnx-3.png)

View File

@ -131,7 +131,7 @@ HASH() is SHA1 binary output (20 bytes)
###### The handshake "packet" format
The handshake is seperated into 5 blocking steps.
The handshake is separated into 5 blocking steps.
1 A->B: Diffie Hellman Ya, PadA
2 B->A: Diffie Hellman Yb, PadB

View File

@ -367,7 +367,7 @@ static void onAnnounceDone(tr_web::FetchResponse const& web_response)
{
auto const* response_used = &response;
// All requests have been answered, but none were successfull.
// All requests have been answered, but none were successful.
// Choose the one that went further to report.
if (data->previous_response && !response.did_connect && !response.did_timeout)
{

View File

@ -56,7 +56,7 @@ struct tr_bandwidth_limits
*
* When you ask a bandwidth object for its speed, it gives the speed of the
* subtree underneath it as well. So you can get Transmission's overall
* speed by quering tr_session's bandwidth, per-torrent speeds by asking
* speed by querying tr_session's bandwidth, per-torrent speeds by asking
* tr_torrent's bandwidth, and per-peer speeds by asking tr_peer's bandwidth.
*
* CONSTRAINING

View File

@ -29,7 +29,7 @@ namespace
return (bit_count >> 3) + ((bit_count & 7) != 0 ? 1 : 0);
}
/* Used only in cases where it can be guranteed bit_count <= SIZE_MAX - 8 */
/* Used only in cases where it can be guaranteed bit_count <= SIZE_MAX - 8 */
[[nodiscard]] constexpr size_t getBytesNeededSafe(size_t bit_count) noexcept
{
return ((bit_count + 7) >> 3);

View File

@ -493,7 +493,7 @@ constexpr void opera_formatter(char* buf, size_t buflen, std::string_view name,
// Opera 8 previews and Opera 9.x releases use the following peer_id
// scheme: The first two characters are OP and the next four digits equal
// the build number. All following characters are random lowercase
// hexdecimal digits.
// hexadecimal digits.
buf_append(buf, buflen, name, ' ', std::string_view(&id[2], 4));
}

View File

@ -64,7 +64,7 @@ void tr_error_propagate(tr_error** new_error, tr_error** old_error);
void tr_error_clear(tr_error** error);
/**
* @brief Prefix message of exising error object.
* @brief Prefix message of existing error object.
*
* If passed pointer to error object is not `nullptr`, prefix its message with
* `printf`-style formatted text. Otherwise, do nothing.

View File

@ -392,7 +392,7 @@ struct jsonsl_state_st {
/*
* So now we need some special structure for keeping the
* JPR info in sync. Preferrably all in a single block
* JPR info in sync. Preferably all in a single block
* of memory (there's no need for separate allocations.
* So we will define a 'table' with the following layout
*

View File

@ -135,7 +135,7 @@ std::optional<tr_sha1_digest_t> parseHash(std::string_view sv)
{
// http://bittorrent.org/beps/bep_0009.html
// Is the info-hash hex encoded, for a total of 40 characters.
// For compatability with existing links in the wild, clients
// For compatibility with existing links in the wild, clients
// should also support the 32 character base32 encoded info-hash.
if (auto const hash = tr_sha1_from_string(sv); hash)

View File

@ -59,7 +59,7 @@ public:
void setInterval(std::chrono::milliseconds interval) override
{
TR_ASSERT_MSG(interval.count() > 0 || !is_repeating_, "repeating timers must have a postiive interval");
TR_ASSERT_MSG(interval.count() > 0 || !is_repeating_, "repeating timers must have a positive interval");
interval_ = interval;

View File

@ -21,7 +21,7 @@
auto const full_text = fmt::format(FMT_STRING("assertion failed: {:s} ({:s}:{:d})"), message, file, line);
[NSException raise:NSInternalInconsistencyException format:@"%s", full_text.c_str()];
// We should not reach this anyway, but it helps mark the function as propertly noreturn
// We should not reach this anyway, but it helps mark the function as property noreturn
// (the Objective-C NSException method does not).
abort();
}

View File

@ -72,7 +72,7 @@ struct tr_popcnt
/* Make sure we know how to find that right __builtin_popcount. */
static_assert(
sizeof(T) == sizeof(long long) || sizeof(T) == sizeof(long) || sizeof(T) <= sizeof(int),
"Unkown type size!");
"Unknown type size!");
if constexpr (sizeof(T) == sizeof(long long))
{
@ -174,7 +174,7 @@ struct tr_popcnt
{
/* Use LUT for small sizes. In reality we only need half a
* byte for each value if ever hit a case where perf is
* limitted by severe bottleneck on L1D this can be
* limited by severe bottleneck on L1D this can be
* optimized. */
static constexpr uint8_t popcnt_lut[256] = {
0, 1, 1, 2, 1, 2, 2, 3, 1, 2, 2, 3, 2, 3, 3, 4, 1, 2, 2, 3, 2, 3, 3, 4, 2, 3, 3, 4, 3, 4, 4, 5, 1, 2, 2, 3, 2,

View File

@ -314,7 +314,7 @@ bool tr_sessionIsIncompleteFileNamingEnabled(tr_session const* session);
* @details If true, libtransmission will open a server socket to listen
* for incoming http RPC requests as described in docs/rpc-spec.md.
*
* This is intially set by tr_sessionInit() and can be
* This is initially set by tr_sessionInit() and can be
* queried by tr_sessionIsRPCEnabled().
*/
void tr_sessionSetRPCEnabled(tr_session* session, bool is_enabled);
@ -754,7 +754,7 @@ bool tr_blocklistIsEnabled(tr_session const* session);
void tr_blocklistSetEnabled(tr_session* session, bool isEnabled);
/** @brief The blocklist that ges updated when an RPC client
/** @brief The blocklist that gets updated when an RPC client
invokes the "blocklist-update" method */
void tr_blocklistSetURL(tr_session*, char const* url);

View File

@ -463,7 +463,7 @@
NSAssert1(NO, @"Peer from unknown source: %ld", peerFrom);
}
//determing status strings from flags
//determine status strings from flags
NSMutableArray* statusArray = [NSMutableArray arrayWithCapacity:6];
NSString* flags = peer[@"Flags"];

View File

@ -411,7 +411,7 @@
- (void)outlineViewSelectionIsChanging:(NSNotification*)notification
{
#warning elliminate when view-based?
#warning eliminate when view-based?
//if pushing a button, don't change the selected rows
if (self.fSelectedValues)
{

View File

@ -23,7 +23,7 @@
- Parse `session-id` header case-insensitively ([#765](https://github.com/transmission/transmission/pull/765))
- Sanitize suspicious path components instead of rejecting them ([#62](https://github.com/transmission/transmission/pull/62), [#294](https://github.com/transmission/transmission/pull/294))
- Load CA certs from system store on Windows / OpenSSL ([#446](https://github.com/transmission/transmission/pull/446))
- Add support for mbedtls (formely polarssl) and wolfssl (formely cyassl), LibreSSL ([#115](https://github.com/transmission/transmission/pull/115), [#116](https://github.com/transmission/transmission/pull/116), [#284](https://github.com/transmission/transmission/pull/284), [#486](https://github.com/transmission/transmission/pull/486), [#524](https://github.com/transmission/transmission/pull/524), [#570](https://github.com/transmission/transmission/pull/570))
- Add support for mbedtls (formerly polarssl) and wolfssl (formerly cyassl), LibreSSL ([#115](https://github.com/transmission/transmission/pull/115), [#116](https://github.com/transmission/transmission/pull/116), [#284](https://github.com/transmission/transmission/pull/284), [#486](https://github.com/transmission/transmission/pull/486), [#524](https://github.com/transmission/transmission/pull/524), [#570](https://github.com/transmission/transmission/pull/570))
- Fix building against OpenSSL 1.1.0+ ([#24](https://github.com/transmission/transmission/pull/24))
- Fix quota support for uClibc-ng 1.0.18+ and DragonFly BSD ([#42](https://github.com/transmission/transmission/pull/42), [#58](https://github.com/transmission/transmission/pull/58), [#312](https://github.com/transmission/transmission/pull/312))
- Fix a number of memory leaks (magnet loading, session shutdown, bencoded data parsing) ([#56](https://github.com/transmission/transmission/pull/56))

View File

@ -417,7 +417,7 @@ export class Transmission extends EventTarget {
if (last === -1) {
this._selectRow(row);
} else {
// select the range between the prevous & current
// select the range between the previous & current
const next = this._rows.indexOf(row);
const min = Math.min(last, next);
const max = Math.max(last, next);