screen_savers/nebula: Add more localization

Change-Id: Ic896d058b42440659f83af794f63d9392c4e7a11
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4276
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
This commit is contained in:
Murai Takashi 2021-07-29 06:16:52 +09:00 committed by Jérôme Duval
parent 64897ae792
commit 2876efaafe

View File

@ -494,15 +494,14 @@ SettingsView::SettingsView(BRect frame)
for (size_t i = 0; i < widthsLength; i++) {
BString label;
if (widths[i] == 0)
label.SetTo("screen resolution");
label.SetTo(B_TRANSLATE("screen resolution"));
else
label.SetToFormat("%" B_PRId32 " pixels", widths[i]);
label.SetToFormat(B_TRANSLATE("%" B_PRId32 " pixels"), widths[i]);
BMessage* message = new BMessage(kMsgWidth);
message->AddInt32("width", widths[i]);
const char* l = label.String();
BMenuItem* item = new BMenuItem(B_TRANSLATE(l), message);
BMenuItem* item = new BMenuItem(label.String(), message);
popUpMenu->AddItem(item);
item->SetMarked(gSettingsWidth == widths[i]);
}