diff options
author | Marius Ungureanu <marius.ungureanu@xamarin.com> | 2015-12-14 19:45:01 +0300 |
---|---|---|
committer | Marius Ungureanu <marius.ungureanu@xamarin.com> | 2015-12-14 19:45:01 +0300 |
commit | 8b3a1c9324f2f4284c6b291a65488c5230efe8b8 (patch) | |
tree | 8bcbd42dd1ad38b7fca184fdf0b005b21cffe361 /main/src/addins/MonoDevelop.Gettext | |
parent | 64d7c147d89d06d6e3d5f738166b1a1310b1a9b4 (diff) | |
parent | 7a1b3c55032dbd2fc908d9aaf1418977afe4db86 (diff) |
Merge remote-tracking branch 'origin/master' into roslyn-nogtkshell
Diffstat (limited to 'main/src/addins/MonoDevelop.Gettext')
-rw-r--r-- | main/src/addins/MonoDevelop.Gettext/MonoDevelop.Gettext/TranslationProject.cs | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/main/src/addins/MonoDevelop.Gettext/MonoDevelop.Gettext/TranslationProject.cs b/main/src/addins/MonoDevelop.Gettext/MonoDevelop.Gettext/TranslationProject.cs index b4d12f7af6..2fb7956d88 100644 --- a/main/src/addins/MonoDevelop.Gettext/MonoDevelop.Gettext/TranslationProject.cs +++ b/main/src/addins/MonoDevelop.Gettext/MonoDevelop.Gettext/TranslationProject.cs @@ -43,7 +43,7 @@ using System.Threading.Tasks; namespace MonoDevelop.Gettext { - class TranslationProject : SolutionItem, IDeployable + class TranslationProject : Project, IDeployable { [ItemProperty("packageName")] string packageName = null; @@ -87,15 +87,10 @@ namespace MonoDevelop.Gettext public TranslationProject () { + Initialize (this); translations = new TranslationCollection (this); - - //NOTE: we don't really need multiple configurations for this project type, since nothing actually uses them - //but it makes the solution configuration mapping look more consistent - //Perhaps in future there will be some per-config settings - foreach (string config in new [] { "Debug", "Release"}) - Configurations.Add (new TranslationProjectConfiguration (config)); } - + protected override IEnumerable<FilePath> OnGetItemFiles (bool includeReferencedFiles) {
List<FilePath> col = base.OnGetItemFiles (includeReferencedFiles).ToList(); @@ -130,6 +125,12 @@ namespace MonoDevelop.Gettext protected override void OnInitializeFromTemplate (ProjectCreateInformation projectCreateInfo, XmlElement template) { + //NOTE: we don't really need multiple configurations for this project type, since nothing actually uses them + //but it makes the solution configuration mapping look more consistent + //Perhaps in future there will be some per-config settings + foreach (string config in new [] { "Debug", "Release"}) + Configurations.Add (new TranslationProjectConfiguration (config)); + OutputType = (TranslationOutputType)Enum.Parse (typeof(TranslationOutputType), template.GetAttribute ("outputType")); PackageName = template.GetAttribute ("packageName"); RelPath = template.GetAttribute ("relPath"); @@ -437,7 +438,7 @@ namespace MonoDevelop.Gettext SystemPath } - class TranslationProjectConfiguration : SolutionItemConfiguration + class TranslationProjectConfiguration : ProjectConfiguration { public TranslationProjectConfiguration () { |