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:
Stephan Aßmus 2010-09-12 18:55:31 +00:00
parent 86932f41cc
commit 188b1fe0d1

View File

@ -31,7 +31,8 @@ FileWindow::FileWindow(BRect rect, entry_ref *ref, const BMessage *settings)
BEntry entry(ref); BEntry entry(ref);
struct stat stat; 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); BPath path(ref);
SetTitle(path.Path()); SetTitle(path.Path());
} else if (entry.IsDirectory()) { } 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 // the ProbeView print menu items will be inserted here
menu->AddSeparatorItem(); 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))); new BMessage(B_ABOUT_REQUESTED)));
menu->AddSeparatorItem(); menu->AddSeparatorItem();
menu->AddItem(new BMenuItem(B_TRANSLATE("Quit"), new BMessage(B_QUIT_REQUESTED), menu->AddItem(new BMenuItem(B_TRANSLATE("Quit"),
'Q', B_COMMAND_KEY)); new BMessage(B_QUIT_REQUESTED), 'Q', B_COMMAND_KEY));
menu->SetTargetForItems(be_app); menu->SetTargetForItems(be_app);
item->SetTarget(this); item->SetTarget(this);
menuBar->AddItem(menu); menuBar->AddItem(menu);