Fix localization of mail so that the title is put in big font no matter the language.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37308 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -149,11 +149,15 @@ TMailApp::~TMailApp()
|
|||||||
void
|
void
|
||||||
TMailApp::AboutRequested()
|
TMailApp::AboutRequested()
|
||||||
{
|
{
|
||||||
BAlert *alert = new BAlert("about", B_TRANSLATE("Mail\n\n"
|
BString aboutText;
|
||||||
|
aboutText << B_TRANSLATE("Mail\n\n");
|
||||||
|
int titleLength = aboutText.Length();
|
||||||
|
aboutText << B_TRANSLATE(
|
||||||
"Written by Robert Polic.\n"
|
"Written by Robert Polic.\n"
|
||||||
"Enhanced by the Dr. Zoidberg crew.\n\n"
|
"Enhanced by the Dr. Zoidberg crew.\n\n"
|
||||||
"Copyright 1991-2001, Be Incorporated.\n"
|
"Copyright 1991-2001, Be Incorporated.\n"
|
||||||
"Copyright 2005-2010 Haiku, Inc.\n"), "OK");
|
"Copyright 2005-2010 Haiku, Inc.\n");
|
||||||
|
BAlert *alert = new BAlert("about", aboutText, B_TRANSLATE("OK"));
|
||||||
BTextView *view = alert->TextView();
|
BTextView *view = alert->TextView();
|
||||||
BFont font;
|
BFont font;
|
||||||
|
|
||||||
@@ -162,7 +166,7 @@ TMailApp::AboutRequested()
|
|||||||
view->GetFont(&font);
|
view->GetFont(&font);
|
||||||
font.SetSize(font.Size() + 7.0f);
|
font.SetSize(font.Size() + 7.0f);
|
||||||
font.SetFace(B_BOLD_FACE);
|
font.SetFace(B_BOLD_FACE);
|
||||||
view->SetFontAndColor(0, 4, &font);
|
view->SetFontAndColor(0, titleLength, &font);
|
||||||
|
|
||||||
alert->Go();
|
alert->Go();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user