diff --git a/src/states_screens/dialogs/network_user_dialog.cpp b/src/states_screens/dialogs/network_user_dialog.cpp index 197a40c6b..ab7abaec4 100644 --- a/src/states_screens/dialogs/network_user_dialog.cpp +++ b/src/states_screens/dialogs/network_user_dialog.cpp @@ -114,10 +114,8 @@ void NetworkUserDialog::onUpdate(float dt) { // I18N: In the network player dialog, showing when waiting for // the result of the ranking info of a player - core::stringw fetching = - StringUtils::loadingDots(_("Fetching ranking info for %s.", - m_name)); - m_info_widget->setText(fetching, false); + core::stringw msg = _("Fetching ranking info for %s", m_name); + m_info_widget->setText(StringUtils::loadingDots(msg.c_str()), false); } // It's unsafe to delete from inside the event handler so we do it here diff --git a/src/states_screens/dialogs/player_rankings_dialog.cpp b/src/states_screens/dialogs/player_rankings_dialog.cpp index 6ecd49270..3d36d53eb 100644 --- a/src/states_screens/dialogs/player_rankings_dialog.cpp +++ b/src/states_screens/dialogs/player_rankings_dialog.cpp @@ -137,12 +137,8 @@ void PlayerRankingsDialog::onUpdate(float dt) { if (*m_fetched_ranking == false) { - // I18N: In the network player dialog, showing when waiting for - // the result of the ranking info of a player - core::stringw fetching = - StringUtils::loadingDots(_("Fetching ranking info for %s.", - m_name)); - m_ranking_info->setText(fetching, false); + core::stringw msg = _("Fetching ranking info for %s", m_name); + m_ranking_info->setText(StringUtils::loadingDots(msg.c_str()), false); } // It's unsafe to delete from inside the event handler so we do it here