Docs:
* Don't advertise services whose support is broken in Adium with no fix in sight.
* Instead, add a list of third-party protocol plugins.
* Minor tweaks.
/*
* Adium is the legal property of its developers, whose names are listed in the copyright file included
* with this source distribution.
*
* This program is free software; you can redistribute it and/or modify it under the terms of the GNU
* General Public License as published by the Free Software Foundation; either version 2 of the License,
* or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
* Public License for more details.
*
* You should have received a copy of the GNU General Public License along with this program; if not,
* write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
// Thanks to GrowlTunes from the Growl project for demonstrating how to receive notifications when
[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].