Browse Source

Add some strings to the translation database.

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@1024 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
shortcuts
Daniel Grunwald 20 years ago
parent
commit
217f008544
  1. BIN
      data/resources/StringResources.cz.resources
  2. BIN
      data/resources/StringResources.de.resources
  3. BIN
      data/resources/StringResources.it.resources
  4. BIN
      data/resources/StringResources.pl.resources
  5. BIN
      data/resources/StringResources.pt-br.resources
  6. BIN
      data/resources/StringResources.se.resources
  7. BIN
      data/resources/StringResources.tr.resources
  8. 7
      src/Main/Base/Project/Src/Gui/Pads/ProjectBrowser/TreeNodes/AbstractProjectBrowserTreeNode.cs
  9. 2
      src/Main/Base/Project/Src/Gui/Pads/ProjectBrowser/TreeNodes/DirectoryNode.cs
  10. 4
      src/Main/Base/Project/Src/Gui/Pads/ProjectBrowser/TreeNodes/FileNode.cs
  11. 10
      src/Main/Base/Project/Src/Project/AbstractProject.cs
  12. 13
      src/Main/Base/Project/Src/Project/Items/FileProjectItem.cs
  13. 7
      src/Main/Base/Project/Src/Project/MSBuildProject.cs
  14. 3
      src/Main/Base/Project/Src/Project/Solution/AbstractSolutionFolder.cs
  15. 3
      src/Main/Base/Project/Src/Project/Solution/Solution.cs
  16. BIN
      src/Main/StartUp/Project/Resources/StringResources.resources

BIN
data/resources/StringResources.cz.resources

Binary file not shown.

BIN
data/resources/StringResources.de.resources

Binary file not shown.

BIN
data/resources/StringResources.it.resources

Binary file not shown.

BIN
data/resources/StringResources.pl.resources

Binary file not shown.

BIN
data/resources/StringResources.pt-br.resources

Binary file not shown.

BIN
data/resources/StringResources.se.resources

Binary file not shown.

BIN
data/resources/StringResources.tr.resources

Binary file not shown.

7
src/Main/Base/Project/Src/Gui/Pads/ProjectBrowser/TreeNodes/AbstractProjectBrowserTreeNode.cs

@ -85,7 +85,7 @@ namespace ICSharpCode.SharpDevelop.Project
} }
return null; return null;
} }
} }
public AbstractProjectBrowserTreeNode() public AbstractProjectBrowserTreeNode()
{ {
@ -178,5 +178,10 @@ namespace ICSharpCode.SharpDevelop.Project
} }
return data; return data;
} }
protected string GetQuestionText(string question)
{
return StringParser.Parse(question, new string[,] {{"FileName", Text}});
}
} }
} }

2
src/Main/Base/Project/Src/Gui/Pads/ProjectBrowser/TreeNodes/DirectoryNode.cs

