Use QString() for html codes in about dialog
This commit is contained in:
parent
13856b33ec
commit
df901c30ef
|
@ -106,27 +106,27 @@ QString About::MainHtml() const {
|
|||
|
||||
QString ret;
|
||||
|
||||
ret += "<p>";
|
||||
ret += QString("<p>");
|
||||
ret += tr("Version %1").arg(QCoreApplication::applicationVersion());
|
||||
ret += "</p>";
|
||||
ret += QString("</p>");
|
||||
|
||||
ret += "<p>";
|
||||
ret += QString("<p>");
|
||||
ret += tr("Strawberry is a music player and music collection organizer.");
|
||||
ret += "<br />";
|
||||
ret += QString("<br />");
|
||||
ret += tr("It is a fork of Clementine released in 2018 aimed at music collectors and audiophiles.");
|
||||
ret += "</p>";
|
||||
ret += QString("</p>");
|
||||
|
||||
ret += "<p>";
|
||||
ret += QString("<p>");
|
||||
ret += tr("Strawberry is free software released under GPL. The source code is available on %1").arg("<a href=\"https://github.com/strawberrymusicplayer/strawberry\">GitHub</a>.");
|
||||
ret += "<br />";
|
||||
ret += QString("<br />");
|
||||
ret += tr("You should have received a copy of the GNU General Public License along with this program. If not, see %1").arg("<a href=\"http://www.gnu.org/licenses/\">http://www.gnu.org/licenses/</a>");
|
||||
ret += "</p>";
|
||||
ret += QString("</p>");
|
||||
|
||||
ret += "<p>";
|
||||
ret += QString("<p>");
|
||||
ret += tr("If you like Strawberry and can make use of it, consider sponsoring or donating.");
|
||||
ret += "<br />";
|
||||
ret += QString("<br />");
|
||||
ret += tr("You can sponsor the author on %1. You can also make a one-time payment through %2.").arg("<a href=\"https://github.com/sponsors/jonaski\">GitHub sponsors</a>").arg("<a href=\"https://paypal.me/jonaskvinge\">paypal.me/jonaskvinge</a>");
|
||||
ret += "</p>";
|
||||
ret += QString("</p>");
|
||||
|
||||
return ret;
|
||||
|
||||
|
@ -136,54 +136,54 @@ QString About::ContributorsHtml() const {
|
|||
|
||||
QString ret;
|
||||
|
||||
ret += "<p>";
|
||||
ret += QString("<p>");
|
||||
ret += "<b>";
|
||||
ret += tr("Author and maintainer");
|
||||
ret += "</b>";
|
||||
for (const Person &person : strawberry_authors_) {
|
||||
ret += "<br />" + PersonToHtml(person);
|
||||
}
|
||||
ret += "</p>";
|
||||
ret += QString("</p>");
|
||||
|
||||
ret += "<p>";
|
||||
ret += QString("<p>");
|
||||
ret += "<b>";
|
||||
ret += tr("Contributors");
|
||||
ret += "</b>";
|
||||
for (const Person &person : strawberry_contributors_) {
|
||||
ret += "<br />" + PersonToHtml(person);
|
||||
}
|
||||
ret += "</p>";
|
||||
ret += QString("</p>");
|
||||
|
||||
ret += "<p>";
|
||||
ret += QString("<p>");
|
||||
ret += "<b>";
|
||||
ret += tr("Clementine authors");
|
||||
ret += "</b>";
|
||||
for (const Person &person : clementine_authors_) {
|
||||
ret += "<br />" + PersonToHtml(person);
|
||||
}
|
||||
ret += "</p>";
|
||||
ret += QString("</p>");
|
||||
|
||||
ret += "<p>";
|
||||
ret += QString("<p>");
|
||||
ret += "<b>";
|
||||
ret += tr("Clementine contributors");
|
||||
ret += "</b>";
|
||||
for (const Person &person : clementine_contributors_) {
|
||||
ret += "<br />" + PersonToHtml(person);
|
||||
}
|
||||
ret += "</p>";
|
||||
ret += QString("</p>");
|
||||
|
||||
ret += "<p>";
|
||||
ret += QString("<p>");
|
||||
ret += "<b>";
|
||||
ret += tr("Thanks to");
|
||||
ret += "</b>";
|
||||
for (const Person &person : strawberry_thanks_) {
|
||||
ret += "<br />" + PersonToHtml(person);
|
||||
}
|
||||
ret += "</p>";
|
||||
ret += QString("</p>");
|
||||
|
||||
ret += "<p>";
|
||||
ret += QString("<p>");
|
||||
ret += tr("Thanks to all the other Amarok and Clementine contributors.");
|
||||
ret += "</p>";
|
||||
ret += QString("</p>");
|
||||
return ret;
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue