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
eb927d77
Commit
eb927d77
authored
Apr 08, 2012
by
Max-Wilhelm Bruker
Browse files
updated German translation; added some missing retranslateUi() calls
parent
95cd293b
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
cockatrice/src/chatview.cpp
View file @
eb927d77
...
...
@@ -22,6 +22,11 @@ ChatView::ChatView(const TabSupervisor *_tabSupervisor, TabGame *_game, bool _sh
connect
(
this
,
SIGNAL
(
anchorClicked
(
const
QUrl
&
)),
this
,
SLOT
(
openLink
(
const
QUrl
&
)));
}
void
ChatView
::
retranslateUi
()
{
userContextMenu
->
retranslateUi
();
}
QTextCursor
ChatView
::
prepareBlock
(
bool
same
)
{
lastSender
.
clear
();
...
...
cockatrice/src/chatview.h
View file @
eb927d77
...
...
@@ -32,6 +32,7 @@ private slots:
void
openLink
(
const
QUrl
&
link
);
public:
ChatView
(
const
TabSupervisor
*
_tabSupervisor
,
TabGame
*
_game
,
bool
_showTimestamps
,
QWidget
*
parent
=
0
);
void
retranslateUi
();
void
appendHtml
(
const
QString
&
html
);
void
appendMessage
(
QString
message
,
QString
sender
=
QString
(),
UserLevelFlags
userLevel
=
UserLevelFlags
(),
bool
playerBold
=
false
);
protected:
...
...
cockatrice/src/tab_room.cpp
View file @
eb927d77
...
...
@@ -106,6 +106,7 @@ TabRoom::~TabRoom()
void
TabRoom
::
retranslateUi
()
{
gameSelector
->
retranslateUi
();
chatView
->
retranslateUi
();
sayLabel
->
setText
(
tr
(
"&Say:"
));
chatGroupBox
->
setTitle
(
tr
(
"Chat"
));
tabMenu
->
setTitle
(
tr
(
"&Room"
));
...
...
cockatrice/src/tab_supervisor.cpp
View file @
eb927d77
...
...
@@ -97,21 +97,26 @@ TabSupervisor::~TabSupervisor()
void
TabSupervisor
::
retranslateUi
()
{
QList
<
Tab
*>
tabs
;
if
(
tabServer
)
tabs
.
append
(
tabServer
);
if
(
tabDeckStorage
)
tabs
.
append
(
tabDeckStorage
);
tabs
.
append
(
tabServer
);
tabs
.
append
(
tabReplays
);
tabs
.
append
(
tabDeckStorage
);
tabs
.
append
(
tabAdmin
);
tabs
.
append
(
tabUserLists
);
QMapIterator
<
int
,
TabRoom
*>
roomIterator
(
roomTabs
);
while
(
roomIterator
.
hasNext
())
tabs
.
append
(
roomIterator
.
next
().
value
());
QMapIterator
<
int
,
TabGame
*>
gameIterator
(
gameTabs
);
while
(
gameIterator
.
hasNext
())
tabs
.
append
(
gameIterator
.
next
().
value
());
QListIterator
<
TabGame
*>
replayIterator
(
replayTabs
);
while
(
replayIterator
.
hasNext
())
tabs
.
append
(
replayIterator
.
next
());
for
(
int
i
=
0
;
i
<
tabs
.
size
();
++
i
)
{
setTabText
(
indexOf
(
tabs
[
i
]),
tabs
[
i
]
->
getTabText
());
tabs
[
i
]
->
retranslateUi
();
}
for
(
int
i
=
0
;
i
<
tabs
.
size
();
++
i
)
if
(
tabs
[
i
])
{
setTabText
(
indexOf
(
tabs
[
i
]),
tabs
[
i
]
->
getTabText
());
tabs
[
i
]
->
retranslateUi
();
}
}
AbstractClient
*
TabSupervisor
::
getClient
()
const
...
...
cockatrice/src/user_context_menu.cpp
View file @
eb927d77
...
...
@@ -22,15 +22,30 @@ UserContextMenu::UserContextMenu(const TabSupervisor *_tabSupervisor, QWidget *p
{
aUserName
=
new
QAction
(
QString
(),
this
);
aUserName
->
setEnabled
(
false
);
aDetails
=
new
QAction
(
tr
(
"User &details"
),
this
);
aChat
=
new
QAction
(
tr
(
"Direct &chat"
),
this
);
aShowGames
=
new
QAction
(
tr
(
"Show this user's &games"
),
this
);
aAddToBuddyList
=
new
QAction
(
tr
(
"Add to &buddy list"
),
this
);
aRemoveFromBuddyList
=
new
QAction
(
tr
(
"Remove from &buddy list"
),
this
);
aAddToIgnoreList
=
new
QAction
(
tr
(
"Add to &ignore list"
),
this
);
aRemoveFromIgnoreList
=
new
QAction
(
tr
(
"Remove from &ignore list"
),
this
);
aKick
=
new
QAction
(
tr
(
"Kick from &game"
),
this
);
aBan
=
new
QAction
(
tr
(
"Ban from &server"
),
this
);
aDetails
=
new
QAction
(
QString
(),
this
);
aChat
=
new
QAction
(
QString
(),
this
);
aShowGames
=
new
QAction
(
QString
(),
this
);
aAddToBuddyList
=
new
QAction
(
QString
(),
this
);
aRemoveFromBuddyList
=
new
QAction
(
QString
(),
this
);
aAddToIgnoreList
=
new
QAction
(
QString
(),
this
);
aRemoveFromIgnoreList
=
new
QAction
(
QString
(),
this
);
aKick
=
new
QAction
(
QString
(),
this
);
aBan
=
new
QAction
(
QString
(),
this
);
retranslateUi
();
}
void
UserContextMenu
::
retranslateUi
()
{
aDetails
->
setText
(
tr
(
"User &details"
));
aChat
->
setText
(
tr
(
"Direct &chat"
));
aShowGames
->
setText
(
tr
(
"Show this user's &games"
));
aAddToBuddyList
->
setText
(
tr
(
"Add to &buddy list"
));
aRemoveFromBuddyList
->
setText
(
tr
(
"Remove from &buddy list"
));
aAddToIgnoreList
->
setText
(
tr
(
"Add to &ignore list"
));
aRemoveFromIgnoreList
->
setText
(
tr
(
"Remove from &ignore list"
));
aKick
->
setText
(
tr
(
"Kick from &game"
));
aBan
->
setText
(
tr
(
"Ban from &server"
));
}
void
UserContextMenu
::
gamesOfUserReceived
(
const
Response
&
resp
,
const
CommandContainer
&
commandContainer
)
...
...
cockatrice/src/user_context_menu.h
View file @
eb927d77
...
...
@@ -35,6 +35,7 @@ private slots:
void
gamesOfUserReceived
(
const
Response
&
resp
,
const
CommandContainer
&
commandContainer
);
public:
UserContextMenu
(
const
TabSupervisor
*
_tabSupervisor
,
QWidget
*
_parent
,
TabGame
*
_game
=
0
);
void
retranslateUi
();
void
showContextMenu
(
const
QPoint
&
pos
,
const
QString
&
userName
,
UserLevelFlags
userLevel
,
int
playerId
=
-
1
);
};
...
...
cockatrice/translations/cockatrice_de.ts
View file @
eb927d77
This diff is collapsed.
Click to expand it.
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