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:
Adrien Destugues
2010-06-30 11:52:51 +00:00
parent 50ac237cfd
commit 92347737bf
+7 -3
View File
@@ -149,11 +149,15 @@ TMailApp::~TMailApp()
void
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"
"Enhanced by the Dr. Zoidberg crew.\n\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();
BFont font;
@@ -162,7 +166,7 @@ TMailApp::AboutRequested()
view->GetFont(&font);
font.SetSize(font.Size() + 7.0f);
font.SetFace(B_BOLD_FACE);
view->SetFontAndColor(0, 4, &font);
view->SetFontAndColor(0, titleLength, &font);
alert->Go();
}