381 } else { |
381 } else { |
382 cTimeS = [NSString stringWithFormat:@" %li:%02li:%02li", cTimeL/3600, (cTimeL/60) % 60, cTimeL%60]; |
382 cTimeS = [NSString stringWithFormat:@" %li:%02li:%02li", cTimeL/3600, (cTimeL/60) % 60, cTimeL%60]; |
383 } |
383 } |
384 } |
384 } |
385 } |
385 } |
386 NSString *label = [NSString stringWithFormat:@"%@ (%@%@)",[myConnection configName],local(cState), cTimeS]; |
386 NSString *label = [NSString stringWithFormat:@"%@ (%@%@)",[myConnection configName],NSLocalizedString(cState, nil), cTimeS]; |
387 [[tabView tabViewItemAtIndex:i] setLabel:label]; |
387 [[tabView tabViewItemAtIndex:i] setLabel:label]; |
388 i++; |
388 i++; |
389 } |
389 } |
390 } |
390 } |
391 |
391 |
395 unsigned connectionNumber = [connectionArray count]; |
395 unsigned connectionNumber = [connectionArray count]; |
396 NSString *myState; |
396 NSString *myState; |
397 if(connectionNumber == 1) { |
397 if(connectionNumber == 1) { |
398 myState = local(@"OpenVPN: 1 connection active."); |
398 myState = local(@"OpenVPN: 1 connection active."); |
399 } else { |
399 } else { |
400 myState = [NSString stringWithFormat:local(@"OpenVPN: %d connections active."),connectionNumber]; |
400 myState = [NSString stringWithFormat:NSLocalizedString(@"OpenVPN: %d connections active.", nil),connectionNumber]; |
401 } |
401 } |
402 |
402 |
403 [statusMenuItem setTitle: myState]; |
403 [statusMenuItem setTitle: myState]; |
404 [theItem setToolTip: myState]; |
404 [theItem setToolTip: myState]; |
405 |
405 |