Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Donald Haase
Cockatrice
Commits
324ddda4
Commit
324ddda4
authored
Aug 23, 2015
by
Zach
Browse files
Merge pull request #1416 from ZeldaZach/fix_1411
Define URLs
parents
14da4efe
a8727d5a
Changes
1
Hide whitespace changes
Inline
Side-by-side
cockatrice/src/window_main.cpp
View file @
324ddda4
...
...
@@ -31,8 +31,7 @@
#include
<QSystemTrayIcon>
#include
<QApplication>
#if QT_VERSION < 0x050000
// for Qt::escape()
#include
<QtGui/qtextdocument.h>
#include
<QtGui/qtextdocument.h>
// 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
<
QMenu
*>
&
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()
+
"<br><br><b>"
+
tr
(
"Project Manager:"
)
+
"</b><br>Gavin Bisesi<br><br>"
+
"<b>"
+
tr
(
"Past Project Managers:"
)
+
"</b><br>Max-Wilhelm Bruker<br>Marcus Schütz<br><br>"
+
"<b>"
+
tr
(
"Developers:"
)
+
"</b><br>"
+
"<a href='
https://github.com/Cockatrice/Cockatrice/graphs/contributors?type=c
'>"
+
tr
(
"Our Developers"
)
+
"</a><br>"
+
"<a href='
https://github.com/Cockatrice/Cockatrice#cockatrice
'>"
+
tr
(
"Help Develop!"
)
+
"</a><br><br>"
+
"<a href='
"
+
GITHUB_CONTRIBUTORS_URL
+
"
'>"
+
tr
(
"Our Developers"
)
+
"</a><br>"
+
"<a href='
"
+
GITHUB_CONTRIBUTE_URL
+
"
'>"
+
tr
(
"Help Develop!"
)
+
"</a><br><br>"
+
"<b>"
+
tr
(
"Translators:"
)
+
"</b><br>"
+
"<a href='
https://github.com/Cockatrice/Cockatrice/wiki/Translators
'>"
+
tr
(
"Recognition Page"
)
+
"</a><br>"
+
"<a href='
https://github.com/Cockatrice/Cockatrice/wiki/Translation-FAQ
'>"
+
tr
(
"Help Translate!"
)
+
"</a><br><br>"
+
"<a href='
"
+
GITHUB_TRANSLATOR_RECOGNIZE_URL
+
"
'>"
+
tr
(
"Recognition Page"
)
+
"</a><br>"
+
"<a href='
"
+
GITHUB_TRANSLATOR_FAQ_URL
+
"
'>"
+
tr
(
"Help Translate!"
)
+
"</a><br><br>"
+
"<b>"
+
tr
(
"Support:"
)
+
"</b><br>"
+
"<a href='
https://github.com/Cockatrice/Cockatrice/issues
'>"
+
tr
(
"Report an Issue"
)
+
"</a><br>"
+
"<a href='
https://github.com/Cockatrice/Cockatrice/wiki/Troubleshooting
'>"
+
tr
(
"Troubleshooting"
)
+
"</a><br>"
+
"<a href='
https://github.com/Cockatrice/Cockatrice/wiki/Frequently-Asked-Questions
'>"
+
tr
(
"F.A.Q."
)
+
"</a><br>"
+
"<a href='
"
+
GITHUB_ISSUES_URL
+
"
'>"
+
tr
(
"Report an Issue"
)
+
"</a><br>"
+
"<a href='
"
+
GITHUB_TROUBLESHOOTING_URL
+
"
'>"
+
tr
(
"Troubleshooting"
)
+
"</a><br>"
+
"<a href='
"
+
GITHUB_FAQ_URL
+
"
'>"
+
tr
(
"F.A.Q."
)
+
"</a><br>"
));
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment