|
|
|
|
|
|
|
|
{ |
|
|
{ |
|
|
NSString* errorDescriptionsPath = [[NSBundle bundleForClass:[self class]] pathForResource:@"SA_DB_ErrorDescriptions" ofType:@"plist"]; |
|
|
NSString* errorDescriptionsPath = [[NSBundle bundleForClass:[self class]] pathForResource:@"SA_DB_ErrorDescriptions" ofType:@"plist"]; |
|
|
_errorDescriptions = [NSDictionary dictionaryWithContentsOfFile:errorDescriptionsPath]; |
|
|
_errorDescriptions = [NSDictionary dictionaryWithContentsOfFile:errorDescriptionsPath]; |
|
|
if(_errorDescriptions) |
|
|
|
|
|
{ |
|
|
|
|
|
NSLog(@"Error descriptions loaded successfully."); |
|
|
|
|
|
} |
|
|
|
|
|
else |
|
|
|
|
|
|
|
|
if(!_errorDescriptions) |
|
|
{ |
|
|
{ |
|
|
NSLog(@"Could not load error descriptions!"); |
|
|
NSLog(@"Could not load error descriptions!"); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
{ |
|
|
{ |
|
|
NSString *stringFormatRulesPath = [[NSBundle bundleForClass:[self class]] pathForResource:SA_DB_STRING_FORMAT_RULES_PLIST_NAME ofType:@"plist"]; |
|
|
NSString *stringFormatRulesPath = [[NSBundle bundleForClass:[self class]] pathForResource:SA_DB_STRING_FORMAT_RULES_PLIST_NAME ofType:@"plist"]; |
|
|
_stringFormatRules = [NSDictionary dictionaryWithContentsOfFile:stringFormatRulesPath]; |
|
|
_stringFormatRules = [NSDictionary dictionaryWithContentsOfFile:stringFormatRulesPath]; |
|
|
if(_stringFormatRules) |
|
|
|
|
|
{ |
|
|
|
|
|
NSLog(@"String format rules loaded successfully."); |
|
|
|
|
|
} |
|
|
|
|
|
else |
|
|
|
|
|
|
|
|
if(!_stringFormatRules) |
|
|
{ |
|
|
{ |
|
|
NSLog(@"Could not load string format rules!"); |
|
|
NSLog(@"Could not load string format rules!"); |
|
|
} |
|
|
} |