Skip to content

Commit

Permalink
Using custom package name.
Browse files Browse the repository at this point in the history
If an application's bundle identifier ends with something that is the same as a file
package extension, spotlight wont' look inside. Using our own extension ensures that
spotligt will at least find the details file.
  • Loading branch information
wbyoung committed Mar 31, 2012
1 parent 37bcebe commit 0748479
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Framework/Source/Mac/Translator/FRTranslator.m
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,8 @@ - (void)extractStringsFromResourcesMessage:(NSDictionary *)message {

NSString *applicationName = [message objectForKey:FRLocalizationResourcesMessage.keys.applicationName];
NSString *applicationIdentifier = [message objectForKey:FRLocalizationResourcesMessage.keys.applicationIdentifier];
NSString *applicationStorage = [translationsDirectory stringByAppendingPathComponent:applicationIdentifier];
NSString *applicationPackageName = [applicationIdentifier stringByAppendingFormat:@".greenwichStringsArchive"];
NSString *applicationStorage = [translationsDirectory stringByAppendingPathComponent:applicationPackageName];

// clear old data
[manager removeItemAtPath:applicationStorage error:NULL];
Expand Down

0 comments on commit 0748479

Please sign in to comment.