Fix the formatting of Expander aboutbox so its still right when localized.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36169 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
8034f81f0c
commit
5ffdbfdebb
|
@ -31,8 +31,12 @@ ExpanderApp::ExpanderApp()
|
||||||
void
|
void
|
||||||
ExpanderApp::AboutRequested()
|
ExpanderApp::AboutRequested()
|
||||||
{
|
{
|
||||||
|
BString appName = TR("Expander");
|
||||||
|
int nameLength = appName.CountChars();
|
||||||
BAlert* alert = new BAlert("about",
|
BAlert* alert = new BAlert("about",
|
||||||
TR("Expander\n\twritten by Jérôme Duval\n\tCopyright 2004-2006, Haiku Inc.\n\noriginal Be version by \nDominic, Hiroshi, Peter, Pavel and Robert\n"),
|
appName.Append(TR("\n\twritten by Jérôme Duval\n"
|
||||||
|
"\tCopyright 2004-2006, Haiku Inc.\n\noriginal Be version by \n"
|
||||||
|
"Dominic, Hiroshi, Peter, Pavel and Robert\n")),
|
||||||
TR("OK"));
|
TR("OK"));
|
||||||
BTextView* view = alert->TextView();
|
BTextView* view = alert->TextView();
|
||||||
BFont font;
|
BFont font;
|
||||||
|
@ -42,7 +46,7 @@ ExpanderApp::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, 8, &font);
|
view->SetFontAndColor(0, nameLength, &font);
|
||||||
|
|
||||||
alert->Go();
|
alert->Go();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue