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:
parent
64897ae792
commit
2876efaafe
@ -494,15 +494,14 @@ SettingsView::SettingsView(BRect frame)
|
|||||||
for (size_t i = 0; i < widthsLength; i++) {
|
for (size_t i = 0; i < widthsLength; i++) {
|
||||||
BString label;
|
BString label;
|
||||||
if (widths[i] == 0)
|
if (widths[i] == 0)
|
||||||
label.SetTo("screen resolution");
|
label.SetTo(B_TRANSLATE("screen resolution"));
|
||||||
else
|
else
|
||||||
label.SetToFormat("%" B_PRId32 " pixels", widths[i]);
|
label.SetToFormat(B_TRANSLATE("%" B_PRId32 " pixels"), widths[i]);
|
||||||
|
|
||||||
BMessage* message = new BMessage(kMsgWidth);
|
BMessage* message = new BMessage(kMsgWidth);
|
||||||
message->AddInt32("width", widths[i]);
|
message->AddInt32("width", widths[i]);
|
||||||
|
|
||||||
const char* l = label.String();
|
BMenuItem* item = new BMenuItem(label.String(), message);
|
||||||
BMenuItem* item = new BMenuItem(B_TRANSLATE(l), message);
|
|
||||||
popUpMenu->AddItem(item);
|
popUpMenu->AddItem(item);
|
||||||
item->SetMarked(gSettingsWidth == widths[i]);
|
item->SetMarked(gSettingsWidth == widths[i]);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user