Browse Source

Fixed some translation issues.

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@1612 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
shortcuts
Daniel Grunwald 19 years ago
parent
commit
56b2aa0f70
  1. BIN
      data/resources/StringResources.cz.resources
  2. BIN
      data/resources/StringResources.de.resources
  3. BIN
      data/resources/StringResources.es-mx.resources
  4. BIN
      data/resources/StringResources.es.resources
  5. BIN
      data/resources/StringResources.hu.resources
  6. BIN
      data/resources/StringResources.it.resources
  7. BIN
      data/resources/StringResources.kr.resources
  8. BIN
      data/resources/StringResources.nl.resources
  9. BIN
      data/resources/StringResources.no.resources
  10. BIN
      data/resources/StringResources.pl.resources
  11. BIN
      data/resources/StringResources.pt-br.resources
  12. BIN
      data/resources/StringResources.ro.resources
  13. BIN
      data/resources/StringResources.tr.resources
  14. 10
      data/templates/file/SharpDevelop/AddInOptions.xft
  15. 4
      data/templates/file/SharpDevelop/ExampleView.xft
  16. 2
      samples/NRefactoryDemo/MainForm.Designer.cs
  17. 10
      samples/NRefactoryExample/WrapperGeneratorVisitor.cs
  18. 10
      src/AddIns/DisplayBindings/ResourceEditor/Project/Src/Commands/SaveEntryAsCommand.cs
  19. 2
      src/AddIns/Misc/Debugger/Debugger.AddIn/Project/Debugger.AddIn.csproj
  20. 4
      src/AddIns/Misc/StartPage/Project/Src/ICSharpCodePage.cs
  21. 4
      src/Main/Base/Project/Src/Gui/Pads/ClassBrowser/Nodes/BaseTypesNode.cs
  22. 4
      src/Main/Base/Project/Src/Gui/Pads/ClassBrowser/Nodes/DerivedTypesNode.cs
  23. 2
      src/Main/Base/Project/Src/Gui/Pads/ClassBrowser/Nodes/ReferenceFolderNode.cs
  24. 2
      src/Main/Base/Project/Src/Project/Converter/LanguageConverter.cs
  25. BIN
      src/Main/StartUp/Project/Resources/StringResources.resources
  26. 2
      src/SharpDevelop.sln

BIN
data/resources/StringResources.cz.resources

Binary file not shown.

BIN
data/resources/StringResources.de.resources

Binary file not shown.

BIN
data/resources/StringResources.es-mx.resources

Binary file not shown.

BIN
data/resources/StringResources.es.resources

Binary file not shown.

BIN
data/resources/StringResources.hu.resources

Binary file not shown.

BIN
data/resources/StringResources.it.resources

Binary file not shown.

BIN
data/resources/StringResources.kr.resources

Binary file not shown.

BIN
data/resources/StringResources.nl.resources

Binary file not shown.

BIN
data/resources/StringResources.no.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.ro.resources

Binary file not shown.

BIN
data/resources/StringResources.tr.resources

Binary file not shown.

10
data/templates/file/SharpDevelop/AddInOptions.xft

@ -2,13 +2,13 @@
<Template author="Mike Krueger" version="1.0"> <Template author="Mike Krueger" version="1.0">
<Config <Config
name = "AddIn Options" name = "${res:Templates.File.#Develop.AddInOptions.Name}"
icon = "C#.File.FullFile" icon = "C#.File.FullFile"
category = "#Develop" category = "#Develop"
defaultname = "AddInOptions${Number}.cs" defaultname = "AddInOptions${Number}.cs"
language = "C#"/> language = "C#"/>
<Description>This class provides an easy access to persistent properties.</Description> <Description>${res:Templates.File.#Develop.AddInOptions.Description}</Description>
<!-- <!--
Special new file templates: Special new file templates:
@ -28,7 +28,7 @@ namespace ${StandardNamespace}
{ {
public class AddInOptions public class AddInOptions
{ {
public static readonly string OptionsProperty = "${StandardNamespace}.Options"; public const string OptionsProperty = "${StandardNamespace}.Options";
static Properties properties; static Properties properties;
@ -38,8 +38,8 @@ namespace ${StandardNamespace}
} }
public static event PropertyChangedEventHandler PropertyChanged { public static event PropertyChangedEventHandler PropertyChanged {
add { Properties.PropertyChanged += value; } add { properties.PropertyChanged += value; }
remove { Properties.PropertyChanged -= value; } remove { properties.PropertyChanged -= value; }
} }
// public static string MyStringProperty { // public static string MyStringProperty {

4
data/templates/file/SharpDevelop/ExampleView.xft

@ -32,7 +32,6 @@ namespace ${StandardNamespace}
/// </summary> /// </summary>
public class ${FileNameWithoutExtension} : AbstractViewContent public class ${FileNameWithoutExtension} : AbstractViewContent
{ {
#region AbstractViewContent requirements
/// <summary> /// <summary>
/// The <see cref="System.Windows.Forms.Control"/> representing the view /// The <see cref="System.Windows.Forms.Control"/> representing the view
/// </summary> /// </summary>
@ -67,7 +66,7 @@ namespace ${StandardNamespace}
/// </summary> /// </summary>
public override void RedrawContent() public override void RedrawContent()
{ {
// TODO: Refresh the whole view control here, renew all resource strings whatever // TODO: Refresh the whole view control here, renew all resource strings
// Note that you do not need to recreate the control. // Note that you do not need to recreate the control.
} }
@ -79,7 +78,6 @@ namespace ${StandardNamespace}
// TODO: Clean up resources in this method // TODO: Clean up resources in this method
// Control.Dispose(); // Control.Dispose();
} }
#endregion
} }
} }

