Author: lluis
Date: 2008-02-18 12:39:26 -0500 (Mon, 18 Feb 2008)
New Revision: 96084
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: Include .po files in the
list of exportable files of the project. Fixes bug #362567.
Modified: trunk/monodevelop/main/src/addins/MonoDevelop.Gettext/ChangeLog
===================================================================
--- trunk/monodevelop/main/src/addins/MonoDevelop.Gettext/ChangeLog
2008-02-18 17:33:42 UTC (rev 96083)
+++ trunk/monodevelop/main/src/addins/MonoDevelop.Gettext/ChangeLog
2008-02-18 17:39:26 UTC (rev 96084)
@@ -1,3 +1,8 @@
+2008-02-18 Lluis Sanchez Gual <[EMAIL PROTECTED]>
+
+ * MonoDevelop.Gettext/TranslationProject.cs: Include .po files in the
list
+ of exportable files of the project. Fixes bug #362567.
+
2008-01-25 Michael Hutchinson <[EMAIL PROTECTED]>
* MonoDevelop.Gettext.addin.xml,
MonoDevelop.Gettext/RegexFileScanner.cs,
Modified:
trunk/monodevelop/main/src/addins/MonoDevelop.Gettext/MonoDevelop.Gettext/TranslationProject.cs
===================================================================
---
trunk/monodevelop/main/src/addins/MonoDevelop.Gettext/MonoDevelop.Gettext/TranslationProject.cs
2008-02-18 17:33:42 UTC (rev 96083)
+++
trunk/monodevelop/main/src/addins/MonoDevelop.Gettext/MonoDevelop.Gettext/TranslationProject.cs
2008-02-18 17:39:26 UTC (rev 96084)
@@ -31,6 +31,7 @@
using System.CodeDom.Compiler;
using System.Collections.Generic;
using System.Collections.ObjectModel;
+using System.Collections.Specialized;
using System.IO;
using System.Text;
using System.Text.RegularExpressions;
@@ -91,6 +92,14 @@
isDirty = true;
}
+ protected override StringCollection OnGetExportFiles ()
+ {
+ StringCollection col = base.OnGetExportFiles ();
+ foreach (Translation tr in translations)
+ col.Add (tr.PoFile);
+ return col;
+ }
+
public TranslationProjectInformation GetProjectInformation
(CombineEntry entry, bool force)
{
foreach (TranslationProjectInformation info in
this.projectInformations) {
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches