From 0b9dd3b0adeef14a19481a4d6984bad19f6c37ff Mon Sep 17 00:00:00 2001 From: Adrien Destugues Date: Wed, 14 Apr 2010 20:07:39 +0000 Subject: [PATCH] Fix localization of the about window. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36270 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/pairs/PairsWindow.cpp | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/apps/pairs/PairsWindow.cpp b/src/apps/pairs/PairsWindow.cpp index d86e1212a6..3be23cc78f 100644 --- a/src/apps/pairs/PairsWindow.cpp +++ b/src/apps/pairs/PairsWindow.cpp @@ -220,13 +220,16 @@ PairsWindow::MessageReceived(BMessage* message) // game end and results if (fFinishPairs == fPairsView->fNumOfCards / 2) { BString strAbout; + BString score; + score << fButtonClicks; strAbout << "Pairs\n" - << "\twritten by Ralf Schülke\n" - << "\tCopyright 2008-2010, Haiku Inc.\n" - << "\n" - << "You completed the game in " << fButtonClicks - << " clicks.\n"; + "\twritten by Ralf Schülke\n" + "\tCopyright 2008-2010, Haiku Inc.\n" + "\n" + "You completed the game in %s clicks.\n"; + + strAbout.Replace("%s", score.String(), 1); BAlert* alert = new BAlert("about", TR(strAbout.String()), TR("New game"), TR("Quit game"));