Author: msierad
Date: 2007-01-19 10:43:56 -0500 (Fri, 19 Jan 2007)
New Revision: 71332

Modified:
   trunk/monodevelop/Core/src/MonoDevelop.Core.Gui/ChangeLog
   
trunk/monodevelop/Core/src/MonoDevelop.Core.Gui/MonoDevelop.Core.Gui.Components/FileBrowser.cs
   
trunk/monodevelop/Core/src/MonoDevelop.Core.Gui/MonoDevelop.Core.Gui.ErrorHandlers/CombineLoadError.cs
   
trunk/monodevelop/Core/src/MonoDevelop.Core.Gui/MonoDevelop.Core.Gui/ResourceNotFoundException.cs
Log:
2007-01-19  Marek Sieradzki  <[EMAIL PROTECTED]>

        * MonoDevelop.Core.Gui.Components/FileBrowser.cs,
          MonoDevelop.Core.Gui/ResourceNotFoundException.cs,
          MonoDevelop.Core.Gui.ErrorHandlers/CombineLoadError.cs: Removed
          redundant String.Format ().



Modified: trunk/monodevelop/Core/src/MonoDevelop.Core.Gui/ChangeLog
===================================================================
--- trunk/monodevelop/Core/src/MonoDevelop.Core.Gui/ChangeLog   2007-01-19 
15:40:57 UTC (rev 71331)
+++ trunk/monodevelop/Core/src/MonoDevelop.Core.Gui/ChangeLog   2007-01-19 
15:43:56 UTC (rev 71332)
@@ -1,3 +1,10 @@
+2007-01-19  Marek Sieradzki  <[EMAIL PROTECTED]>
+
+       * MonoDevelop.Core.Gui.Components/FileBrowser.cs,
+         MonoDevelop.Core.Gui/ResourceNotFoundException.cs,
+         MonoDevelop.Core.Gui.ErrorHandlers/CombineLoadError.cs: Removed
+         redundant String.Format ().
+
 2006-12-17  Lluis Sanchez Gual <[EMAIL PROTECTED]> 
 
        * MonoDevelop.Core.Gui.mdp, MonoDevelop.Core.Gui/FileEventArgs.cs,

Modified: 
trunk/monodevelop/Core/src/MonoDevelop.Core.Gui/MonoDevelop.Core.Gui/ResourceNotFoundException.cs
===================================================================
--- 
trunk/monodevelop/Core/src/MonoDevelop.Core.Gui/MonoDevelop.Core.Gui/ResourceNotFoundException.cs
   2007-01-19 15:40:57 UTC (rev 71331)
+++ 
trunk/monodevelop/Core/src/MonoDevelop.Core.Gui/MonoDevelop.Core.Gui/ResourceNotFoundException.cs
   2007-01-19 15:43:56 UTC (rev 71332)
@@ -17,7 +17,8 @@
        /// </summary>
        public class ResourceNotFoundException : Exception
        {
-               public ResourceNotFoundException(string resource) : 
base(String.Format (GettextCatalog.GetString("Resource not found: {0}"), 
resource))
+               public ResourceNotFoundException (string resource)
+                       : base (GettextCatalog.GetString ("Resource not found: 
{0}", resource))
                {
                }
        }

Modified: 
trunk/monodevelop/Core/src/MonoDevelop.Core.Gui/MonoDevelop.Core.Gui.Components/FileBrowser.cs
===================================================================
--- 
trunk/monodevelop/Core/src/MonoDevelop.Core.Gui/MonoDevelop.Core.Gui.Components/FileBrowser.cs
      2007-01-19 15:40:57 UTC (rev 71331)
+++ 
trunk/monodevelop/Core/src/MonoDevelop.Core.Gui/MonoDevelop.Core.Gui.Components/FileBrowser.cs
      2007-01-19 15:43:56 UTC (rev 71332)
@@ -319,7 +319,7 @@
                        } catch (Exception ex) {
                                error = ex;
                        }
-                       messageService.ShowError (error, String.Format 
(GettextCatalog.GetString ("Cannot enter '{0}' folder"), entry.Text));
+                       messageService.ShowError (error, 
GettextCatalog.GetString ("Cannot enter '{0}' folder", entry.Text));
                }
 
                private void OnDirRename (object o, EventArgs args)
@@ -354,7 +354,7 @@
                                        }
                                        catch (Exception ex)
                                        {
-                                               messageService.ShowError (ex, 
String.Format (GettextCatalog.GetString ("Could not rename folder '{0}' to 
'{1}'"), oldpath, args.NewText));
+                                               messageService.ShowError (ex, 
GettextCatalog.GetString ("Could not rename folder '{0}' to '{1}'", oldpath, 
args.NewText));
                                        }
                                        finally
                                        {
@@ -372,7 +372,7 @@
                                        }
                                        catch (Exception ex)
                                        {
-                                       messageService.ShowError (ex, 
String.Format (GettextCatalog.GetString ("Could not create new folder '{0}'"), 
args.NewText));
+                                       messageService.ShowError (ex, 
GettextCatalog.GetString ("Could not create new folder '{0}'", args.NewText));
                                        }
                                        finally
                                        {
@@ -404,7 +404,7 @@
                                        }
                                        catch (Exception ex)
                                        {
-                                               messageService.ShowError (ex, 
String.Format (GettextCatalog.GetString ("Could not delete folder '{0}'"), 
System.IO.Path.Combine (CurrentDir, (string) store.GetValue (iter, 1))));
+                                               messageService.ShowError (ex, 
GettextCatalog.GetString ("Could not delete folder '{0}'", 
System.IO.Path.Combine (CurrentDir, (string) store.GetValue (iter, 1))));
                                        }
                                        finally
                                        {

Modified: 
trunk/monodevelop/Core/src/MonoDevelop.Core.Gui/MonoDevelop.Core.Gui.ErrorHandlers/CombineLoadError.cs
===================================================================
--- 
trunk/monodevelop/Core/src/MonoDevelop.Core.Gui/MonoDevelop.Core.Gui.ErrorHandlers/CombineLoadError.cs
      2007-01-19 15:40:57 UTC (rev 71331)
+++ 
trunk/monodevelop/Core/src/MonoDevelop.Core.Gui/MonoDevelop.Core.Gui.ErrorHandlers/CombineLoadError.cs
      2007-01-19 15:43:56 UTC (rev 71332)
@@ -24,10 +24,8 @@
                        if (e is DirectoryNotFoundException || e is 
FileNotFoundException) {
                                bool isProject = 
filename.ToLower().EndsWith(".prjx");
                                
-                               string errorMessage = string.Format
-                                       (String.Format 
(GettextCatalog.GetString ("Could not load the {0} '{1}'.\n\n{2}"),
-                                        isProject ? "project" : "combine",
-                                        filename, e.Message));
+                               string errorMessage = GettextCatalog.GetString (
+                                       "Could not load the {0} '{1}'.\n\n{2}", 
isProject ? "project" : "combine", filename, e.Message);
                                
                                GenericError.DisplayError(errorMessage);
                        } else {

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to