From 4e19eb33b305613d3e907aacc1323bdb6899ed57 Mon Sep 17 00:00:00 2001 From: Michael Pfeiffer Date: Tue, 16 Mar 2010 09:21:26 +0000 Subject: [PATCH] Removed authors and copyright year from translation text. Take the length of the about title text into account when making it bold (might be translated as well). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35874 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/bootman/BootManager.cpp | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/src/apps/bootman/BootManager.cpp b/src/apps/bootman/BootManager.cpp index fa289a7bf7..4a29313d24 100644 --- a/src/apps/bootman/BootManager.cpp +++ b/src/apps/bootman/BootManager.cpp @@ -53,13 +53,18 @@ BootManager::ReadyToRun() void BootManager::AboutRequested() { - BAlert *alert = new BAlert("about", - TR("Haiku Boot Manager\n\n" - "written by\n" + BString aboutText; + const char* title = TR_CMT("Haiku Boot Manager", "About text title"); + aboutText << + title << "\n\n" << + TR("written by") << "\n" "\tDavid Dengg\n" "\tMichael Pfeiffer\n" - "\n" - "Copyright 2008-10, Haiku Inc.\n"), TR("OK")); + "\n" << + TR_CMT("Copyright %year, Haiku Inc.\n", "Leave %year untranslated"); + aboutText.ReplaceLast("%year", "2008-2010"); + BAlert *alert = new BAlert("about", + aboutText.String(), TR("OK")); BTextView *view = alert->TextView(); BFont font; @@ -68,7 +73,7 @@ BootManager::AboutRequested() view->GetFont(&font); font.SetSize(18); font.SetFace(B_BOLD_FACE); - view->SetFontAndColor(0, 18, &font); + view->SetFontAndColor(0, strlen(title), &font); alert->Go(); }