From 6b862e027ca1f0e21a79e47b802c4ab1f063bafc Mon Sep 17 00:00:00 2001 From: Michael Pfeiffer Date: Sun, 7 Mar 2010 12:48:44 +0000 Subject: [PATCH] Simplified translation text handling. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35775 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/bootman/BootManagerController.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/apps/bootman/BootManagerController.cpp b/src/apps/bootman/BootManagerController.cpp index 32666ab6d4..b7afa70312 100644 --- a/src/apps/bootman/BootManagerController.cpp +++ b/src/apps/bootman/BootManagerController.cpp @@ -199,9 +199,12 @@ BootManagerController::_RestoreMBR() 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);