Developer Area

Changeset 455

Show
Ignore:
Timestamp:
07/12/09 15:29:31 (5 years ago)
Author:
henri
Message:

Preparing for localization

Files:
1 modified

Legend:

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

    r382 r455  
    184184        if (!ldnsdomain) { 
    185185                //NSLog(@"Can't do ldns_dname_new_frm_str"); 
    186                 dict = [NSDictionary dictionaryWithObject:@"DNS Error: Can't parse resolver name" forKey:NSLocalizedDescriptionKey]; 
     186                dict = [NSDictionary dictionaryWithObject:LocStr(@"DNS Error: Can't parse resolver name") 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:@"Network Error: No Internet Connection" forKey:NSLocalizedDescriptionKey]; 
     210                                dict = [NSDictionary dictionaryWithObject:LocStr(@"Network Error: No Internet Connection") 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:@"Domain does not exist" forKey:NSLocalizedDescriptionKey]; 
     230                                        dict = [NSDictionary dictionaryWithObject:LocStr(@"Domain does not exist") forKey:NSLocalizedDescriptionKey]; 
    231231                                        err2 = [NSError errorWithDomain:@"org.telnic.tel.sdk" code:RESOLVER_STATUS_NXDOMAIN userInfo:dict]; 
    232232                                } else { 
    233                                         dict = [NSDictionary dictionaryWithObject:@"Data Error: Invalid answer" forKey:NSLocalizedDescriptionKey]; 
     233                                        dict = [NSDictionary dictionaryWithObject:LocStr(@"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:@"Network Error: Bad data returned" forKey:NSLocalizedDescriptionKey]; 
     252//                              dict = [NSDictionary dictionaryWithObject:LocStr(@"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