Patch by diver, the "About DiskProbe" menu entry was not localized.
Small coding style fixes by myself. Closes #6590. Thanks! git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38624 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
86932f41cc
commit
188b1fe0d1
@ -31,7 +31,8 @@ FileWindow::FileWindow(BRect rect, entry_ref *ref, const BMessage *settings)
|
||||
|
||||
BEntry entry(ref);
|
||||
struct stat stat;
|
||||
if (entry.GetStat(&stat) == B_OK && (S_ISBLK(stat.st_mode) || S_ISCHR(stat.st_mode))) {
|
||||
if (entry.GetStat(&stat) == B_OK && (S_ISBLK(stat.st_mode)
|
||||
|| S_ISCHR(stat.st_mode))) {
|
||||
BPath path(ref);
|
||||
SetTitle(path.Path());
|
||||
} else if (entry.IsDirectory()) {
|
||||
@ -80,12 +81,12 @@ FileWindow::FileWindow(BRect rect, entry_ref *ref, const BMessage *settings)
|
||||
// the ProbeView print menu items will be inserted here
|
||||
menu->AddSeparatorItem();
|
||||
|
||||
menu->AddItem(new BMenuItem("About DiskProbe" B_UTF8_ELLIPSIS,
|
||||
menu->AddItem(new BMenuItem(B_TRANSLATE("About DiskProbe" B_UTF8_ELLIPSIS),
|
||||
new BMessage(B_ABOUT_REQUESTED)));
|
||||
menu->AddSeparatorItem();
|
||||
|
||||
menu->AddItem(new BMenuItem(B_TRANSLATE("Quit"), new BMessage(B_QUIT_REQUESTED),
|
||||
'Q', B_COMMAND_KEY));
|
||||
menu->AddItem(new BMenuItem(B_TRANSLATE("Quit"),
|
||||
new BMessage(B_QUIT_REQUESTED), 'Q', B_COMMAND_KEY));
|
||||
menu->SetTargetForItems(be_app);
|
||||
item->SetTarget(this);
|
||||
menuBar->AddItem(menu);
|
||||
|
Loading…
Reference in New Issue
Block a user