[NSStringstringWithFormat:AILocalizedString(@"*is listening to %@ by %@*","Phrase sent in response to %_music. The first %%@ is the track; the second %%@ is the artist."),TRIGGER_TRACK,TRIGGER_ARTIST],
KEY_ITUNES_PLAYING,
AILocalizedString(@"*is listening to nothing*","Phrase sent in response to %_music when nothing is playing."),
KEY_ITUNES_STOPPED,
nil];
/* Provide flexibility with the %_iTunes substitution. By default, just store @"" for this key.
* But still not hardcoded to a particular format. This is done so that a default installation
* doesn't have its format broken if the locale switches...
* since the format specifiers are themselves localized.
NSMenuItem*submenuRoot=[[NSMenuItemalloc]initWithTitle:AILocalizedString(@"Track Information","Submenu for iTunes toolbar item menu for inserting current track information.")
//this isn't implemented yet, need some advice on this one
[iTunesMenuaddItem:[selfmenuItemWithTitle:[AILocalizedString(@"Search Selection in Music Store","iTunes toolbar menu item title to search selection in iTMS.")stringByAppendingEllipsis]
action:@selector(gatherSelection)
representedObject:nil
kind:RESPONDER_IS_WEBVIEW]];
[iTunesMenuaddItem:[NSMenuItemseparatorItem]];
[iTunesMenuaddItem:[selfmenuItemWithTitle:[AILocalizedString(@"Bring iTunes to Front","iTunes toolbar menu item title to make iTunes frontmost app.")stringByAppendingEllipsis]
action:@selector(bringiTunesToFront)
representedObject:nil
kind:ALWAYS_ENABLED]];
[submenuRootrelease];
}
/*!
* @brief Create a menu item
*
* create a menu item targeting this plugin. Determine if it should disable itself when firstResponder != [textView class].