mirror of
https://github.com/transmission/transmission
synced 2025-03-10 06:02:57 +00:00
clean up the torrent count string creation a little
This commit is contained in:
parent
963d736dce
commit
66edcdee35
3 changed files with 8 additions and 8 deletions
|
@ -1813,18 +1813,17 @@ void sleepCallBack(void * controller, io_service_t y, natural_t messageType, voi
|
||||||
}
|
}
|
||||||
|
|
||||||
//set status bar torrent count text
|
//set status bar torrent count text
|
||||||
NSMutableString * totalTorrentsString = [[NSMutableString alloc] initWithString: @""];
|
NSString * totalTorrentsString;
|
||||||
if (filtering)
|
|
||||||
[totalTorrentsString appendFormat: @"%d/", [fDisplayedTorrents count]];
|
|
||||||
|
|
||||||
int totalCount = [fTorrents count];
|
int totalCount = [fTorrents count];
|
||||||
if (totalCount != 1)
|
if (totalCount != 1)
|
||||||
[totalTorrentsString appendFormat: NSLocalizedString(@"%d Transfers", "Status bar transfer count"), totalCount];
|
totalTorrentsString = [NSString stringWithFormat: NSLocalizedString(@"%d Transfers", "Status bar transfer count"), totalCount];
|
||||||
else
|
else
|
||||||
[totalTorrentsString appendString: NSLocalizedString(@"1 Transfer", "Status bar transfer count")];
|
totalTorrentsString = NSLocalizedString(@"1 Transfer", "Status bar transfer count");
|
||||||
|
|
||||||
|
if (filtering)
|
||||||
|
totalTorrentsString = [NSString stringWithFormat: @"%d/%@", [fDisplayedTorrents count], totalTorrentsString];
|
||||||
|
|
||||||
[fTotalTorrentsField setStringValue: totalTorrentsString];
|
[fTotalTorrentsField setStringValue: totalTorrentsString];
|
||||||
[totalTorrentsString release];
|
|
||||||
|
|
||||||
[self setWindowSizeToFit];
|
[self setWindowSizeToFit];
|
||||||
}
|
}
|
||||||
|
|
3
macosx/English.lproj/MainMenu.nib/info.nib
generated
3
macosx/English.lproj/MainMenu.nib/info.nib
generated
|
@ -10,7 +10,8 @@
|
||||||
<integer>5</integer>
|
<integer>5</integer>
|
||||||
<key>IBOpenObjects</key>
|
<key>IBOpenObjects</key>
|
||||||
<array>
|
<array>
|
||||||
<integer>1808</integer>
|
<integer>1480</integer>
|
||||||
|
<integer>2351</integer>
|
||||||
</array>
|
</array>
|
||||||
<key>IBSystem Version</key>
|
<key>IBSystem Version</key>
|
||||||
<string>9B18</string>
|
<string>9B18</string>
|
||||||
|
|
BIN
macosx/English.lproj/MainMenu.nib/keyedobjects.nib
generated
BIN
macosx/English.lproj/MainMenu.nib/keyedobjects.nib
generated
Binary file not shown.
Loading…
Add table
Reference in a new issue