From 92347737bfc590dd40cc16ea7347d0f811003bfb Mon Sep 17 00:00:00 2001 From: Adrien Destugues Date: Wed, 30 Jun 2010 11:52:51 +0000 Subject: [PATCH] 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 --- src/apps/mail/MailApp.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/apps/mail/MailApp.cpp b/src/apps/mail/MailApp.cpp index eaf31ec4af..77fde5951d 100644 --- a/src/apps/mail/MailApp.cpp +++ b/src/apps/mail/MailApp.cpp @@ -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(); }