2
samples/NRefactoryDemo/MainForm.Designer.cs generated

@ -136,7 +136,7 @@ namespace NRefactoryDemo
// //
// applyTransformation // applyTransformation
// //
this.applyTransformation.Location = new System.Drawing.Point(25, 105); this.applyTransformation.Location = new System.Drawing.Point(13, 105);
this.applyTransformation.Name = "applyTransformation"; this.applyTransformation.Name = "applyTransformation";
this.applyTransformation.Size = new System.Drawing.Size(96, 23); this.applyTransformation.Size = new System.Drawing.Size(96, 23);
this.applyTransformation.TabIndex = 3; this.applyTransformation.TabIndex = 3;

10
samples/NRefactoryExample/WrapperGeneratorVisitor.cs

@ -23,7 +23,7 @@ namespace NRefactoryExample
// add constructor accepting the wrapped object and the field holding the object // add constructor accepting the wrapped object and the field holding the object
FieldDeclaration fd = new FieldDeclaration(null, // no attributes FieldDeclaration fd = new FieldDeclaration(null, // no attributes
new TypeReference(typeDeclaration.Name), new TypeReference(typeDeclaration.Name),
Modifier.Private); Modifiers.Private);
fd.Fields.Add(new VariableDeclaration("wrappedObject")); fd.Fields.Add(new VariableDeclaration("wrappedObject"));
typeDeclaration.AddChild(fd); typeDeclaration.AddChild(fd);
@ -33,7 +33,7 @@ namespace NRefactoryExample
typeDeclaration.Name = typeDeclaration.Name.Substring(1); typeDeclaration.Name = typeDeclaration.Name.Substring(1);
} }
ConstructorDeclaration cd = new ConstructorDeclaration(typeDeclaration.Name, ConstructorDeclaration cd = new ConstructorDeclaration(typeDeclaration.Name,
Modifier.Public, Modifiers.Public,
new List<ParameterDeclarationExpression>(), new List<ParameterDeclarationExpression>(),
null); null);
cd.Parameters.Add(new ParameterDeclarationExpression(fd.TypeReference, cd.Parameters.Add(new ParameterDeclarationExpression(fd.TypeReference,
@ -73,11 +73,11 @@ namespace NRefactoryExample
base.VisitMethodDeclaration(methodDeclaration, data); // visit parameters base.VisitMethodDeclaration(methodDeclaration, data); // visit parameters
methodDeclaration.Attributes.Clear(); methodDeclaration.Attributes.Clear();
methodDeclaration.Body = new BlockStatement(); methodDeclaration.Body = new BlockStatement();
methodDeclaration.Modifier = Modifier.Public; methodDeclaration.Modifier = Modifiers.Public;
if (methodDeclaration.Parameters.Count > 0) { if (methodDeclaration.Parameters.Count > 0) {
ParameterDeclarationExpression lastParameter = methodDeclaration.Parameters[methodDeclaration.Parameters.Count - 1]; ParameterDeclarationExpression lastParameter = methodDeclaration.Parameters[methodDeclaration.Parameters.Count - 1];
if (lastParameter.ParamModifier == ParamModifier.Out) { if (lastParameter.ParamModifier == ParameterModifiers.Out) {
methodDeclaration.TypeReference = lastParameter.TypeReference; methodDeclaration.TypeReference = lastParameter.TypeReference;
methodDeclaration.Parameters.RemoveAt(methodDeclaration.Parameters.Count - 1); methodDeclaration.Parameters.RemoveAt(methodDeclaration.Parameters.Count - 1);
@ -105,7 +105,7 @@ namespace NRefactoryExample
InvocationExpression ie = new InvocationExpression(methodName, null); InvocationExpression ie = new InvocationExpression(methodName, null);
foreach (ParameterDeclarationExpression param in method.Parameters) { foreach (ParameterDeclarationExpression param in method.Parameters) {
Expression expr = new IdentifierExpression(param.ParameterName); Expression expr = new IdentifierExpression(param.ParameterName);
if (param.ParamModifier == ParamModifier.Ref) { if (param.ParamModifier == ParameterModifiers.Ref) {
expr = new DirectionExpression(FieldDirection.Ref, expr); expr = new DirectionExpression(FieldDirection.Ref, expr);
} }
ie.Arguments.Add(expr); ie.Arguments.Add(expr);

10
src/AddIns/DisplayBindings/ResourceEditor/Project/Src/Commands/SaveEntryAsCommand.cs

@ -39,16 +39,16 @@ namespace ResourceEditor
sdialog.FileName = key; sdialog.FileName = key;
if (item.ResourceValue is Bitmap) { if (item.ResourceValue is Bitmap) {
sdialog.Filter = "Image files (*.png)|*.png"; sdialog.Filter = StringParser.Parse("${res:SharpDevelop.FileFilter.ImageFiles} (*.png)|*.png");
sdialog.DefaultExt = ".png"; sdialog.DefaultExt = ".png";
} else if (item.ResourceValue is Icon) { } else if (item.ResourceValue is Icon) {
sdialog.Filter = "Icon files (*.ico)|*.ico"; sdialog.Filter = StringParser.Parse("${res:SharpDevelop.FileFilter.Icons}|*.ico");
sdialog.DefaultExt = ".ico"; sdialog.DefaultExt = ".ico";
} else if (item.ResourceValue is Cursor) { } else if (item.ResourceValue is Cursor) {
sdialog.Filter = "Cursor files (*.cur)|*.cur"; sdialog.Filter = StringParser.Parse("${res:SharpDevelop.FileFilter.CursorFiles} (*.cur)|*.cur");
sdialog.DefaultExt = ".cur"; sdialog.DefaultExt = ".cur";
} else if (item.ResourceValue is byte[]){ } else if (item.ResourceValue is byte[]){
sdialog.Filter = "Binary files (*.*)|*.*"; sdialog.Filter = StringParser.Parse("${res:SharpDevelop.FileFilter.BinaryFiles} (*.*)|*.*");
sdialog.DefaultExt = ".bin"; sdialog.DefaultExt = ".bin";
} else { } else {
return; return;
@ -75,7 +75,7 @@ namespace ResourceEditor
fstr.Close(); fstr.Close();
} }
} catch(Exception ex) { } catch(Exception ex) {
MessageBox.Show(ex.Message, "Can't save resource to " + sdialog.FileName, MessageBoxButtons.OK, MessageBoxIcon.Exclamation); MessageBox.Show(ex.Message, "Can't save resource to " + sdialog.FileName, MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
} }
} }
} }

2
src/AddIns/Misc/Debugger/Debugger.AddIn/Project/Debugger.AddIn.csproj

@ -108,4 +108,4 @@
</ItemGroup> </ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSHARP.Targets" /> <Import Project="$(MSBuildBinPath)\Microsoft.CSHARP.Targets" />
<Import Project="PostBuildEvent.proj" /> <Import Project="PostBuildEvent.proj" />
</Project> </Project>

4
src/AddIns/Misc/StartPage/Project/Src/ICSharpCodePage.cs

@ -483,7 +483,9 @@ namespace ICSharpCode.StartPage
builder.Append(m_strMainColColor); builder.Append(m_strMainColColor);
builder.Append("\" class=\"copy\"><img src=\""+ startPageLocation + "/Layout/Common/blind.gif\" width=15 height=1>"); builder.Append("\" class=\"copy\"><img src=\""+ startPageLocation + "/Layout/Common/blind.gif\" width=15 height=1>");
builder.Append("<font size=\"-2\">"); builder.Append("<font size=\"-2\">");
builder.Append("Copyright &copy;2000-2006 <A HREF=\"mailto:webmaster@icsharpcode.net\" title=\"Contact Us\">IC#SharpCode</a>. "); builder.Append("Copyright &copy;2000-2006 <A HREF=\"mailto:webmaster@icsharpcode.net\" title=\"");
builder.Append(StringParser.Parse("${res:StartPage.ContactUs}"));
builder.Append("\">IC#SharpCode</a>. ");
builder.Append(ICSharpCode.SharpDevelop.Gui.AboutSharpDevelopTabPage.LicenseSentence); builder.Append(ICSharpCode.SharpDevelop.Gui.AboutSharpDevelopTabPage.LicenseSentence);
builder.Append("</font></td>\r\n"); builder.Append("</font></td>\r\n");

4
src/Main/Base/Project/Src/Gui/Pads/ClassBrowser/Nodes/BaseTypesNode.cs

@ -47,12 +47,12 @@ namespace ICSharpCode.SharpDevelop.Gui.ClassBrowser
sortOrder = 0; sortOrder = 0;
this.project = project; this.project = project;
this.c = c; this.c = c;
Text = "Base types"; Text = ResourceService.GetString("MainWindow.Windows.ClassBrowser.BaseTypes");
OpenedIcon = "ProjectBrowser.Folder.Open"; OpenedIcon = "ProjectBrowser.Folder.Open";
ClosedIcon = "ProjectBrowser.Folder.Closed"; ClosedIcon = "ProjectBrowser.Folder.Closed";
Nodes.Add(new TreeNode(StringParser.Parse("${res:ICSharpCode.SharpDevelop.Gui.Pads.ClassScout.LoadingNode}"))); Nodes.Add(new TreeNode(ResourceService.GetString("ICSharpCode.SharpDevelop.Gui.Pads.ClassScout.LoadingNode")));
} }
protected override void Initialize() protected override void Initialize()

4
src/Main/Base/Project/Src/Gui/Pads/ClassBrowser/Nodes/DerivedTypesNode.cs

@ -48,12 +48,12 @@ namespace ICSharpCode.SharpDevelop.Gui.ClassBrowser
this.project = project; this.project = project;
this.c = c; this.c = c;
Text = "Derived types"; Text = ResourceService.GetString("MainWindow.Windows.ClassBrowser.DerivedTypes");
OpenedIcon = "ProjectBrowser.Folder.Open"; OpenedIcon = "ProjectBrowser.Folder.Open";
ClosedIcon = "ProjectBrowser.Folder.Closed"; ClosedIcon = "ProjectBrowser.Folder.Closed";
Nodes.Add(new TreeNode(StringParser.Parse("${res:ICSharpCode.SharpDevelop.Gui.Pads.ClassScout.LoadingNode}"))); Nodes.Add(new TreeNode(ResourceService.GetString("ICSharpCode.SharpDevelop.Gui.Pads.ClassScout.LoadingNode")));
} }
protected override void Initialize() protected override void Initialize()

2
src/Main/Base/Project/Src/Gui/Pads/ClassBrowser/Nodes/ReferenceFolderNode.cs

@ -50,7 +50,7 @@ namespace ICSharpCode.SharpDevelop.Gui.ClassBrowser
OpenedIcon = "ProjectBrowser.ReferenceFolder.Open"; OpenedIcon = "ProjectBrowser.ReferenceFolder.Open";
ClosedIcon = "ProjectBrowser.ReferenceFolder.Closed"; ClosedIcon = "ProjectBrowser.ReferenceFolder.Closed";
Nodes.Add(new TreeNode(StringParser.Parse("${res:ICSharpCode.SharpDevelop.Gui.Pads.ClassScout.LoadingNode}"))); Nodes.Add(new TreeNode(ResourceService.GetString("ICSharpCode.SharpDevelop.Gui.Pads.ClassScout.LoadingNode")));
} }
protected override void Initialize() protected override void Initialize()

