From 439859b9a769652a2d7a2a791efd6ca8a7804370 Mon Sep 17 00:00:00 2001 From: Philippe Houdoin Date: Thu, 20 Jan 2011 12:12:58 +0000 Subject: [PATCH] Screensaver name must support being localized too. Thanks Jorma Karvonen to point this. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40253 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/add-ons/screen_savers/leaves/Leaves.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/add-ons/screen_savers/leaves/Leaves.cpp b/src/add-ons/screen_savers/leaves/Leaves.cpp index 512296a33d..24823e84ea 100644 --- a/src/add-ons/screen_savers/leaves/Leaves.cpp +++ b/src/add-ons/screen_savers/leaves/Leaves.cpp @@ -135,12 +135,15 @@ Leaves::StartConfig(BView* view) BTextView* textView = new BTextView(bounds, B_EMPTY_STRING, bounds.OffsetToCopy(0., 0.), B_FOLLOW_ALL, B_WILL_DRAW); textView->SetViewColor(view->ViewColor()); - BString text = "Leaves\n\n"; + BString name = B_TRANSLATE("Leaves"); + BString text = name; + text << "\n\n"; text << B_TRANSLATE("by Deyan Genovski, Geoffry Song"); text << "\n\n"; + textView->Insert(text.String()); textView->SetStylable(true); - textView->SetFontAndColor(0, 6, be_bold_font); + textView->SetFontAndColor(0, name.Length(), be_bold_font); textView->MakeEditable(false); view->AddChild(textView);