Skip to content

Commit d9b7d16

Browse files
committed
Fix help description in command line
1 parent fb574c4 commit d9b7d16

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

src/NgPost.h

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,8 @@ private slots:
377377
inline static const QString & asciiArt();
378378
inline static QString asciiArtWithVersion();
379379
inline static QString desc();
380+
inline static QString descHTML();
381+
380382

381383
inline static QString quickJobName();
382384
inline static QString folderMonitoringName();
@@ -520,6 +522,22 @@ void NgPost::_enableAutoCompress()
520522

521523

522524
QString NgPost::desc()
525+
{
526+
return QString("%1 %2\n%3\n\n%4\n - %5\n - %6\n - %7\n - %8\n - %9\n - %10\n - %11\n%12\n").arg(sAppName).arg(
527+
tr("is a CMD/GUI Usenet binary poster developped in C++11/Qt5:")).arg(
528+
tr("It is designed to be as fast as possible and offer all the main features to post data easily and safely.")).arg(
529+
tr("Here are the main features and advantages of ngPost:")).arg(
530+
tr("compress (using your external rar binary) and generate the par2 before posting!")).arg(
531+
tr("scan folder(s) and post each file/folder individually after having them compressed")).arg(
532+
tr("monitor folder(s) to post each new file/folder individually after having them compressed")).arg(
533+
tr("auto delete files/folders once posted (only in command line with --auto or --monitor)")).arg(
534+
tr("generate the nzb")).arg(
535+
tr("invisible mode: full article obfuscation, unique feature making all Articles completely unrecognizable without the nzb")).arg(
536+
"...").arg(
537+
tr("for more details, cf https://github.com/mbruel/ngPost"));
538+
}
539+
540+
QString NgPost::descHTML()
523541
{
524542
return QString("%1 %2<br/>%3<br/><br/>%4<ul><li>%5</li><li>%6</li><li>%7</li><li>%8</li><li>%9</li><li>%10</li><li>%11</li></ul>%12<br/><br/>").arg(sAppName).arg(
525543
tr("is a CMD/GUI Usenet binary poster developped in C++11/Qt5:")).arg(
@@ -533,6 +551,7 @@ QString NgPost::desc()
533551
tr("invisible mode: full article obfuscation, unique feature making all Articles completely unrecognizable without the nzb")).arg(
534552
"...").arg(
535553
tr("for more details, cf <a href=\"https://github.com/mbruel/ngPost/\">https://github.com/mbruel/ngPost</a>"));
554+
536555
}
537556

538557
#endif // NGPOST_H

src/hmi/AboutNgPost.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ AboutNgPost::AboutNgPost(NgPost *ngPost, QWidget *parent) :
4040
ui->copyrightLbl->setFont(QFont( "Arial", 12, QFont::Bold));
4141

4242
ui->descLbl->setTextFormat(Qt::RichText);
43-
ui->descLbl->setText(ngPost->desc());
43+
ui->descLbl->setText(ngPost->descHTML());
4444
ui->descLbl->setOpenExternalLinks(true);
4545
ui->descLbl->setStyleSheet(QString("QLabel { color : %1; }").arg(sTextColor));
4646
ui->descLbl->setFont(QFont( "Caladea", 14, QFont::Medium));

0 commit comments

Comments
 (0)