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
This commit is contained in:
@@ -135,12 +135,15 @@ Leaves::StartConfig(BView* view)
|
|||||||
BTextView* textView = new BTextView(bounds, B_EMPTY_STRING,
|
BTextView* textView = new BTextView(bounds, B_EMPTY_STRING,
|
||||||
bounds.OffsetToCopy(0., 0.), B_FOLLOW_ALL, B_WILL_DRAW);
|
bounds.OffsetToCopy(0., 0.), B_FOLLOW_ALL, B_WILL_DRAW);
|
||||||
textView->SetViewColor(view->ViewColor());
|
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 << B_TRANSLATE("by Deyan Genovski, Geoffry Song");
|
||||||
text << "\n\n";
|
text << "\n\n";
|
||||||
|
|
||||||
textView->Insert(text.String());
|
textView->Insert(text.String());
|
||||||
textView->SetStylable(true);
|
textView->SetStylable(true);
|
||||||
textView->SetFontAndColor(0, 6, be_bold_font);
|
textView->SetFontAndColor(0, name.Length(), be_bold_font);
|
||||||
textView->MakeEditable(false);
|
textView->MakeEditable(false);
|
||||||
view->AddChild(textView);
|
view->AddChild(textView);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user