Change 'notification' language to 'announcement'
This commit is contained in:
parent
d704cea15b
commit
acdf383f0d
|
@ -214,13 +214,13 @@ namespace SparkleLib {
|
||||||
return this.GetFolderValue(name, "announcements");
|
return this.GetFolderValue(name, "announcements");
|
||||||
}
|
}
|
||||||
|
|
||||||
public string GetNotificationUrlForFolder (string name)
|
public string GetAnnouncementUrlForFolder (string name)
|
||||||
{
|
{
|
||||||
// examples?
|
// examples?
|
||||||
// tcp://localhost:9999/
|
// tcp://localhost:9999/
|
||||||
// xmpp:someuser@somexmppserver?canhavefunnybits
|
// xmpp:someuser@somexmppserver?canhavefunnybits
|
||||||
// irc://hbons/#somechatroom
|
// irc://hbons/#somechatroom
|
||||||
return this.GetFolderValue(name, "notificationurl");
|
return this.GetFolderValue(name, "announcements_url");
|
||||||
}
|
}
|
||||||
|
|
||||||
public string GetConfigOption (string name)
|
public string GetConfigOption (string name)
|
||||||
|
|
|
@ -543,8 +543,8 @@ namespace SparkleShare {
|
||||||
repo = new SparkleRepoGit (folder_path, SparkleBackend.DefaultBackend);
|
repo = new SparkleRepoGit (folder_path, SparkleBackend.DefaultBackend);
|
||||||
|
|
||||||
|
|
||||||
string notify_uri = SparkleConfig.DefaultConfig.GetNotificationUrlForFolder (folder_name);
|
string announce_uri = SparkleConfig.DefaultConfig.GetAnnouncementUrlForFolder (folder_name);
|
||||||
if (notify_uri == null) {
|
if (announce_uri == null) {
|
||||||
string announcements = SparkleConfig.DefaultConfig.GetAnnouncementsForFolder (folder_name);
|
string announcements = SparkleConfig.DefaultConfig.GetAnnouncementsForFolder (folder_name);
|
||||||
if (announcements == null)
|
if (announcements == null)
|
||||||
// This is SparkleShare's centralized notification service.
|
// This is SparkleShare's centralized notification service.
|
||||||
|
@ -553,9 +553,9 @@ namespace SparkleShare {
|
||||||
// we don't store any personal information ever
|
// we don't store any personal information ever
|
||||||
announcements = "204.62.14.135";
|
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) {
|
repo.NewChangeSet += delegate (SparkleChangeSet change_set, string repository_path) {
|
||||||
string message = FormatMessage (change_set);
|
string message = FormatMessage (change_set);
|
||||||
|
|
Loading…
Reference in a new issue