Changeset 13928


Ignore:
Timestamp:
Feb 1, 2013, 9:02:40 PM (8 years ago)
Author:
jordan
Message:

#4076 'free space indicator': in the Qt and GTK+ clients, add 'Free' to the freespace labels to give more context of what the number means

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/gtk/tr-window.c

    r13927 r13928  
    842842      if (visible)
    843843        {
    844           char * tip;
     844          char * str;
    845845          char sizeStr[32];
    846846
    847847          tr_strlsize (sizeStr, n, sizeof(sizeStr));
    848           gtk_label_set_text (p->freespace_lb, sizeStr);
    849 
    850           tip = tr_strdup_printf (_("Download folder \"%1$s\" has %2$s free"), downloadDir, sizeStr);
    851           gtk_widget_set_tooltip_text (w, tip);
    852           g_free (tip);
     848
     849          str = g_strdup_printf (_("%s Free"), sizeStr);
     850          gtk_label_set_text (p->freespace_lb, str);
     851          g_free (str);
     852         
     853          str = g_strdup_printf (_("Download folder \"%1$s\" has %2$s free"), downloadDir, sizeStr);
     854          gtk_widget_set_tooltip_text (w, str);
     855          g_free (str);
    853856        }
    854857    }
  • trunk/qt/mainwin.cc

    r13927 r13928  
    732732        .arg (sizeStr);
    733733
    734       myFreeSpaceTextLabel->setText (sizeStr);
     734      myFreeSpaceTextLabel->setText (tr("%1 Free").arg(sizeStr));
    735735      myFreeSpaceTextLabel->setToolTip (tip);
    736736      myFreeSpaceIconLabel->setToolTip (tip);
Note: See TracChangeset for help on using the changeset viewer.