[haiku-commits] r35874 - haiku/trunk/src/apps/bootman

  • From: michael.w.pfeiffer@xxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Tue, 16 Mar 2010 10:21:26 +0100 (CET)

Author: laplace
Date: 2010-03-16 10:21:26 +0100 (Tue, 16 Mar 2010)
New Revision: 35874
Changeset: http://dev.haiku-os.org/changeset/35874/haiku

Modified:
   haiku/trunk/src/apps/bootman/BootManager.cpp
Log:
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).


Modified: haiku/trunk/src/apps/bootman/BootManager.cpp
===================================================================
--- haiku/trunk/src/apps/bootman/BootManager.cpp        2010-03-16 09:20:00 UTC 
(rev 35873)
+++ haiku/trunk/src/apps/bootman/BootManager.cpp        2010-03-16 09:21:26 UTC 
(rev 35874)
@@ -53,13 +53,18 @@
 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 @@
        view->GetFont(&font);
        font.SetSize(18);
        font.SetFace(B_BOLD_FACE);
-       view->SetFontAndColor(0, 18, &font);
+       view->SetFontAndColor(0, strlen(title), &font);
 
        alert->Go();
 }


Other related posts:

  • » [haiku-commits] r35874 - haiku/trunk/src/apps/bootman - michael . w . pfeiffer