fold similar strings together for easier translation

This commit is contained in:
Mitchell Livingston
2008-03-18 21:59:17 +00:00
parent d6a55c133b
commit f741e74659
5 changed files with 37 additions and 35 deletions

View File

@@ -1421,8 +1421,8 @@ void sleepCallBack(void * controller, io_service_t y, natural_t messageType, voi
else
tr_getSessionStats(fLib, &stats);
statusString = [NSLocalizedString(@"Ratio: ", "status bar -> status label")
stringByAppendingString: [NSString stringForRatio: stats.ratio]];
statusString = [NSString stringWithFormat: @"%@: %@", NSLocalizedString(@"Ratio", "status bar -> status label"),
[NSString stringForRatio: stats.ratio]];
}
else //STATUS_TRANSFER_TOTAL or STATUS_TRANSFER_SESSION
{
@@ -1434,9 +1434,9 @@ void sleepCallBack(void * controller, io_service_t y, natural_t messageType, voi
else
tr_getSessionStats(fLib, &stats);
statusString = [NSString stringWithFormat: NSLocalizedString(@"DL: %@ UL: %@",
"status bar -> status label (2 spaces between)"),
[NSString stringForFileSize: stats.downloadedBytes], [NSString stringForFileSize: stats.uploadedBytes]];
statusString = [NSString stringWithFormat: @"%@: %@ %@: %@",
NSLocalizedString(@"DL", "status bar -> status label"), [NSString stringForFileSize: stats.downloadedBytes],
NSLocalizedString(@"UL", "status bar -> status label"), [NSString stringForFileSize: stats.uploadedBytes]];
}
if ([NSApp isOnLeopardOrBetter])