Spotlight localization takes wrong language

Originator:futuretap
Number:rdar://21987713 Date Originated:24-Jul-2015 09:58 PM
Status:Duplicate/21607862/Open Resolved:
Product:iOS SDK Product Version:9.0b4
Classification:Serious Bug Reproducible:Always
 
Summary:
Spotlight uses the second (fallback) system language, not the first language, to localize search results.

Steps to Reproduce:

I'm specifying an NSUserActivity with a localized title like this:

	NSUserActivity *userActivity = [[NSUserActivity alloc] initWithActivityType:@"com.example.activity"];
	userActivity.title = [[CSLocalizedString alloc] initWithLocalizedStrings:@{@"en": @"english foo", @"de": @"Deutsche Bar"}];
	userActivity.eligibleForSearch = YES;
	self.userActivity = userActivity;
	[self.userActivity becomeCurrent];

Set the system language to English and the second language in the list to German.


Expected Results:
Search results should be in English.

Actual Results:
They are in German.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!