tunblick/MenuController.m

changeset 7
0c0e4024a98e
parent 6
fe330a707a9f
child 8
07bbe272a9be
     1.1 --- a/tunblick/MenuController.m	Wed Jul 29 11:44:56 2009 +0200
     1.2 +++ b/tunblick/MenuController.m	Wed Jul 29 11:52:41 2009 +0200
     1.3 @@ -250,7 +250,7 @@
     1.4      
     1.5      while (item = [e nextObject]) 
     1.6      {
     1.7 -        [item setTitle:local([item title])];
     1.8 +        [item setTitle:NSLocalizedString([item title], nil)];
     1.9      }
    1.10  }
    1.11  
    1.12 @@ -383,7 +383,7 @@
    1.13                  }
    1.14              }
    1.15          }
    1.16 -		NSString *label = [NSString stringWithFormat:@"%@ (%@%@)",[myConnection configName],local(cState), cTimeS];
    1.17 +		NSString *label = [NSString stringWithFormat:@"%@ (%@%@)",[myConnection configName],NSLocalizedString(cState, nil), cTimeS];
    1.18  		[[tabView tabViewItemAtIndex:i] setLabel:label];
    1.19  		i++;
    1.20  	}
    1.21 @@ -397,7 +397,7 @@
    1.22  	if(connectionNumber == 1) {
    1.23  		myState = local(@"OpenVPN: 1 connection active.");
    1.24  	} else {
    1.25 -		myState = [NSString stringWithFormat:local(@"OpenVPN: %d connections active."),connectionNumber];
    1.26 +		myState = [NSString stringWithFormat:NSLocalizedString(@"OpenVPN: %d connections active.", nil),connectionNumber];
    1.27  	}
    1.28  	
    1.29      [statusMenuItem setTitle: myState];

mercurial