Fix non length-aware styling of localized strings.
* The about-like screen saver info has bold styling of heading part of the information string string. Localizing this string has provoked partial styling and visual "corruption-looking" glitches.
This commit is contained in:
parent
a139657921
commit
746656272a
@ -1,4 +1,5 @@
|
||||
1 russian x-vnd.Haiku-IFSScreensaver 1843903800
|
||||
Iterated Function System\n\n© 1997 Massimino Pascal\n\nxscreensaver port by Stephan Aßmus\n<stippi@yellowbites.com> Screensaver IFS Геометрия фрактала\n\nВсе права защищены © 1997 Massimino Pascal\n\nпортировал из xscreensaver Stephan Aßmus\n<stippi@yellowbites.com>
|
||||
1 english x-vnd.Haiku-IFSScreensaver 2018309174
|
||||
Iterated Function System Screensaver IFS Геометрия фрактала
|
||||
%screenSaverName%\n\n© 1997 Massimino Pascal\n\nxscreensaver port by Stephan Aßmus\n<stippi@yellowbites.com> Screensaver IFS %screenSaverName%\n\nВсе права защищены © 1997 Massimino Pascal\n\nпортировал из xscreensaver Stephan Aßmus\n<stippi@yellowbites.com>
|
||||
Morphing speed: Screensaver IFS Скорость трансформирования:
|
||||
Render dots additive Screensaver IFS Аддитивный рендеринг точек
|
||||
|
@ -103,14 +103,18 @@ IFSSaver::StartConfig(BView *view)
|
||||
BTextView* textView = new BTextView(bounds, B_EMPTY_STRING, textRect,
|
||||
B_FOLLOW_ALL, B_WILL_DRAW);
|
||||
textView->SetViewColor(view->ViewColor());
|
||||
textView->Insert(B_TRANSLATE("Iterated Function System\n\n"
|
||||
|
||||
BString aboutScreenSaver(B_TRANSLATE("%screenSaverName%\n\n"
|
||||
""B_UTF8_COPYRIGHT" 1997 Massimino Pascal\n\n"
|
||||
"xscreensaver port by Stephan Aßmus\n"
|
||||
"<stippi@yellowbites.com>"));
|
||||
BString screenSaverName(B_TRANSLATE("Iterated Function System"));
|
||||
|
||||
aboutScreenSaver.ReplaceFirst("%screenSaverName%", screenSaverName);
|
||||
textView->Insert(aboutScreenSaver);
|
||||
|
||||
textView->SetStylable(true);
|
||||
textView->SetFontAndColor(0, 24, be_bold_font);
|
||||
textView->SetFontAndColor(0, screenSaverName.Length(), be_bold_font);
|
||||
// textView->SetFontAndColor(25, 255, be_plain_font);
|
||||
|
||||
textView->MakeEditable(false);
|
||||
|
Loading…
Reference in New Issue
Block a user