~do-plugins/do-plugins/trunk

« back to all changes in this revision

Viewing changes to Microblogging/src/Notifications.cs

  • Committer: Christopher James Halse Rogers
  • Date: 2009-06-22 04:05:16 UTC
  • Revision ID: raof@ubuntu.com-20090622040516-d7fi9w4m3n580i8w
Fix translations for plugins.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
using System;
22
22
using System.Threading;
23
23
 
24
 
using Mono.Unix;
 
24
using Mono.Addins;
25
25
 
26
26
using Do.Platform;
27
27
 
37
37
 
38
38
        public class DirectMessageNotification : Notification
39
39
        {
40
 
                readonly string NewMessageFormat = Catalog.GetString ("New direct message from {0}");
 
40
                readonly string NewMessageFormat = AddinManager.CurrentLocalizer.GetString ("New direct message from {0}");
41
41
 
42
42
                string user;
43
43
 
54
54
 
55
55
        public class StatusUpdatedNotification : Notification
56
56
        {
57
 
                readonly string FailedPostTitle = Catalog.GetString ("Post failed");
58
 
                readonly string SuccessfulPostTitle = Catalog.GetString ("Post Successful");
59
 
                readonly string FailFormat = Catalog.GetString ("Failed to post '{0}' to {1}");
60
 
                readonly string SuccessFormat = Catalog.GetString ("'{0}' successfully posted to {1}");
 
57
                readonly string FailedPostTitle = AddinManager.CurrentLocalizer.GetString ("Post failed");
 
58
                readonly string SuccessfulPostTitle = AddinManager.CurrentLocalizer.GetString ("Post Successful");
 
59
                readonly string FailFormat = AddinManager.CurrentLocalizer.GetString ("Failed to post '{0}' to {1}");
 
60
                readonly string SuccessFormat = AddinManager.CurrentLocalizer.GetString ("'{0}' successfully posted to {1}");
61
61
 
62
62
                bool success;
63
63
                string status;