Author: pulkomandy Date: 2010-06-30 13:52:51 +0200 (Wed, 30 Jun 2010) New Revision: 37308 Changeset: http://dev.haiku-os.org/changeset/37308/haiku Modified: haiku/trunk/src/apps/mail/MailApp.cpp Log: Fix localization of mail so that the title is put in big font no matter the language. Modified: haiku/trunk/src/apps/mail/MailApp.cpp =================================================================== --- haiku/trunk/src/apps/mail/MailApp.cpp 2010-06-30 10:49:44 UTC (rev 37307) +++ haiku/trunk/src/apps/mail/MailApp.cpp 2010-06-30 11:52:51 UTC (rev 37308) @@ -149,11 +149,15 @@ 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 @@ 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(); }