Developer Area

Show
Ignore:
Timestamp:
07/12/09 17:10:02 (5 years ago)
Author:
henri
Message:

Changed to use NSLocalizedString and rewrote the strings localization file

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • apps/iphone/superbook/trunk/Classes/DotTelABMapper.m

    r397 r461  
    252252        abValue = (CFStringRef)[[[rec uriContent] componentsSeparatedByString:@":"] objectAtIndex:1]; 
    253253        if ([lih isEqualToString:@"x-main"]) { 
    254                 abLabel = (CFStringRef)LocStr(@"Main Fax"); 
     254                abLabel = (CFStringRef)NSLocalizedString(@"Main Fax", @"'Main Fax' label"); 
    255255        } else if ([lih isEqualToString:@"x-home"]) { 
    256256                abLabel = kABPersonPhoneHomeFAXLabel; 
     
    276276        abValue = (CFStringRef)[[[rec uriContent] componentsSeparatedByString:@":"] objectAtIndex:1]; 
    277277        if ([lih isEqualToString:@"x-main"]) { 
    278                 abLabel = (CFStringRef)LocStr(@"main"); 
     278                abLabel = (CFStringRef)NSLocalizedString(@"main", @"Label 'Main' for contact info"); 
    279279        } else if ([lih isEqualToString:@"x-home"]) { 
    280280                abLabel = kABHomeLabel; 
     
    331331        NSString *servicePostfix = [[service componentsSeparatedByString:@":"] objectAtIndex:1]; 
    332332        if ([lih isEqualToString:@"x-main"]) { 
    333                 abLabel = (CFStringRef)[servicePostfix stringByAppendingFormat:@" %@",LocStr(@"main")]; 
     333                abLabel = (CFStringRef)[servicePostfix stringByAppendingFormat:@" %@",NSLocalizedString(@"main", @"Label 'Main' for contact info")]; 
    334334        } else if ([lih isEqualToString:@"x-home"]) { 
    335335                abLabel = (CFStringRef)[servicePostfix stringByAppendingFormat:@" %@",(NSString *)kABHomeLabel]; 
     
    362362        abValue = (CFStringRef)[[[rec uriContent] componentsSeparatedByString:@":"] objectAtIndex:1]; 
    363363        if ([lih isEqualToString:@"x-main"]) { 
    364                 abLabel = (CFStringRef)LocStr(@"main"); 
     364                abLabel = (CFStringRef)NSLocalizedString(@"main", @"Label 'Main' for contact info"); 
    365365        } else if ([lih isEqualToString:@"x-home"]) { 
    366366                abLabel = kABHomeLabel; 
     
    382382                CFDictionaryAddValue(anIM, kABPersonInstantMessageServiceKey, kABPersonInstantMessageServiceJabber); 
    383383        } else if ([servicePostfix isEqualToString:@"gtalk"]) { 
    384                 CFDictionaryAddValue(anIM, kABPersonInstantMessageServiceKey, (CFStringRef)LocStr(@"GoogleTalk")); 
     384                CFDictionaryAddValue(anIM, kABPersonInstantMessageServiceKey, @"GoogleTalk"); 
    385385        } else { 
    386386                CFDictionaryAddValue(anIM, kABPersonInstantMessageServiceKey, (CFStringRef)servicePostfix); 
Telnic
Search This Site
Partners
Neustar
ICANN
Main site | WHOIS | Sell .tel | FAQ | Archived Site | About Telnic | Contact Us