From d7161dcab192246d7ce95cb4c5f6e2548fba896c Mon Sep 17 00:00:00 2001 From: Gabriele Date: Thu, 8 Jan 2015 18:34:35 +0100 Subject: [PATCH] Fix few spelling mistakes s/Pieces size/Piece size/ s/uknown/unknown/ Closes #2367. --- src/main.cpp | 12 ++++++------ src/properties/propertieswidget.cpp | 2 +- src/properties/propertieswidget.ui | 2 +- src/webui/www/public/properties_content.html | 2 +- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 5ff630b9c..63ab331f6 100644 --- a/src/main.cpp +++ b/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; } } diff --git a/src/properties/propertieswidget.cpp b/src/properties/propertieswidget.cpp index b20fc8333..017902fc1 100644 --- a/src/properties/propertieswidget.cpp +++ b/src/properties/propertieswidget.cpp @@ -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())); diff --git a/src/properties/propertieswidget.ui b/src/properties/propertieswidget.ui index c75ac0a25..16c46fbc6 100644 --- a/src/properties/propertieswidget.ui +++ b/src/properties/propertieswidget.ui @@ -478,7 +478,7 @@ - Pieces size: + Piece size: Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter diff --git a/src/webui/www/public/properties_content.html b/src/webui/www/public/properties_content.html index 3736a17dc..b3866c8a0 100644 --- a/src/webui/www/public/properties_content.html +++ b/src/webui/www/public/properties_content.html @@ -13,7 +13,7 @@ - +
QBT_TR(Save path:)QBT_TR
QBT_TR(Created on:)QBT_TR
QBT_TR(Pieces size:)QBT_TR
QBT_TR(Piece size:)QBT_TR
QBT_TR(Torrent hash:)QBT_TR