Browse Source

Merge pull request #2377 from pmzqla/spelling

Fix few spelling mistakes
adaptive-webui-19844
sledgehammer999 10 years ago
parent
commit
6757cc0bfe
  1. 12
      src/main.cpp
  2. 2
      src/properties/propertieswidget.cpp
  3. 2
      src/properties/propertieswidget.ui
  4. 2
      src/webui/www/public/properties_content.html

12
src/main.cpp

@ -114,7 +114,7 @@ struct QBtCommandLineParameters @@ -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[]) @@ -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() @@ -325,8 +325,8 @@ QBtCommandLineParameters parseCommandLine()
}
#endif
else {
//Uknown argument
result.uknownParameter = arg;
//Unknown argument
result.unknownParameter = arg;
break;
}
}

2
src/properties/propertieswidget.cpp

@ -259,7 +259,7 @@ void PropertiesWidget::loadTorrentInfos(const QTorrentHandle& _h) @@ -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()));

2
src/properties/propertieswidget.ui

@ -478,7 +478,7 @@ @@ -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>

2
src/webui/www/public/properties_content.html

@ -13,7 +13,7 @@ @@ -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…
Cancel
Save