Fix localization of the about window.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36270 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Adrien Destugues 2010-04-14 20:07:39 +00:00
parent 2c49465329
commit 0b9dd3b0ad

View File

@ -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"));