QTfrontend/ui/widget/about.cpp
changeset 12219 072ece492a65
parent 12218 b532cc42ebd4
child 12220 a7c08e4748ff
equal deleted inserted replaced
12218:b532cc42ebd4 12219:072ece492a65
    73     lbl1->setText(
    73     lbl1->setText(
    74         "<style type=\"text/css\">"
    74         "<style type=\"text/css\">"
    75         "a { color: #ffcc00; }"
    75         "a { color: #ffcc00; }"
    76 //            "a:hover { color: yellow; }"
    76 //            "a:hover { color: yellow; }"
    77         "</style>"
    77         "</style>"
    78         "<div align=\"center\"><h1>Hedgewars " + *cVersionString + "</h1>"
    78         //: %1 contains Hedgewars' version number
    79         "<h3>" + QLabel::tr("Revision") + " " + *cRevisionString + " (" + *cHashString + ")</h3>"
    79         "<div align=\"center\"><h1>"+QString(tr("Hedgewars %1")).arg(*cVersionString) + "</h1>"
    80         "<p><a href=\"https://www.hedgewars.org/\">https://www.hedgewars.org/</a></p>" +
    80         //: “Revision” stands for a revision in Mercurial, a distributed version control system. %1 is the revision, %2 is the hexadecimal hash.
    81         QLabel::tr("This program is distributed under the %1").arg("<a \
    81         "<h3>" + QString(tr("Revision %1 (%2)")).arg(*cRevisionString, *cHashString) + "</h3>"
    82         href=\"http://www.gnu.org/licenses/gpl-2.0.html\">GNU GPL v2</a>") +
    82         //: %1 is replaced by the URL of Hedgewars.
       
    83         "<p>" + QString(tr("Visit our homepage: %1"))
       
    84         .arg("<a href=\"https://www.hedgewars.org/\">https://www.hedgewars.org/</a>") + "</p>" +
       
    85         //: %1 is the name of a license
       
    86         tr("This program is distributed under the %1.")
       
    87 	.arg("<a href=\"http://www.gnu.org/licenses/gpl-2.0.html\">"+
       
    88         //: Short for “GNU General Public License version 2”
       
    89         tr("GNU GPL v2")+"</a>") +
    83         "</div>"
    90         "</div>"
    84     );
    91     );
    85     lbl1->setWordWrap(true);
    92     lbl1->setWordWrap(true);
    86     mainLayout->addWidget(lbl1, 0, 1);
    93     mainLayout->addWidget(lbl1, 0, 1);
    87 
    94 
    92     mainLayout->addWidget(lbl2, 1, 1);
    99     mainLayout->addWidget(lbl2, 1, 1);
    93 
   100 
    94     /* Library information */
   101     /* Library information */
    95 
   102 
    96     QString libinfo = "<style type=text/css>a:link { color: #FFFF6E; }</style>";
   103     QString libinfo = "<style type=text/css>a:link { color: #FFFF6E; }</style>";
       
   104     //: For the version numbers of Hedgewars' software dependencies
    97     libinfo.append(QString(tr("Dependency versions:") + QString("<br>")));
   105     libinfo.append(QString(tr("Dependency versions:") + QString("<br>")));
    98 
   106 
    99 #ifdef __GNUC__
   107 #ifdef __GNUC__
   100     libinfo.append(QString(tr("<a href=\"http://gcc.gnu.org\">GCC</a>: %1")).arg(__VERSION__));
   108     libinfo.append(QString(tr("<a href=\"http://gcc.gnu.org\">GCC</a>: %1")).arg(__VERSION__));
   101     libinfo.append(QString("<br>"));
   109     libinfo.append(QString("<br>"));