Simplified translation text handling.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35775 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -199,9 +199,12 @@ BootManagerController::_RestoreMBR()
|
|||||||
fSettings.FindString("file", &path);
|
fSettings.FindString("file", &path);
|
||||||
|
|
||||||
BString message;
|
BString message;
|
||||||
message << TR("About to restore the Master Boot Record (MBR) of")
|
message << TR_CMT("About to restore the Master Boot Record (MBR) of"
|
||||||
<< " " << disk << " " << TR("from") << " " << path << ". " <<
|
" %disk from %file. Do you wish to continue?",
|
||||||
TR("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(),
|
BAlert* alert = new BAlert("confirm", message.String(),
|
||||||
TR("Restore MBR"), TR("Back"),
|
TR("Restore MBR"), TR("Back"),
|
||||||
NULL, B_WIDTH_AS_USUAL, B_WARNING_ALERT);
|
NULL, B_WIDTH_AS_USUAL, B_WARNING_ALERT);
|
||||||
|
|||||||
Reference in New Issue
Block a user