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/DotTel_SDK/Classes/DnsResolver.m

    r455 r461  
    184184        if (!ldnsdomain) { 
    185185                //NSLog(@"Can't do ldns_dname_new_frm_str"); 
    186                 dict = [NSDictionary dictionaryWithObject:LocStr(@"DNS Error: Can't parse resolver name") forKey:NSLocalizedDescriptionKey]; 
     186                dict = [NSDictionary dictionaryWithObject:NSLocalizedString(@"DNS Error: Can't parse resolver name", @"DNS Error resolver parsing") forKey:NSLocalizedDescriptionKey]; 
    187187                err2 = [NSError errorWithDomain:@"org.telnic.tel.sdk" code:RESOLVER_STATUS_NO_NAME userInfo:dict]; 
    188188                if (error) 
     
    208208                        if (!p)  { 
    209209                                //NSLog(@"Can't do ldns_resolver_query"); 
    210                                 dict = [NSDictionary dictionaryWithObject:LocStr(@"Network Error: No Internet Connection") forKey:NSLocalizedDescriptionKey]; 
     210                                dict = [NSDictionary dictionaryWithObject:NSLocalizedString(@"Network Error: No Internet Connection", @"Network error, no net connect") forKey:NSLocalizedDescriptionKey]; 
    211211                                err2 = [NSError errorWithDomain:@"org.telnic.tel.sdk" code:RESOLVER_STATUS_NO_CONNECTION userInfo:dict]; 
    212212                                if (error) 
     
    228228                                //NSLog(@" *** invalid answer name after query\n"); 
    229229                                if (ldns_pkt_get_rcode(p) == LDNS_RCODE_NXDOMAIN) { 
    230                                         dict = [NSDictionary dictionaryWithObject:LocStr(@"Domain does not exist") forKey:NSLocalizedDescriptionKey]; 
     230                                        dict = [NSDictionary dictionaryWithObject:NSLocalizedString(@"Domain does not exist", @"Non-existent domain") forKey:NSLocalizedDescriptionKey]; 
    231231                                        err2 = [NSError errorWithDomain:@"org.telnic.tel.sdk" code:RESOLVER_STATUS_NXDOMAIN userInfo:dict]; 
    232232                                } else { 
    233                                         dict = [NSDictionary dictionaryWithObject:LocStr(@"Data Error: Invalid answer") forKey:NSLocalizedDescriptionKey]; 
     233                                        dict = [NSDictionary dictionaryWithObject:NSLocalizedString(@"Data Error: Invalid answer", @"Data Error: Invalid answer") forKey:NSLocalizedDescriptionKey]; 
    234234                                        err2 = [NSError errorWithDomain:@"org.telnic.tel.sdk" code:RESOLVER_STATUS_INVALID_ANSWER userInfo:dict]; 
    235235                                } 
     
    250250                                // In the meantime, disable the error 
    251251                                 
    252 //                              dict = [NSDictionary dictionaryWithObject:LocStr(@"Network Error: Bad data returned") forKey:NSLocalizedDescriptionKey]; 
     252//                              dict = [NSDictionary dictionaryWithObject:NSLocalizedString(@"Network Error: Bad data returned", @"Network Error: Bad data returned") forKey:NSLocalizedDescriptionKey]; 
    253253//                              err2 = [NSError errorWithDomain:@"org.telnic.tel.sdk" code:RESOLVER_STATUS_BAD_DATA userInfo:dict]; 
    254254//                              if (error) 
Telnic
Search This Site
Partners
Neustar
ICANN
Main site | WHOIS | Sell .tel | FAQ | Archived Site | About Telnic | Contact Us