Browse Source

Update translations; fixed translation-related bugs.

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/2.0@1511 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
shortcuts
Daniel Grunwald 19 years ago
parent
commit
b43033b2b4
  1. BIN
      data/resources/StringResources.cz.resources
  2. BIN
      data/resources/StringResources.es-mx.resources
  3. BIN
      data/resources/StringResources.es.resources
  4. BIN
      data/resources/StringResources.fr.resources
  5. BIN
      data/resources/StringResources.nl.resources
  6. 54
      src/AddIns/Misc/Debugger/Debugger.AddIn/Project/Src/Service/ExceptionForm.cs
  7. 11
      src/AddIns/Misc/Debugger/Debugger.AddIn/Project/Src/Service/ExceptionForm.resx
  8. 2
      src/Main/Base/Project/Src/Gui/Pads/ClassBrowser/Nodes/ReferenceFolderNode.cs
  9. 2
      src/Main/Base/Project/Src/Gui/Pads/ProjectBrowser/TreeNodes/ReferenceFolder.cs
  10. 2
      src/Main/Base/Project/Src/TextEditor/Commands/TextAreaContextmenuCommands.cs
  11. BIN
      src/Main/StartUp/Project/Resources/StringResources.resources

BIN
data/resources/StringResources.cz.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.fr.resources

Binary file not shown.

BIN
data/resources/StringResources.nl.resources

Binary file not shown.

54
src/AddIns/Misc/Debugger/Debugger.AddIn/Project/Src/Service/ExceptionForm.cs

