Adjust soccer result screen for new data
This commit is contained in:
parent
2cbd18ef7e
commit
5e5026ea68
@ -1428,6 +1428,8 @@ void RaceResultGUI::displayCTFResults()
|
||||
const bool own_goal = !(scorers.at(i).m_correct_goal);
|
||||
|
||||
result_text = scorers.at(i).m_player;
|
||||
if (scorers.at(i).m_handicap_level == HANDICAP_MEDIUM)
|
||||
result_text = _("%s (handicapped)", result_text);
|
||||
|
||||
if (own_goal)
|
||||
{
|
||||
@ -1435,6 +1437,11 @@ void RaceResultGUI::displayCTFResults()
|
||||
//I18N: indicates a player that scored in their own goal in result screen
|
||||
result_text.append(_("(Own Goal)"));
|
||||
}
|
||||
if (!scorers.at(i).m_country_code.empty())
|
||||
{
|
||||
result_text += " ";
|
||||
result_text += StringUtils::getCountryFlag(scorers.at(i).m_country_code);
|
||||
}
|
||||
|
||||
result_text.append(" ");
|
||||
result_text.append(StringUtils::timeToString(scorers.at(i).m_time).c_str());
|
||||
@ -1479,12 +1486,20 @@ void RaceResultGUI::displayCTFResults()
|
||||
const bool own_goal = !(scorers.at(i).m_correct_goal);
|
||||
|
||||
result_text = scorers.at(i).m_player;
|
||||
if (scorers.at(i).m_handicap_level == HANDICAP_MEDIUM)
|
||||
result_text = _("%s (handicapped)", result_text);
|
||||
|
||||
if (own_goal)
|
||||
{
|
||||
result_text.append(" ");
|
||||
//I18N: indicates a player that scored in their own goal in result screen
|
||||
result_text.append(_("(Own Goal)"));
|
||||
}
|
||||
if (!scorers.at(i).m_country_code.empty())
|
||||
{
|
||||
result_text += " ";
|
||||
result_text += StringUtils::getCountryFlag(scorers.at(i).m_country_code);
|
||||
}
|
||||
|
||||
result_text.append(" ");
|
||||
result_text.append(StringUtils::timeToString(scorers.at(i).m_time).c_str());
|
||||
|
Loading…
Reference in New Issue
Block a user