Removed authors and copyright year from translation text.
Take the length of the about title text into account when making it bold (might be translated as well). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35874 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -53,13 +53,18 @@ BootManager::ReadyToRun()
|
|||||||
void
|
void
|
||||||
BootManager::AboutRequested()
|
BootManager::AboutRequested()
|
||||||
{
|
{
|
||||||
BAlert *alert = new BAlert("about",
|
BString aboutText;
|
||||||
TR("Haiku Boot Manager\n\n"
|
const char* title = TR_CMT("Haiku Boot Manager", "About text title");
|
||||||
"written by\n"
|
aboutText <<
|
||||||
|
title << "\n\n" <<
|
||||||
|
TR("written by") << "\n"
|
||||||
"\tDavid Dengg\n"
|
"\tDavid Dengg\n"
|
||||||
"\tMichael Pfeiffer\n"
|
"\tMichael Pfeiffer\n"
|
||||||
"\n"
|
"\n" <<
|
||||||
"Copyright 2008-10, Haiku Inc.\n"), TR("OK"));
|
TR_CMT("Copyright %year, Haiku Inc.\n", "Leave %year untranslated");
|
||||||
|
aboutText.ReplaceLast("%year", "2008-2010");
|
||||||
|
BAlert *alert = new BAlert("about",
|
||||||
|
aboutText.String(), TR("OK"));
|
||||||
BTextView *view = alert->TextView();
|
BTextView *view = alert->TextView();
|
||||||
BFont font;
|
BFont font;
|
||||||
|
|
||||||
@@ -68,7 +73,7 @@ BootManager::AboutRequested()
|
|||||||
view->GetFont(&font);
|
view->GetFont(&font);
|
||||||
font.SetSize(18);
|
font.SetSize(18);
|
||||||
font.SetFace(B_BOLD_FACE);
|
font.SetFace(B_BOLD_FACE);
|
||||||
view->SetFontAndColor(0, 18, &font);
|
view->SetFontAndColor(0, strlen(title), &font);
|
||||||
|
|
||||||
alert->Go();
|
alert->Go();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user