Fix few spelling mistakes

s/Pieces size/Piece size/
s/uknown/unknown/

Closes #2367.
This commit is contained in:
Gabriele 2015-01-08 18:34:35 +01:00
parent 68c06c7485
commit d7161dcab1
4 changed files with 9 additions and 9 deletions

View file

@ -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;
}
}

View file

@ -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()));

View file

@ -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>

View file

@ -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/>