diff --git a/cockatrice/src/window_main.cpp b/cockatrice/src/window_main.cpp index 1653e7f7..219f1dbe 100644 --- a/cockatrice/src/window_main.cpp +++ b/cockatrice/src/window_main.cpp @@ -31,8 +31,7 @@ #include #include #if QT_VERSION < 0x050000 - // for Qt::escape() - #include + #include // for Qt::escape() #endif #include "main.h" @@ -47,7 +46,6 @@ #include "localclient.h" #include "settingscache.h" #include "tab_game.h" - #include "version_string.h" #include "pb/game_replay.pb.h" @@ -55,6 +53,14 @@ #include "pb/event_connection_closed.pb.h" #include "pb/event_server_shutdown.pb.h" +#define GITHUB_CONTRIBUTORS_URL "https://github.com/Cockatrice/Cockatrice/graphs/contributors?type=c" +#define GITHUB_CONTRIBUTE_URL "https://github.com/Cockatrice/Cockatrice#cockatrice" +#define GITHUB_TRANSLATOR_RECOGNIZE_URL "https://github.com/Cockatrice/Cockatrice/wiki/Translators" +#define GITHUB_TRANSLATOR_FAQ_URL "https://github.com/Cockatrice/Cockatrice/wiki/Translation-FAQ" +#define GITHUB_ISSUES_URL "https://github.com/Cockatrice/Cockatrice/issues" +#define GITHUB_TROUBLESHOOTING_URL "https://github.com/Cockatrice/Cockatrice/wiki/Troubleshooting" +#define GITHUB_FAQ_URL "https://github.com/Cockatrice/Cockatrice/wiki/Frequently-Asked-Questions" + const QString MainWindow::appName = "Cockatrice"; void MainWindow::updateTabMenu(const QList &newMenuList) @@ -71,7 +77,7 @@ void MainWindow::processConnectionClosedEvent(const Event_ConnectionClosed &even client->disconnectFromServer(); QString reasonStr; switch (event.reason()) { - case Event_ConnectionClosed::USER_LIMIT_REACHED: reasonStr = tr("The server has reached its maximum user capacity, please check back later."); break; + case Event_ConnectionClosed::USER_LIMIT_REACHED: reasonStr = tr("The server has reached its maximum user capacity, please check back later."); break; case Event_ConnectionClosed::TOO_MANY_CONNECTIONS: reasonStr = tr("There are too many concurrent connections from your address."); break; case Event_ConnectionClosed::BANNED: { reasonStr = tr("Banned by moderator"); @@ -269,15 +275,15 @@ void MainWindow::actAbout() + "

" + tr("Project Manager:") + "
Gavin Bisesi

" + "" + tr("Past Project Managers:") + "
Max-Wilhelm Bruker
Marcus Schütz

" + "" + tr("Developers:") + "
" - + "" + tr("Our Developers") + "
" - + "" + tr("Help Develop!") + "

" + + "" + tr("Our Developers") + "
" + + "" + tr("Help Develop!") + "

" + "" + tr("Translators:") + "
" - + "" + tr("Recognition Page") + "
" - + "" + tr("Help Translate!") + "

" + + "" + tr("Recognition Page") + "
" + + "" + tr("Help Translate!") + "

" + "" + tr("Support:") + "
" - + "" + tr("Report an Issue") + "
" - + "" + tr("Troubleshooting") + "
" - + "" + tr("F.A.Q.") + "
" + + "" + tr("Report an Issue") + "
" + + "" + tr("Troubleshooting") + "
" + + "" + tr("F.A.Q.") + "
" )); }