mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-11-29 13:58:51 +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
|
#endif
|
||||||
int webUiPort;
|
int webUiPort;
|
||||||
QStringList torrents;
|
QStringList torrents;
|
||||||
QString uknownParameter;
|
QString unknownParameter;
|
||||||
|
|
||||||
QBtCommandLineParameters()
|
QBtCommandLineParameters()
|
||||||
: showHelp(false)
|
: showHelp(false)
|
||||||
|
@ -155,9 +155,9 @@ int main(int argc, char *argv[])
|
||||||
|
|
||||||
const QBtCommandLineParameters params = parseCommandLine();
|
const QBtCommandLineParameters params = parseCommandLine();
|
||||||
|
|
||||||
if (!params.uknownParameter.isEmpty()) {
|
if (!params.unknownParameter.isEmpty()) {
|
||||||
displayBadArgMessage(QObject::tr("%1 is an uknown command line parameter.", "--random-parameter is an uknown command line parameter.")
|
displayBadArgMessage(QObject::tr("%1 is an unknown command line parameter.", "--random-parameter is an unknown command line parameter.")
|
||||||
.arg(params.uknownParameter));
|
.arg(params.unknownParameter));
|
||||||
return EXIT_FAILURE;
|
return EXIT_FAILURE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -325,8 +325,8 @@ QBtCommandLineParameters parseCommandLine()
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
else {
|
else {
|
||||||
//Uknown argument
|
//Unknown argument
|
||||||
result.uknownParameter = arg;
|
result.unknownParameter = arg;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -259,7 +259,7 @@ void PropertiesWidget::loadTorrentInfos(const QTorrentHandle& _h)
|
||||||
if (h.has_metadata()) {
|
if (h.has_metadata()) {
|
||||||
// Creation date
|
// Creation date
|
||||||
lbl_creationDate->setText(h.creation_date());
|
lbl_creationDate->setText(h.creation_date());
|
||||||
// Pieces size
|
// Piece size
|
||||||
pieceSize_lbl->setText(misc::friendlyUnit(h.piece_length()));
|
pieceSize_lbl->setText(misc::friendlyUnit(h.piece_length()));
|
||||||
// Comment
|
// Comment
|
||||||
comment_text->setHtml(misc::parseHtmlLinks(h.comment()));
|
comment_text->setHtml(misc::parseHtmlLinks(h.comment()));
|
||||||
|
|
|
@ -478,7 +478,7 @@
|
||||||
<item row="3" column="0">
|
<item row="3" column="0">
|
||||||
<widget class="QLabel" name="label_3">
|
<widget class="QLabel" name="label_3">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Pieces size:</string>
|
<string>Piece size:</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="alignment">
|
<property name="alignment">
|
||||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
<table>
|
<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(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(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="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;">
|
<tr><td style="vertical-align: top; padding: 4px; text-align:right;">
|
||||||
<br/>
|
<br/>
|
||||||
|
|
Loading…
Reference in a new issue