Are the device CoreSpotlight stores localized to language? So for example if my app stores a bunch of English "contentDescription" or "displayName" attributes and the user switches the device to French, when he searches will it bring up the English content? This goes toward whether I have to rerun the indexing when I note the user switches the device language -- it doesn't appear I can set the language on a CSearchableItemAttributeSet.
Cheers
Glen Low
get.instaviz.com
CoreSpotlight will store the text you give it, and use it to search and display results. If you use the CSLocalizedString object as a value wrapping multiple localized versions of a string then CoreSpotlight will search for and display strings that match the user's current language.
There's an example given on the CSLocalizedString class reference page where the displayName is set to a dictionary containing an english version and a french version. In that example, if the user is running in French then CoreSpotlight will display results if the user types in the french word. If the user is running in a language that's not specified in the CSLocalizedString then it will fall back to English.
Does that help?