Author: lluis Date: 2008-01-21 11:43:39 -0500 (Mon, 21 Jan 2008) New Revision: 93411
Modified: trunk/monodevelop/main/src/addins/MonoDevelop.Gettext/ChangeLog trunk/monodevelop/main/src/addins/MonoDevelop.Gettext/MonoDevelop.Gettext/TranslationProject.cs Log: * MonoDevelop.Gettext/TranslationProject.cs: Performance improvement. Modified: trunk/monodevelop/main/src/addins/MonoDevelop.Gettext/ChangeLog =================================================================== --- trunk/monodevelop/main/src/addins/MonoDevelop.Gettext/ChangeLog 2008-01-21 16:42:06 UTC (rev 93410) +++ trunk/monodevelop/main/src/addins/MonoDevelop.Gettext/ChangeLog 2008-01-21 16:43:39 UTC (rev 93411) @@ -1,3 +1,7 @@ +2008-01-21 Lluis Sanchez Gual <[EMAIL PROTECTED]> + + * MonoDevelop.Gettext/TranslationProject.cs: Performance improvement. + 2008-01-16 Michael Hutchinson <[EMAIL PROTECTED]> * MonoDevelop.Gettext.NodeBuilders/TranslationProjectNodeBuilder.cs: Make Modified: trunk/monodevelop/main/src/addins/MonoDevelop.Gettext/MonoDevelop.Gettext/TranslationProject.cs =================================================================== --- trunk/monodevelop/main/src/addins/MonoDevelop.Gettext/MonoDevelop.Gettext/TranslationProject.cs 2008-01-21 16:42:06 UTC (rev 93410) +++ trunk/monodevelop/main/src/addins/MonoDevelop.Gettext/MonoDevelop.Gettext/TranslationProject.cs 2008-01-21 16:43:39 UTC (rev 93411) @@ -229,8 +229,6 @@ foreach (Project p in projects) { monitor.Log.WriteLine (GettextCatalog.GetString ("Scanning project {0}...", p.Name)); foreach (ProjectFile file in p.ProjectFiles) { - if (monitor.IsCancelRequested) - return; if (!File.Exists (file.FilePath)) continue; if (file.Subtype == Subtype.Code) { @@ -241,6 +239,8 @@ } } } + if (monitor.IsCancelRequested) + return; monitor.Step (1); } catalog.Save (Path.Combine (this.BaseDirectory, "messages.po")); _______________________________________________ Mono-patches maillist - Mono-patches@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-patches