[haiku-commits] r35775 - haiku/trunk/src/apps/bootman

  • From: michael.w.pfeiffer@xxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Sun, 7 Mar 2010 13:48:44 +0100 (CET)

Author: laplace
Date: 2010-03-07 13:48:44 +0100 (Sun, 07 Mar 2010)
New Revision: 35775
Changeset: http://dev.haiku-os.org/changeset/35775/haiku

Modified:
   haiku/trunk/src/apps/bootman/BootManagerController.cpp
Log:
Simplified translation text handling.

Modified: haiku/trunk/src/apps/bootman/BootManagerController.cpp
===================================================================
--- haiku/trunk/src/apps/bootman/BootManagerController.cpp      2010-03-07 
12:47:05 UTC (rev 35774)
+++ haiku/trunk/src/apps/bootman/BootManagerController.cpp      2010-03-07 
12:48:44 UTC (rev 35775)
@@ -199,9 +199,12 @@
        fSettings.FindString("file", &path);
 
        BString message;
-       message << TR("About to restore the Master Boot Record (MBR) of")
-               << " " << disk << " " << TR("from") << " " << path << ". " <<
-               TR("Do you wish to continue?");
+       message << TR_CMT("About to restore the Master Boot Record (MBR) of"
+               " %disk from %file. Do you wish to continue?",
+               "Don't translate the place holders: %disk and %file");
+       message.ReplaceFirst("%disk", disk);
+       message.ReplaceFirst("%file", path);
+
        BAlert* alert = new BAlert("confirm", message.String(),
                TR("Restore MBR"), TR("Back"),
                NULL, B_WIDTH_AS_USUAL, B_WARNING_ALERT);


Other related posts:

  • » [haiku-commits] r35775 - haiku/trunk/src/apps/bootman - michael . w . pfeiffer