~alexlauni/do-plugins/jolicloud

« back to all changes in this revision

Viewing changes to ImageShack/src/ImageShackAction.cs

  • Committer: Alex Launi
  • Date: 2009-06-24 13:17:29 UTC
  • mfrom: (618.1.17 do-plugins)
  • Revision ID: alex.launi@gmail.com-20090624131729-1l9g76ejqq4leka4
merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
using System.Web;
28
28
using System.Xml.Linq;
29
29
 
30
 
using Mono.Unix;
 
30
using Mono.Addins;
31
31
 
32
32
using Do.Platform;
33
33
using Do.Platform.Linux;
51
51
                        
52
52
                
53
53
                public override string Name {
54
 
                        get { return Catalog.GetString ("Upload to ImageShack"); }
 
54
                        get { return AddinManager.CurrentLocalizer.GetString ("Upload to ImageShack"); }
55
55
                }
56
56
                
57
57
                public override string Description {
58
 
                        get { return Catalog.GetString ("Uploads the image to ImageShack."); }
 
58
                        get { return AddinManager.CurrentLocalizer.GetString ("Uploads the image to ImageShack."); }
59
59
                }
60
60
                
61
61
                public override string Icon {
99
99
                        
100
100
                private static bool FileIsValidForUpload (string file)
101
101
                {
102
 
                        string fileSizeError = Catalog.GetString ("File size exceeds ImageShack's 1.5MB limit.");
 
102
                        string fileSizeError = AddinManager.CurrentLocalizer.GetString ("File size exceeds ImageShack's 1.5MB limit.");
103
103
                        
104
104
                        FileInfo fi = new FileInfo(file);
105
105
                        long fileSize = fi.Length;