@ -28,19 +28,23 @@ namespace ICSharpCode.SharpDevelop.Services @@ -28,19 +28,23 @@ namespace ICSharpCode.SharpDevelop.Services
private ExceptionForm()
{
InitializeComponent();
this.Text = StringParser.Parse(this.Text);
buttonContinue.Text = StringParser.Parse(buttonContinue.Text);
buttonIgnore.Text = StringParser.Parse(buttonIgnore.Text);
buttonBreak.Text = StringParser.Parse(buttonBreak.Text);
}
public static Result Show(Debugger.Exception exception)
{
ExceptionForm form = new ExceptionForm();
form.textBox.Text = "Exception " +
exception.Type +
" was thrown in debugee:\r\n" +
exception.Message + "\r\n\r\n" +
exception.Callstack.Replace("\n","\r\n");
form.pictureBox.Image = ResourceService.GetBitmap((exception.ExceptionType != ExceptionType.DEBUG_EXCEPTION_UNHANDLED)?"Icons.32x32.Warning":"Icons.32x32.Error");
form.ShowDialog(ICSharpCode.SharpDevelop.Gui.WorkbenchSingleton.MainForm);
return form.result;
using (ExceptionForm form = new ExceptionForm()) {
form.textBox.Text =
ResourceService.GetString("MainWindow.Windows.Debug.ExceptionForm.Message").Replace("{0}", exception.Type) + "\r\n" +
exception.Message + "\r\n\r\n" +
exception.Callstack.Replace("\n","\r\n");
form.pictureBox.Image = ResourceService.GetBitmap((exception.ExceptionType != ExceptionType.DEBUG_EXCEPTION_UNHANDLED)?"Icons.32x32.Warning":"Icons.32x32.Error");
form.ShowDialog(ICSharpCode.SharpDevelop.Gui.WorkbenchSingleton.MainForm);
return form.result;
}
}
#region Windows Forms Designer generated code
@ -65,7 +69,7 @@ namespace ICSharpCode.SharpDevelop.Services @@ -65,7 +69,7 @@ namespace ICSharpCode.SharpDevelop.Services
this.buttonBreak.Name = "buttonBreak";
this.buttonBreak.Size = new System.Drawing.Size(91, 32);
this.buttonBreak.TabIndex = 0;
this.buttonBreak.Text = "Break";
this.buttonBreak.Text = "${res:XML.MainMenu.DebugMenu.Break}";
this.buttonBreak.Click += new System.EventHandler(this.buttonBreak_Click);
//
// pictureBox
@ -80,12 +84,12 @@ namespace ICSharpCode.SharpDevelop.Services @@ -80,12 +84,12 @@ namespace ICSharpCode.SharpDevelop.Services
// buttonIgnore
//
this.buttonIgnore.Anchor = System.Windows.Forms.AnchorStyles.Bottom;
this.buttonIgnore.Enabled = true;
this.buttonIgnore.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.buttonIgnore.Location = new System.Drawing.Point(372, 160);
this.buttonIgnore.Name = "buttonIgnore";
this.buttonIgnore.Size = new System.Drawing.Size(91, 32);
this.buttonIgnore.TabIndex = 2;
this.buttonIgnore.Text = "Ignore";
this.buttonIgnore.Text = "${res:Global.IgnoreButtonText}";
this.buttonIgnore.Click += new System.EventHandler(this.buttonIgnore_Click);
//
// buttonContinue
@ -95,26 +99,26 @@ namespace ICSharpCode.SharpDevelop.Services @@ -95,26 +99,26 @@ namespace ICSharpCode.SharpDevelop.Services
this.buttonContinue.Name = "buttonContinue";
this.buttonContinue.Size = new System.Drawing.Size(91, 32);
this.buttonContinue.TabIndex = 1;
this.buttonContinue.Text = "Continue";
this.buttonContinue.Text = "${res:ICSharpCode.SharpDevelop.ExceptionBox.Continue}";
this.buttonContinue.Click += new System.EventHandler(this.buttonContinue_Click);
//
// label
// textBox
//
this.textBox.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.textBox.Location = new System.Drawing.Point(91, 16);
this.textBox.Name = "textBox";
this.textBox.Multiline = true;
this.textBox.WordWrap = false;
this.textBox.Name = "textBox";
this.textBox.ReadOnly = true;
this.textBox.ScrollBars = System.Windows.Forms.ScrollBars.Both;
this.textBox.Size = new System.Drawing.Size(528, 138);
this.textBox.TabIndex = 4;
this.textBox.Text = "";
this.textBox.ScrollBars = ScrollBars.Both;
this.textBox.WordWrap = false;
//
// ExceptionForm
//
this.CancelButton = this.buttonIgnore;
this.ClientSize = new System.Drawing.Size(638, 203);
this.Controls.Add(this.textBox);
this.Controls.Add(this.pictureBox);
@ -125,27 +129,27 @@ namespace ICSharpCode.SharpDevelop.Services @@ -125,27 +129,27 @@ namespace ICSharpCode.SharpDevelop.Services
this.MinimizeBox = false;
this.Name = "ExceptionForm";
this.ShowInTaskbar = false;
this.Text = "Exception";
this.Text = "${res:MainWindow.Windows.Debug.ExceptionHistory.Exception}";
this.TopMost = true;
((System.ComponentModel.ISupportInitialize)(this.pictureBox)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private void buttonBreak_Click(object sender, System.EventArgs e)
private void buttonBreak_Click(object sender, System.EventArgs e)
{
result = Result.Break;
Close();
}
private void buttonContinue_Click(object sender, System.EventArgs e)
private void buttonContinue_Click(object sender, System.EventArgs e)
{
result = Result.Continue;
Close();
}
private void buttonIgnore_Click(object sender, System.EventArgs e)
private void buttonIgnore_Click(object sender, System.EventArgs e)
{
result = Result.Ignore;
Close();

11
src/AddIns/Misc/Debugger/Debugger.AddIn/Project/Src/Service/ExceptionForm.resx

@ -1,4 +1,4 @@ @@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
@ -60,6 +60,7 @@ @@ -60,6 +60,7 @@
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
@ -71,6 +72,7 @@ @@ -71,6 +72,7 @@
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
@ -88,6 +90,7 @@ @@ -88,6 +90,7 @@
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
@ -109,9 +112,9 @@ @@ -109,9 +112,9 @@
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>
</root>

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

@ -45,7 +45,7 @@ namespace ICSharpCode.SharpDevelop.Gui @@ -45,7 +45,7 @@ namespace ICSharpCode.SharpDevelop.Gui
sortOrder = -1;
this.project = project;
Text = "References";
Text = ResourceService.GetString("ICSharpCode.SharpDevelop.Commands.ProjectBrowser.ReferencesNodeText");
OpenedIcon = "ProjectBrowser.ReferenceFolder.Open";
ClosedIcon = "ProjectBrowser.ReferenceFolder.Closed";

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

@ -23,7 +23,7 @@ namespace ICSharpCode.SharpDevelop.Project @@ -23,7 +23,7 @@ namespace ICSharpCode.SharpDevelop.Project
this.project = project;
ContextmenuAddinTreePath = "/SharpDevelop/Pads/ProjectBrowser/ContextMenu/ReferenceFolderNode";
Text = "References";
Text = ResourceService.GetString("ICSharpCode.SharpDevelop.Commands.ProjectBrowser.ReferencesNodeText");
OpenedImage = "ProjectBrowser.ReferenceFolder.Open";
ClosedImage = "ProjectBrowser.ReferenceFolder.Closed";

2
src/Main/Base/Project/Src/TextEditor/Commands/TextAreaContextmenuCommands.cs

@ -29,7 +29,7 @@ namespace ICSharpCode.SharpDevelop.DefaultEditor.Commands @@ -29,7 +29,7 @@ namespace ICSharpCode.SharpDevelop.DefaultEditor.Commands
{
public override void Run()
{
OptionsCommand.ShowTabbedOptions("ShowTabbedOptions",
OptionsCommand.ShowTabbedOptions(ResourceService.GetString("Dialog.Options.BufferOptions"),
AddInTree.GetTreeNode("/SharpDevelop/ViewContent/DefaultTextEditor/OptionsDialog"));
}
}

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

Binary file not shown.
Loading…
Cancel
Save