Author: mkrueger
Date: 2007-07-20 05:05:53 -0400 (Fri, 20 Jul 2007)
New Revision: 82341
Modified:
trunk/monodevelop/Extras/MonoDevelop.Gettext/ChangeLog
trunk/monodevelop/Extras/MonoDevelop.Gettext/MonoDevelop.Gettext.mdp
trunk/monodevelop/Extras/MonoDevelop.Gettext/MonoDevelop.Gettext/TranslationProject.cs
trunk/monodevelop/Extras/MonoDevelop.Gettext/gtk-gui/gui.stetic
trunk/monodevelop/Extras/MonoDevelop.Gettext/gtk-gui/objects.xml
Log:
* MonoDevelop.Gettext/TranslationProject.cs: Worked on gettext
deployment.
Modified: trunk/monodevelop/Extras/MonoDevelop.Gettext/ChangeLog
===================================================================
--- trunk/monodevelop/Extras/MonoDevelop.Gettext/ChangeLog 2007-07-20
09:04:20 UTC (rev 82340)
+++ trunk/monodevelop/Extras/MonoDevelop.Gettext/ChangeLog 2007-07-20
09:05:53 UTC (rev 82341)
@@ -1,5 +1,10 @@
2007-07-20 Mike Krüger <[EMAIL PROTECTED]>
+ * MonoDevelop.Gettext/TranslationProject.cs: Worked on gettext
+ deployment.
+
+2007-07-20 Mike Krüger <[EMAIL PROTECTED]>
+
* MonoDevelop.Gettext/TranslationService.cs,
MonoDevelop.Gettext/TranslationProject.cs: Improved update code.
Modified:
trunk/monodevelop/Extras/MonoDevelop.Gettext/MonoDevelop.Gettext/TranslationProject.cs
===================================================================
---
trunk/monodevelop/Extras/MonoDevelop.Gettext/MonoDevelop.Gettext/TranslationProject.cs
2007-07-20 09:04:20 UTC (rev 82340)
+++
trunk/monodevelop/Extras/MonoDevelop.Gettext/MonoDevelop.Gettext/TranslationProject.cs
2007-07-20 09:05:53 UTC (rev 82341)
@@ -38,10 +38,11 @@
using MonoDevelop.Projects;
using MonoDevelop.Projects.Serialization;
using MonoDevelop.Gettext.Editor;
+using MonoDevelop.Deployment;
namespace MonoDevelop.Gettext
{
- public class TranslationProject : CombineEntry
+ public class TranslationProject : CombineEntry, IDeployable
{
[ItemProperty]
List<Translation> translations = new List<Translation> ();
@@ -274,6 +275,21 @@
{
}
+#region Deployment
+ public DeployFileCollection GetDeployFiles ()
+ {
+ DeployFileCollection result = new DeployFileCollection
();
+ TranslationProjectConfiguration config =
(TranslationProjectConfiguration)this.ActiveConfiguration;
+ foreach (Translation translation in this.Translations) {
+ string poFileName = GetFileName (translation);
+ string moDirectory = Path.Combine
(translation.IsoCode, "LC_MESSAGES");
+ string moFileName = Path.Combine (moDirectory,
config.PackageName + ".mo");
+ result.Add (new DeployFile (this, poFileName,
moFileName));
+ }
+ return result;
+ }
+#endregion
+
bool isDirty = true;
protected override bool OnGetNeedsBuilding ()
{
Modified: trunk/monodevelop/Extras/MonoDevelop.Gettext/MonoDevelop.Gettext.mdp
===================================================================
--- trunk/monodevelop/Extras/MonoDevelop.Gettext/MonoDevelop.Gettext.mdp
2007-07-20 09:04:20 UTC (rev 82340)
+++ trunk/monodevelop/Extras/MonoDevelop.Gettext/MonoDevelop.Gettext.mdp
2007-07-20 09:05:53 UTC (rev 82341)
@@ -52,7 +52,6 @@
<File name="./MonoDevelop.Gettext/CatalogDeletedEntry.cs" subtype="Code"
buildaction="Compile" />
<File name="./MonoDevelop.Gettext/PluralForms.cs" subtype="Code"
buildaction="Compile" />
<File name="./MonoDevelop.Gettext/IsoCodes.cs" subtype="Code"
buildaction="Compile" />
- <File name="./gtk-gui/MonoDevelop.Gettext.EntrySelectionTree.cs"
subtype="Code" buildaction="Compile" />
</Contents>
<References>
<ProjectReference type="Gac" localcopy="True" refto="System,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
@@ -71,6 +70,7 @@
<ProjectReference type="Project" localcopy="True"
refto="MonoDevelop.Components" />
<ProjectReference type="Project" localcopy="True" refto="MonoDevelop.Ide"
/>
<ProjectReference type="Assembly" localcopy="True"
refto="../../contrib/Mono.Addins.dll" />
+ <ProjectReference type="Project" localcopy="True"
refto="MonoDevelop.Deployment" />
</References>
<MonoDevelop.Autotools.MakefileInfo IntegrationEnabled="True"
RelativeMakefileName="./Makefile.am" BuildTargetName="" CleanTargetName=""
SyncReferences="True" IsAutotoolsProject="True"
RelativeConfigureInPath="../../">
<BuildFilesVar Sync="True" Name="FILES" />
Modified: trunk/monodevelop/Extras/MonoDevelop.Gettext/gtk-gui/gui.stetic
===================================================================
--- trunk/monodevelop/Extras/MonoDevelop.Gettext/gtk-gui/gui.stetic
2007-07-20 09:04:20 UTC (rev 82340)
+++ trunk/monodevelop/Extras/MonoDevelop.Gettext/gtk-gui/gui.stetic
2007-07-20 09:05:53 UTC (rev 82341)
@@ -7,6 +7,7 @@
<widget-library name="../../../build/AddIns/MonoDevelop.Projects.Gui.dll"
/>
<widget-library name="../../../build/AddIns/MonoDevelop.Components.dll" />
<widget-library name="../../../build/AddIns/MonoDevelop.Ide.dll" />
+ <widget-library name="../../../build/AddIns/MonoDevelop.Deployment.dll" />
<widget-library
name="../../../build/AddIns/MonoDevelop.Gettext/MonoDevelop.Gettext.dll"
internal="true" />
</import>
<widget class="Gtk.Bin" id="MonoDevelop.Gettext.Editor.CatalogHeadersWidget"
design-size="672 613">
Modified: trunk/monodevelop/Extras/MonoDevelop.Gettext/gtk-gui/objects.xml
===================================================================
--- trunk/monodevelop/Extras/MonoDevelop.Gettext/gtk-gui/objects.xml
2007-07-20 09:04:20 UTC (rev 82340)
+++ trunk/monodevelop/Extras/MonoDevelop.Gettext/gtk-gui/objects.xml
2007-07-20 09:05:53 UTC (rev 82341)
@@ -7,8 +7,4 @@
</itemgroups>
<signals />
</object>
- <object type="MonoDevelop.Gettext.EntrySelectionTree"
palette-category="widget" allow-children="false" base-type="Gtk.Bin">
- <itemgroups />
- <signals />
- </object>
</objects>
\ No newline at end of file
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches