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:
@@ -1,4 +1,5 @@
|
|||||||
1 russian x-vnd.Haiku-IFSScreensaver 1843903800
|
1 english x-vnd.Haiku-IFSScreensaver 2018309174
|
||||||
Iterated Function System\n\n© 1997 Massimino Pascal\n\nxscreensaver port by Stephan Aßmus\n<[email protected]> Screensaver IFS Геометрия фрактала\n\nВсе права защищены © 1997 Massimino Pascal\n\nпортировал из xscreensaver Stephan Aßmus\n<[email protected]>
|
Iterated Function System Screensaver IFS Геометрия фрактала
|
||||||
|
%screenSaverName%\n\n© 1997 Massimino Pascal\n\nxscreensaver port by Stephan Aßmus\n<[email protected]> Screensaver IFS %screenSaverName%\n\nВсе права защищены © 1997 Massimino Pascal\n\nпортировал из xscreensaver Stephan Aßmus\n<[email protected]>
|
||||||
Morphing speed: Screensaver IFS Скорость трансформирования:
|
Morphing speed: Screensaver IFS Скорость трансформирования:
|
||||||
Render dots additive Screensaver IFS Аддитивный рендеринг точек
|
Render dots additive Screensaver IFS Аддитивный рендеринг точек
|
||||||
|
|||||||
@@ -103,14 +103,18 @@ IFSSaver::StartConfig(BView *view)
|
|||||||
BTextView* textView = new BTextView(bounds, B_EMPTY_STRING, textRect,
|
BTextView* textView = new BTextView(bounds, B_EMPTY_STRING, textRect,
|
||||||
B_FOLLOW_ALL, B_WILL_DRAW);
|
B_FOLLOW_ALL, B_WILL_DRAW);
|
||||||
textView->SetViewColor(view->ViewColor());
|
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"
|
""B_UTF8_COPYRIGHT" 1997 Massimino Pascal\n\n"
|
||||||
"xscreensaver port by Stephan Aßmus\n"
|
"xscreensaver port by Stephan Aßmus\n"
|
||||||
"<[email protected]>"));
|
"<[email protected]>"));
|
||||||
|
BString screenSaverName(B_TRANSLATE("Iterated Function System"));
|
||||||
|
|
||||||
|
aboutScreenSaver.ReplaceFirst("%screenSaverName%", screenSaverName);
|
||||||
|
textView->Insert(aboutScreenSaver);
|
||||||
|
|
||||||
textView->SetStylable(true);
|
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->SetFontAndColor(25, 255, be_plain_font);
|
||||||
|
|
||||||
textView->MakeEditable(false);
|
textView->MakeEditable(false);
|
||||||
|
|||||||
Reference in New Issue
Block a user