|
From: Fredrik K. <sci...@us...> - 2010-09-01 14:12:48
|
Module: performous
Branch: master
Commit: 6590dcde0b654486c1a08a9d27032e027d956762
Author: Fredrik Klasson <fr...@li...>
Date: Wed Sep 1 16:11:57 2010 +0200
[ ] Allow translation to lanugages with different word order for "Hiscore for %1%".
---
game/screen_songs.cc | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/game/screen_songs.cc b/game/screen_songs.cc
index 8b2c3d2..69b95c1 100644
--- a/game/screen_songs.cc
+++ b/game/screen_songs.cc
@@ -9,6 +9,7 @@
#include "i18n.hh"
#include <iostream>
#include <sstream>
+#include <boost/format.hpp>
static const double IDLE_TIMEOUT = 45.0; // seconds
@@ -209,7 +210,7 @@ void ScreenSongs::draw() {
oss_order << "(" << m_songs.currentId() + 1 << "/" << m_songs.size() << ")";
} else {
// Format the song information text
- oss_song << _("Hiscore for ") << song.title << "\n";
+ oss_song << boost::format(_("Hisccore for %1%\n")) % song.title;
// Get hiscores from database
m_database.queryPerSongHiscore_HiscoreDisplay(oss_order, m_songs.currentPtr(), hiscore_start_pos, 5);
}
|