[haiku-commits] r38624 - haiku/trunk/src/apps/diskprobe

  • From: superstippi@xxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Sun, 12 Sep 2010 20:55:31 +0200 (CEST)

Author: stippi
Date: 2010-09-12 20:55:31 +0200 (Sun, 12 Sep 2010)
New Revision: 38624
Changeset: http://dev.haiku-os.org/changeset/38624
Ticket: http://dev.haiku-os.org/ticket/6590

Modified:
   haiku/trunk/src/apps/diskprobe/FileWindow.cpp
Log:
Patch by diver, the "About DiskProbe" menu entry was not localized.
Small coding style fixes by myself. Closes #6590. Thanks!


Modified: haiku/trunk/src/apps/diskprobe/FileWindow.cpp
===================================================================
--- haiku/trunk/src/apps/diskprobe/FileWindow.cpp       2010-09-12 17:24:38 UTC 
(rev 38623)
+++ haiku/trunk/src/apps/diskprobe/FileWindow.cpp       2010-09-12 18:55:31 UTC 
(rev 38624)
@@ -31,7 +31,8 @@
 
        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 @@
        // 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);


Other related posts:

  • » [haiku-commits] r38624 - haiku/trunk/src/apps/diskprobe - superstippi