~do-core/do/fix-the-shitstorm

« back to all changes in this revision

Viewing changes to ImageShack/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:
20
20
 
21
21
using System;
22
22
 
23
 
using Mono.Unix;
 
23
using Mono.Addins;
24
24
 
25
25
using Do.Platform;
26
26
 
28
28
{
29
29
        public class UploadNotification : Notification
30
30
        {
31
 
                static readonly string message_title = Catalog.GetString ("ImageShack");
32
 
                static readonly string upload_message = Catalog.GetString ("Do is uploading your image... Please wait a moment...");
 
31
                static readonly string message_title = AddinManager.CurrentLocalizer.GetString ("ImageShack");
 
32
                static readonly string upload_message = AddinManager.CurrentLocalizer.GetString ("Do is uploading your image... Please wait a moment...");
33
33
                
34
34
                public UploadNotification (string icon) 
35
35
                        : base (message_title, upload_message, icon)
39
39
        
40
40
        public class GeneralErrorNotification : Notification
41
41
        {
42
 
                static readonly string message_title = Catalog.GetString ("ImageShack");
43
 
                static readonly string error_message = Catalog.GetString ("Unable to upload image to ImageShack at this time.");
 
42
                static readonly string message_title = AddinManager.CurrentLocalizer.GetString ("ImageShack");
 
43
                static readonly string error_message = AddinManager.CurrentLocalizer.GetString ("Unable to upload image to ImageShack at this time.");
44
44
                
45
45
                public GeneralErrorNotification () 
46
46
                        : base (message_title, error_message, "")
50
50
        
51
51
        public class InvalidFileNotification : Notification
52
52
        {
53
 
                static readonly string message_title = Catalog.GetString ("ImageShack");
 
53
                static readonly string message_title = AddinManager.CurrentLocalizer.GetString ("ImageShack");
54
54
                
55
55
                public InvalidFileNotification (string message) 
56
56
                        : base (message_title, message, "")