From 6df90a2a75e6763d795082c93cb8d8be50eccad8 Mon Sep 17 00:00:00 2001 From: auria Date: Sun, 20 Feb 2011 23:14:26 +0000 Subject: [PATCH] Fixed strings git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7743 178a84e3-b1eb-0310-8ba1-8eac791a3b58 --- src/challenges/challenge.cpp | 4 ++-- src/modes/world.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/challenges/challenge.cpp b/src/challenges/challenge.cpp index 4978d1537..61ed9836a 100644 --- a/src/challenges/challenge.cpp +++ b/src/challenges/challenge.cpp @@ -42,7 +42,7 @@ const irr::core::stringw Challenge::UnlockableFeature::getUnlockedMessage() cons // shouldn't happen but let's avoid crashes as much as possible... if (track == NULL) return irr::core::stringw( L"????" ); - return _("New track '%s' now available", track->getName()); + return _("New track '%s' now available", core::stringw(track->getName())); break; } case UNLOCK_MODE: @@ -71,7 +71,7 @@ const irr::core::stringw Challenge::UnlockableFeature::getUnlockedMessage() cons // shouldn't happen but let's avoid crashes as much as possible... if (kp == NULL) return irr::core::stringw( L"????" ); - return _("New kart '%s' now available", kp->getName()); + return _("New kart '%s' now available", core::stringw(kp->getName())); } default: assert(false); diff --git a/src/modes/world.cpp b/src/modes/world.cpp index 3a6b96f91..0f2370928 100644 --- a/src/modes/world.cpp +++ b/src/modes/world.cpp @@ -747,7 +747,7 @@ void World::removeKart(int kart_number, bool notifyOfElimination) } else { - m_race_gui->addMessage(_("'%s' has been eliminated.", kart->getName()), + m_race_gui->addMessage(_("'%s' has been eliminated.", core::stringw(kart->getName())), *i, 2.0f, 60); } } // for i in kart