From 188b1fe0d1f8821ad354f892c1b800f0ffdced83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Sun, 12 Sep 2010 18:55:31 +0000 Subject: [PATCH] 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 --- src/apps/diskprobe/FileWindow.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/apps/diskprobe/FileWindow.cpp b/src/apps/diskprobe/FileWindow.cpp index d0690e2210..a1e9e01cc3 100644 --- a/src/apps/diskprobe/FileWindow.cpp +++ b/src/apps/diskprobe/FileWindow.cpp @@ -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);