@ -515,7 +515,7 @@ namespace ICSharpCode.SharpDevelop.Project
FileService.RemoveFile(Directory, true); FileService.RemoveFile(Directory, true);
Project.Save(); Project.Save();
} else { } else {
if (MessageService.AskQuestion("Delete '" + Text + "' and all its contents permanently ?")) { if (MessageService.AskQuestion(GetQuestionText("${res:ProjectComponent.ContextMenu.DeleteWithContents.Question}"))) {
FileService.RemoveFile(Directory, true); FileService.RemoveFile(Directory, true);
Project.Save(); Project.Save();
} }

4
src/Main/Base/Project/Src/Gui/Pads/ProjectBrowser/TreeNodes/FileNode.cs

@ -182,13 +182,13 @@ namespace ICSharpCode.SharpDevelop.Project
ProjectService.SaveSolution(); ProjectService.SaveSolution();
} else { } else {
if (Nodes.Count > 0) { if (Nodes.Count > 0) {
if (MessageService.AskQuestion("Delete '" + Text + "' and its dependent files permanently?")) { if (MessageService.AskQuestion(GetQuestionText("${res:ProjectComponent.ContextMenu.DeleteWithDependentFiles.Question}"))) {
DeleteChildNodes(); DeleteChildNodes();
FileService.RemoveFile(FileName, false); FileService.RemoveFile(FileName, false);
ProjectService.SaveSolution(); ProjectService.SaveSolution();
} }
} }
else if (MessageService.AskQuestion("Delete '" + Text + "' permanently ?")) { else if (MessageService.AskQuestion(GetQuestionText("${res:ProjectComponent.ContextMenu.Delete.Question}"))) {
FileService.RemoveFile(FileName, false); FileService.RemoveFile(FileName, false);
ProjectService.SaveSolution(); ProjectService.SaveSolution();
} }

10
src/Main/Base/Project/Src/Project/AbstractProject.cs

@ -33,12 +33,14 @@ namespace ICSharpCode.SharpDevelop.Project
protected string fileName; protected string fileName;
protected string language; protected string language;
[Browsable(false)]
public Dictionary<string, PropertyGroup> Configurations { public Dictionary<string, PropertyGroup> Configurations {
get { get {
return configurations; return configurations;
} }
} }
[Browsable(false)]
public Dictionary<string, PropertyGroup> UserConfigurations { public Dictionary<string, PropertyGroup> UserConfigurations {
get { get {
return userConfigurations; return userConfigurations;
@ -192,7 +194,8 @@ namespace ICSharpCode.SharpDevelop.Project
} }
} }
[Browsable(false)] [ReadOnly(true)]
[LocalizedProperty("${res:MainWindow.Windows.Debug.CallStack.Language}")]
public string Language { public string Language {
get { get {
return language; return language;
@ -224,6 +227,8 @@ namespace ICSharpCode.SharpDevelop.Project
string activeConfiguration = "Debug"; string activeConfiguration = "Debug";
string activePlatform = "AnyCPU"; string activePlatform = "AnyCPU";
[ReadOnly(true)]
[LocalizedProperty("${res:Dialog.ProjectOptions.Platform}")]
public string Platform { public string Platform {
get { get {
return activePlatform; return activePlatform;
@ -240,6 +245,8 @@ namespace ICSharpCode.SharpDevelop.Project
} }
} }
[ReadOnly(true)]
[LocalizedProperty("${res:Dialog.ProjectOptions.Configuration}")]
public string Configuration { public string Configuration {
get { get {
return activeConfiguration; return activeConfiguration;
@ -382,6 +389,7 @@ namespace ICSharpCode.SharpDevelop.Project
{ {
} }
[Browsable(false)]
public virtual bool IsStartable { public virtual bool IsStartable {
get { get {
return false; return false;

13
src/Main/Base/Project/Src/Project/Items/FileProjectItem.cs

@ -13,6 +13,7 @@ using ICSharpCode.SharpDevelop.Gui;
namespace ICSharpCode.SharpDevelop.Project namespace ICSharpCode.SharpDevelop.Project
{ {
public enum CopyToOutputDirectory { public enum CopyToOutputDirectory {
[Description("test")]
Never, Never,
Always, Always,
PreserveNewest PreserveNewest
@ -51,8 +52,8 @@ namespace ICSharpCode.SharpDevelop.Project
} }
} }
[LocalizedProperty("Copy to output Directory", [LocalizedProperty("${res:ICSharpCode.SharpDevelop.Internal.Project.ProjectFile.CopyToOutputDirectory}",
Description ="Specifies if the file should be copied to the output directory")] Description = "${res:ICSharpCode.SharpDevelop.Internal.Project.ProjectFile.CopyToOutputDirectory.Description}")]
public CopyToOutputDirectory CopyToOutputDirectory { public CopyToOutputDirectory CopyToOutputDirectory {
get { get {
return base.Properties.Get("CopyToOutputDirectory", CopyToOutputDirectory.Never); return base.Properties.Get("CopyToOutputDirectory", CopyToOutputDirectory.Never);
@ -62,8 +63,8 @@ namespace ICSharpCode.SharpDevelop.Project
} }
} }
[LocalizedProperty("Custom Tool", [LocalizedProperty("${res:ICSharpCode.SharpDevelop.Internal.Project.ProjectFile.CustomTool}",
Description ="Specifies the tool that converts the file to the output.")] Description ="${res:ICSharpCode.SharpDevelop.Internal.Project.ProjectFile.CustomTool.Description}")]
public string CustomTool { public string CustomTool {
get { get {
return base.Properties["Generator"]; return base.Properties["Generator"];
@ -73,8 +74,8 @@ namespace ICSharpCode.SharpDevelop.Project
} }
} }
[LocalizedProperty("Custom Tool Namespace", [LocalizedProperty("${res:ICSharpCode.SharpDevelop.Internal.Project.ProjectFile.CustomToolNamespace}",
Description ="Specifies the namespace the custom tool places it's output.")] Description ="${res:ICSharpCode.SharpDevelop.Internal.Project.ProjectFile.CustomToolNamespace.Description}")]
public string CustomToolNamespace { public string CustomToolNamespace {
get { get {
return base.Properties["CustomToolNamespace"]; return base.Properties["CustomToolNamespace"];

7
src/Main/Base/Project/Src/Project/MSBuildProject.cs

@ -6,7 +6,7 @@
// </file> // </file>
using System; using System;
using System.CodeDom.Compiler; using System.ComponentModel;
using System.Diagnostics; using System.Diagnostics;
using System.IO; using System.IO;
using System.Globalization; using System.Globalization;
@ -350,6 +350,7 @@ namespace ICSharpCode.SharpDevelop.Project
} }
} }
[Browsable(false)]
public string StartProgram { public string StartProgram {
get { get {
return GetProperty("StartProgram"); return GetProperty("StartProgram");
@ -359,6 +360,7 @@ namespace ICSharpCode.SharpDevelop.Project
} }
} }
[Browsable(false)]
public string StartUrl { public string StartUrl {
get { get {
return GetProperty("StartURL"); return GetProperty("StartURL");
@ -368,6 +370,7 @@ namespace ICSharpCode.SharpDevelop.Project
} }
} }
[Browsable(false)]
public StartAction StartAction { public StartAction StartAction {
get { get {
return GetProperty("StartAction", StartAction.Project); return GetProperty("StartAction", StartAction.Project);
@ -377,6 +380,7 @@ namespace ICSharpCode.SharpDevelop.Project
} }
} }
[Browsable(false)]
public string StartArguments { public string StartArguments {
get { get {
return GetProperty("StartArguments"); return GetProperty("StartArguments");
@ -386,6 +390,7 @@ namespace ICSharpCode.SharpDevelop.Project
} }
} }
[Browsable(false)]
public string StartWorkingDirectory { public string StartWorkingDirectory {
get { get {
return GetProperty("StartWorkingDirectory"); return GetProperty("StartWorkingDirectory");

3
src/Main/Base/Project/Src/Project/Solution/AbstractSolutionFolder.cs

@ -7,13 +7,14 @@
using System; using System;
using System.ComponentModel; using System.ComponentModel;
using ICSharpCode.SharpDevelop.Gui;
namespace ICSharpCode.SharpDevelop.Project namespace ICSharpCode.SharpDevelop.Project
{ {
/// <summary> /// <summary>
/// Description of ISolutionFolderContainer. /// Description of ISolutionFolderContainer.
/// </summary> /// </summary>
public abstract class AbstractSolutionFolder : ISolutionFolder public abstract class AbstractSolutionFolder : LocalizedObject, ISolutionFolder
{ {
ISolutionFolderContainer parent = null; ISolutionFolderContainer parent = null;
string typeGuid = null; string typeGuid = null;

3
src/Main/Base/Project/Src/Project/Solution/Solution.cs

@ -138,6 +138,7 @@ namespace ICSharpCode.SharpDevelop.Project
} }
} }
[Browsable(false)]
public string FileName { public string FileName {
get { get {
return fileName; return fileName;
@ -147,6 +148,7 @@ namespace ICSharpCode.SharpDevelop.Project
} }
} }
[Browsable(false)]
public string Directory { public string Directory {
get { get {
return Path.GetDirectoryName(fileName); return Path.GetDirectoryName(fileName);
@ -189,6 +191,7 @@ namespace ICSharpCode.SharpDevelop.Project
SolutionPreferences preferences; SolutionPreferences preferences;
[Browsable(false)]
public SolutionPreferences Preferences { public SolutionPreferences Preferences {
get { get {
return preferences; return preferences;

BIN
src/Main/StartUp/Project/Resources/StringResources.resources

Binary file not shown.
Loading…
Cancel
Save