mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-11-25 18:56:34 +03:00
Fix few spelling mistakes
s/Pieces size/Piece size/ s/uknown/unknown/ Closes #2367.
This commit is contained in:
parent
68c06c7485
commit
d7161dcab1
4 changed files with 9 additions and 9 deletions
12
src/main.cpp
12
src/main.cpp
|
@ -114,7 +114,7 @@ struct QBtCommandLineParameters
|
|||
#endif
|
||||
int webUiPort;
|
||||
QStringList torrents;
|
||||
QString uknownParameter;
|
||||
QString unknownParameter;
|
||||
|
||||
QBtCommandLineParameters()
|
||||
: showHelp(false)
|
||||
|
@ -155,9 +155,9 @@ int main(int argc, char *argv[])
|
|||
|
||||
const QBtCommandLineParameters params = parseCommandLine();
|
||||
|
||||
if (!params.uknownParameter.isEmpty()) {
|
||||
displayBadArgMessage(QObject::tr("%1 is an uknown command line parameter.", "--random-parameter is an uknown command line parameter.")
|
||||
.arg(params.uknownParameter));
|
||||
if (!params.unknownParameter.isEmpty()) {
|
||||
displayBadArgMessage(QObject::tr("%1 is an unknown command line parameter.", "--random-parameter is an unknown command line parameter.")
|
||||
.arg(params.unknownParameter));
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
|
||||
|
@ -325,8 +325,8 @@ QBtCommandLineParameters parseCommandLine()
|
|||
}
|
||||
#endif
|
||||
else {
|
||||
//Uknown argument
|
||||
result.uknownParameter = arg;
|
||||
//Unknown argument
|
||||
result.unknownParameter = arg;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -259,7 +259,7 @@ void PropertiesWidget::loadTorrentInfos(const QTorrentHandle& _h)
|
|||
if (h.has_metadata()) {
|
||||
// Creation date
|
||||
lbl_creationDate->setText(h.creation_date());
|
||||
// Pieces size
|
||||
// Piece size
|
||||
pieceSize_lbl->setText(misc::friendlyUnit(h.piece_length()));
|
||||
// Comment
|
||||
comment_text->setHtml(misc::parseHtmlLinks(h.comment()));
|
||||
|
|
|
@ -478,7 +478,7 @@
|
|||
<item row="3" column="0">
|
||||
<widget class="QLabel" name="label_3">
|
||||
<property name="text">
|
||||
<string>Pieces size:</string>
|
||||
<string>Piece size:</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
<table>
|
||||
<tr><td style="text-align:right; padding: 4px;">QBT_TR(Save path:)QBT_TR</td><td id="save_path"></td></tr>
|
||||
<tr><td style="text-align:right; padding: 4px;">QBT_TR(Created on:)QBT_TR</td><td id="creation_date"></td></tr>
|
||||
<tr><td style="text-align:right; padding: 4px;">QBT_TR(Pieces size:)QBT_TR</td><td id="piece_size"></td></tr>
|
||||
<tr><td style="text-align:right; padding: 4px;">QBT_TR(Piece size:)QBT_TR</td><td id="piece_size"></td></tr>
|
||||
<tr><td style="text-align:right; padding: 4px;">QBT_TR(Torrent hash:)QBT_TR</td><td id="torrent_hash"></td></tr>
|
||||
<tr><td style="vertical-align: top; padding: 4px; text-align:right;">
|
||||
<br/>
|
||||
|
|
Loading…
Reference in a new issue