Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Games
Kigo
Commits
808ce326
Commit
808ce326
authored
Mar 14, 2021
by
Albert Astals Cid
Browse files
Make the winning color translatable
BUGS: 262030
parent
4a7eca62
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/gui/mainwindow.cpp
View file @
808ce326
...
...
@@ -258,9 +258,9 @@ void MainWindow::finishGame()
Score
score
=
m_game
->
estimatedScore
();
QString
name
;
if
(
score
.
color
()
==
QLatin1Char
(
'W'
))
{
name
=
m_game
->
whitePlayer
().
name
()
+
" (White)"
;
name
=
i18n
(
"%1 (White)"
,
m_game
->
whitePlayer
().
name
()
)
;
}
else
{
name
=
m_game
->
blackPlayer
().
name
()
+
" (Black)"
;
name
=
i18n
(
"%1 (Black)"
,
m_game
->
blackPlayer
().
name
()
)
;
}
// Show a score message that stays visible until the next
// popup message arrives
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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