[haiku-commits] r36270 - haiku/trunk/src/apps/pairs

  • From: pulkomandy@xxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Wed, 14 Apr 2010 22:07:39 +0200 (CEST)

Author: pulkomandy
Date: 2010-04-14 22:07:39 +0200 (Wed, 14 Apr 2010)
New Revision: 36270
Changeset: http://dev.haiku-os.org/changeset/36270/haiku

Modified:
   haiku/trunk/src/apps/pairs/PairsWindow.cpp
Log:
Fix localization of the about window.


Modified: haiku/trunk/src/apps/pairs/PairsWindow.cpp
===================================================================
--- haiku/trunk/src/apps/pairs/PairsWindow.cpp  2010-04-14 19:33:01 UTC (rev 
36269)
+++ haiku/trunk/src/apps/pairs/PairsWindow.cpp  2010-04-14 20:07:39 UTC (rev 
36270)
@@ -220,13 +220,16 @@
                                // 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"));


Other related posts:

  • » [haiku-commits] r36270 - haiku/trunk/src/apps/pairs - pulkomandy