I’m getting all collections using [[NSFontManager sharedFontManager] collectionNames], but I see some untranslated strings (such as “com.apple.AllFonts”). There is a way to localize them? I see that Font Book does translate them successfully. Maybe I am doing something wrong.
Thanks,
—Albe
Apple prefixes all of its internal collection names with “com.apple”, probably to avoid conflicts. Depending on what you’re doing, you could:
if ([name hasPrefix:@"com.apple"]) name = [[name componentsSeparatedByString:@"."] objectAtIndex:2];would work.