2
src/Main/Base/Project/Src/Project/Converter/LanguageConverter.cs

@ -126,7 +126,7 @@ namespace ICSharpCode.SharpDevelop.Project.Converter
IProject sourceProject = ProjectService.CurrentProject; IProject sourceProject = ProjectService.CurrentProject;
string targetProjectDirectory = sourceProject.Directory + ".ConvertedTo" + TargetLanguageName; string targetProjectDirectory = sourceProject.Directory + ".ConvertedTo" + TargetLanguageName;
if (Directory.Exists(targetProjectDirectory)) { if (Directory.Exists(targetProjectDirectory)) {
MessageService.ShowMessageFormatted("${res:ICSharpCode.SharpDevelop.Commands.Convert.TargetAlreadyExists}", targetProjectDirectory); MessageService.ShowMessageFormatted(translatedTitle, "${res:ICSharpCode.SharpDevelop.Commands.Convert.TargetAlreadyExists}", targetProjectDirectory);
return; return;
} }
conversionLog.Append(ResourceService.GetString("ICSharpCode.SharpDevelop.Commands.Convert.SourceDirectory")).Append(": "); conversionLog.Append(ResourceService.GetString("ICSharpCode.SharpDevelop.Commands.Convert.SourceDirectory")).Append(": ");

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

Binary file not shown.

2
src/SharpDevelop.sln

@ -1,5 +1,5 @@
Microsoft Visual Studio Solution File, Format Version 9.00 Microsoft Visual Studio Solution File, Format Version 9.00
# SharpDevelop 2.1.0.1582 # SharpDevelop 2.1.0.1602
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "AddIns", "AddIns", "{14A277EE-7DF1-4529-B639-7D1EF334C1C5}" Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "AddIns", "AddIns", "{14A277EE-7DF1-4529-B639-7D1EF334C1C5}"
ProjectSection(SolutionItems) = postProject ProjectSection(SolutionItems) = postProject
EndProjectSection EndProjectSection

Loading…
Cancel
Save