diff --git a/src/article_maker.cc b/src/article_maker.cc index 7b92805f..6684a767 100644 --- a/src/article_maker.cc +++ b/src/article_maker.cc @@ -246,6 +246,79 @@ std::string ArticleMaker::makeNotFoundBody( QString const & word, QString const return result; } +string ArticleMaker::makeWelcomePageHtml() const +{ + string result = makeHtmlHeader( tr( "Welcome!" ), QString(), cfg.alwaysExpandOptionalParts ); + //tooltip + result += R"()"; + result += R"()"; + result += R"()"; + + + result += + tr( + "
To start working with the program, first visit Edit|Dictionaries to add some directory paths where to search " + "for the dictionary files, set up various Wikipedia sites or other sources, adjust dictionary order or create dictionary groups." + "
And then you're ready to look up your words! You can do that in this window " + "by using a pane to the left, or you can . " + "
To customize program, check out the available preferences at Edit|Preferences. " + "All settings there have tooltips, be sure to read them if you are in doubt about anything." + "
Should you need further help, have any questions, " + "suggestions or just wonder what the others think, you are welcome at the program's forum." + "
Check program's website for the updates. " + "
(c) 2008-2013 Konstantin Isakov. Licensed under GPLv3 or later." + + ) + .toUtf8() + .data(); + + result += R"(
"; + QString theme = ""; + if ( !GlobalBroadcaster::instance()->getPreference()->darkReaderMode ) { + theme = "light"; + } + + result += QString( + R"()" ) + .arg( theme ) + .toStdString(); + + result += "