~ubuntu-branches/ubuntu/trusty/monodevelop/trusty-proposed

« back to all changes in this revision

Viewing changes to src/core/MonoDevelop.Core/MonoDevelop.Core/BrandingService.cs

  • Committer: Package Import Robot
  • Author(s): Jo Shields
  • Date: 2013-05-12 09:46:03 UTC
  • mto: This revision was merged to the branch mainline in revision 29.
  • Revision ID: package-import@ubuntu.com-20130512094603-mad323bzcxvmcam0
Tags: upstream-4.0.5+dfsg
ImportĀ upstreamĀ versionĀ 4.0.5+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
                static XDocument localizedBrandingDocument;
44
44
                
45
45
                public static readonly string ApplicationName;
 
46
                public static readonly string SuiteName;
 
47
                public static readonly string ProfileDirectoryName;
46
48
                
47
49
                static BrandingService ()
48
50
                {
73
75
                                        }
74
76
                                }
75
77
                                ApplicationName = GetString ("ApplicationName");
 
78
                                SuiteName = GetString ("SuiteName");
 
79
                                ProfileDirectoryName = GetString ("ProfileDirectoryName");
76
80
                        } catch (Exception ex) {
77
81
                                LoggingService.LogError ("Could not read branding document", ex);
78
82
                        }
79
83
                        
80
84
                        if (string.IsNullOrEmpty (ApplicationName))
81
85
                                ApplicationName = "MonoDevelop";
 
86
 
 
87
                        if (string.IsNullOrEmpty (SuiteName))
 
88
                                SuiteName = ApplicationName;
 
89
 
 
90
                        if (string.IsNullOrEmpty (ProfileDirectoryName))
 
91
                                ProfileDirectoryName = ApplicationName;
82
92
                }
83
93
                
84
94
                public static string GetString (params string[] keyPath)
159
169
                        
160
170
                        return null;
161
171
                }
 
172
 
 
173
                public static string BrandApplicationName (string s)
 
174
                {
 
175
                        return s.Replace ("MonoDevelop", ApplicationName);
 
176
                }
162
177
        }
163
178
}
 
 
b'\\ No newline at end of file'