Change 'notification' language to 'announcement'

This commit is contained in:
Alex Hudson 2011-06-28 19:52:47 +01:00 committed by Hylke
parent b27725ab72
commit 2e31e0094d
2 changed files with 6 additions and 6 deletions

View file

@ -214,13 +214,13 @@ namespace SparkleLib {
return this.GetFolderValue(name, "announcements");
}
public string GetNotificationUrlForFolder (string name)
public string GetAnnouncementUrlForFolder (string name)
{
// examples?
// tcp://localhost:9999/
// xmpp:someuser@somexmppserver?canhavefunnybits
// irc://hbons/#somechatroom
return this.GetFolderValue(name, "notificationurl");
return this.GetFolderValue(name, "announcements_url");
}
public string GetConfigOption (string name)

View file

@ -543,8 +543,8 @@ namespace SparkleShare {
repo = new SparkleRepoGit (folder_path, SparkleBackend.DefaultBackend);
string notify_uri = SparkleConfig.DefaultConfig.GetNotificationUrlForFolder (folder_name);
if (notify_uri == null) {
string announce_uri = SparkleConfig.DefaultConfig.GetAnnouncementUrlForFolder (folder_name);
if (announce_uri == null) {
string announcements = SparkleConfig.DefaultConfig.GetAnnouncementsForFolder (folder_name);
if (announcements == null)
// This is SparkleShare's centralized notification service.
@ -553,9 +553,9 @@ namespace SparkleShare {
// we don't store any personal information ever
announcements = "204.62.14.135";
notify_uri = String.Format("irc://{0}/", announcements);
announce_uri = String.Format("irc://{0}/", announcements);
}
repo.CreateListener(notify_uri, folder_name);
repo.CreateListener(announce_uri, folder_name);
repo.NewChangeSet += delegate (SparkleChangeSet change_set, string repository_path) {
string message = FormatMessage (change_set);