Browse Source

Added missing resource strings, removed resource strings from AssemblyAnalyzer.

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@574 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
shortcuts
Daniel Grunwald 20 years ago
parent
commit
07bba4fd75
  1. BIN
      data/resources/StringResources.ar.resources
  2. BIN
      data/resources/StringResources.bg.resources
  3. BIN
      data/resources/StringResources.cn-big.resources
  4. BIN
      data/resources/StringResources.cn-gb.resources
  5. BIN
      data/resources/StringResources.de.resources
  6. BIN
      data/resources/StringResources.dk.resources
  7. BIN
      data/resources/StringResources.es-mx.resources
  8. BIN
      data/resources/StringResources.es.resources
  9. BIN
      data/resources/StringResources.fi.resources
  10. BIN
      data/resources/StringResources.fr.resources
  11. BIN
      data/resources/StringResources.hu.resources
  12. BIN
      data/resources/StringResources.it.resources
  13. BIN
      data/resources/StringResources.jp.resources
  14. BIN
      data/resources/StringResources.kr.resources
  15. BIN
      data/resources/StringResources.lt.resources
  16. BIN
      data/resources/StringResources.nl.resources
  17. BIN
      data/resources/StringResources.pl.resources
  18. BIN
      data/resources/StringResources.pt-br.resources
  19. BIN
      data/resources/StringResources.pt.resources
  20. BIN
      data/resources/StringResources.ro.resources
  21. BIN
      data/resources/StringResources.ru.resources
  22. BIN
      data/resources/StringResources.se.resources
  23. BIN
      data/resources/StringResources.sl.resources
  24. BIN
      data/resources/StringResources.sr.resources
  25. BIN
      data/resources/StringResources.tr.resources
  26. 3
      src/AddIns/DisplayBindings/FormDesigner/Project/FormDesigner.csproj
  27. 151
      src/AddIns/DisplayBindings/FormDesigner/Project/Src/FormDesigner/Gui/AssemblyList.cs
  28. 4
      src/AddIns/DisplayBindings/FormDesigner/Project/Src/FormDesigner/Gui/ConfigureSideBarDialog.cs
  29. 6
      src/AddIns/DisplayBindings/FormDesigner/Project/Src/FormDesigner/Gui/RenameCategoryDialog.cs
  30. 2
      src/AddIns/DisplayBindings/FormDesigner/Project/Src/FormDesigner/ToolboxProvider.cs
  31. 6
      src/AddIns/DisplayBindings/ResourceEditor/Project/Src/ResourceEdit/ResourceList.cs
  32. BIN
      src/Main/StartUp/Project/Resources/StringResources.resources
  33. 17
      src/Tools/StringResourceTool/MainForm.cs

BIN
data/resources/StringResources.ar.resources

Binary file not shown.

BIN
data/resources/StringResources.bg.resources

Binary file not shown.

BIN
data/resources/StringResources.cn-big.resources

Binary file not shown.

BIN
data/resources/StringResources.cn-gb.resources

Binary file not shown.

BIN
data/resources/StringResources.de.resources

Binary file not shown.

BIN
data/resources/StringResources.dk.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.fi.resources

Binary file not shown.

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

Binary file not shown.

BIN
data/resources/StringResources.kr.resources

Binary file not shown.

BIN
data/resources/StringResources.lt.resources

Binary file not shown.

BIN
data/resources/StringResources.nl.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.pt.resources

Binary file not shown.

BIN
data/resources/StringResources.ro.resources

Binary file not shown.

BIN
data/resources/StringResources.ru.resources

Binary file not shown.

BIN
data/resources/StringResources.se.resources

Binary file not shown.

BIN
data/resources/StringResources.sl.resources

Binary file not shown.

BIN
data/resources/StringResources.sr.resources

Binary file not shown.

BIN
data/resources/StringResources.tr.resources

Binary file not shown.

3
src/AddIns/DisplayBindings/FormDesigner/Project/FormDesigner.csproj

@ -55,9 +55,6 @@ @@ -55,9 +55,6 @@
<Compile Include="Src\FormDesigner\Gui\AddComponentsDialog.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Src\FormDesigner\Gui\AssemblyList.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Src\FormDesigner\Gui\ComponentLibraryLoader.cs" />
<Compile Include="Src\FormDesigner\Gui\ConfigureSideBarDialog.cs">
<SubType>Form</SubType>

151
src/AddIns/DisplayBindings/FormDesigner/Project/Src/FormDesigner/Gui/AssemblyList.cs

@ -1,151 +0,0 @@ @@ -1,151 +0,0 @@
// <file>
// <copyright see="prj:///doc/copyright.txt">2002-2005 AlphaSierraPapa</copyright>
// <license see="prj:///doc/license.txt">GNU General Public License</license>
// <owner name="none" email=""/>
// <version>$Revision$</version>
// </file>
// created on 26/01/2003 at 21:23
using System;
using System.Windows.Forms;
using System.Text;
using ICSharpCode.Core;
using MSjogren.GacTool.FusionNative;
namespace ICSharpCode.FormDesigner.Gui
{
public class AssemblyList : System.Windows.Forms.Form
{
private System.Windows.Forms.Button okButton;
private System.Windows.Forms.Button cancelButton;
private System.Windows.Forms.ColumnHeader createdObject1;
private System.Windows.Forms.ColumnHeader createdObject0;
private System.Windows.Forms.ListView listView;
public AssemblyList()
{
InitializeComponents2();
okButton.Text = ResourceService.GetString("Global.OKButtonText");
cancelButton.Text = ResourceService.GetString("Global.CancelButtonText");
ColumnHeader referenceHeader;
referenceHeader = listView.Columns[0];
referenceHeader.Text = ResourceService.GetString("Dialog.SelectReferenceDialog.GacReferencePanel.ReferenceHeader");
referenceHeader.Width = 160;
referenceHeader = listView.Columns[1];
referenceHeader.Text = ResourceService.GetString("Dialog.SelectReferenceDialog.GacReferencePanel.VersionHeader");
referenceHeader.Width = 70;
//ItemActivate += new EventHandler(AddReference);
PrintCache();
}
void InitializeComponents2()
{
//
// Set up generated class form
//
this.SuspendLayout();
this.Name = "form";
this.ShowInTaskbar = false;
this.Size = new System.Drawing.Size(352, 288);
this.MinimizeBox = false;
this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide;
this.StartPosition = FormStartPosition.CenterParent;
this.TopMost = false;
this.MaximizeBox = false;
this.Icon = null;
this.Text = "Add Assembly";//ResourceService.GetString("Dialog.Options.FormDesigner.AddAssembly");
//
// Set up member listView
//
listView = new System.Windows.Forms.ListView();
listView.Name = "listView";
listView.Dock = System.Windows.Forms.DockStyle.Top;
listView.TabIndex = 3;
listView.View = System.Windows.Forms.View.Details;
listView.Size = new System.Drawing.Size(344, 216);
listView.CheckBoxes = true;
listView.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.Nonclickable;
//
// Set up member createdObject0
//
createdObject0 = new System.Windows.Forms.ColumnHeader();
createdObject0.Text = "reference";
listView.Columns.Add(createdObject0);
//
// Set up member createdObject1
//
createdObject1 = new System.Windows.Forms.ColumnHeader();
createdObject1.Text = "version";
listView.Columns.Add(createdObject1);
this.Controls.Add(listView);
//
// Set up member CancelButton
//
cancelButton = new System.Windows.Forms.Button();
cancelButton.Name = "CancelButton";
cancelButton.Location = new System.Drawing.Point(264, 224);
cancelButton.Text = "button2";
cancelButton.TabIndex = 2;
cancelButton.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
cancelButton.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.Controls.Add(cancelButton);
//
// Set up member okButton
//
okButton = new System.Windows.Forms.Button();
okButton.Name = "okButton";
okButton.Location = new System.Drawing.Point(184, 224);
okButton.Text = "button";
okButton.TabIndex = 1;
okButton.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
okButton.DialogResult = System.Windows.Forms.DialogResult.OK;
this.Controls.Add(okButton);
this.ResumeLayout(false);
}
void PrintCache()
{
IApplicationContext applicationContext = null;
IAssemblyEnum assemblyEnum = null;
IAssemblyName assemblyName = null;
Fusion.CreateAssemblyEnum(out assemblyEnum, null, null, 2, 0);
while (assemblyEnum.GetNextAssembly(out applicationContext, out assemblyName, 0) == 0) {
uint nChars = 0;
assemblyName.GetDisplayName(null, ref nChars, 0);
StringBuilder sb = new StringBuilder((int)nChars);
assemblyName.GetDisplayName(sb, ref nChars, 0);
string[] info = sb.ToString().Split(',');
string aName = info[0];
string aVersion = info[1].Substring(info[1].LastIndexOf('=') + 1);
ListViewItem item = new ListViewItem(new string[] {aName, aVersion});
item.Tag = sb.ToString();
listView.Items.Add(item);
}
}
public ListView.CheckedListViewItemCollection GetCheckedItems()
{
return listView.CheckedItems;
}
}
}

4
src/AddIns/DisplayBindings/FormDesigner/Project/Src/FormDesigner/Gui/ConfigureSideBarDialog.cs

@ -131,7 +131,7 @@ namespace ICSharpCode.FormDesigner.Gui @@ -131,7 +131,7 @@ namespace ICSharpCode.FormDesigner.Gui
void removeCategoryButtonClick(object sender, System.EventArgs e)
{
if (MessageService.AskQuestion("${res:ICSharpCode.FormDesigner.Gui.ConfigureSideBarDialog.RemoveCategoryQuestion}")) {
if (MessageService.AskQuestion("${res:ICSharpCode.SharpDevelop.FormDesigner.Gui.ConfigureSideBarDialog.RemoveCategoryQuestion}")) {
categoryListViewSelectedIndexChanged(this, EventArgs.Empty);
ToolboxProvider.ComponentLibraryLoader.Categories.Remove(CurrentCategory);
FillCategories();
@ -149,7 +149,7 @@ namespace ICSharpCode.FormDesigner.Gui @@ -149,7 +149,7 @@ namespace ICSharpCode.FormDesigner.Gui
void removeComponentsButtonClick(object sender, System.EventArgs e)
{
if (MessageService.AskQuestion("${res:ICSharpCode.FormDesigner.Gui.ConfigureSideBarDialog.RemoveComponentsQuestion}")) {
if (MessageService.AskQuestion("${res:ICSharpCode.SharpDevelop.FormDesigner.Gui.ConfigureSideBarDialog.RemoveComponentsQuestion}")) {
foreach (ListViewItem item in ((ListView)ControlDictionary["componentListView"]).SelectedItems) {
CurrentCategory.ToolComponents.Remove((ToolComponent)item.Tag);
}

6
src/AddIns/DisplayBindings/FormDesigner/Project/Src/FormDesigner/Gui/RenameCategoryDialog.cs

@ -33,11 +33,11 @@ namespace ICSharpCode.FormDesigner.Gui @@ -33,11 +33,11 @@ namespace ICSharpCode.FormDesigner.Gui
if (categoryName == null) {
ControlDictionary["categoryNameTextBox"].Text = "New Category";
Text = StringParser.Parse("${res:ICSharpCode.FormDesigner.Gui.RenameCategoryDialog.NewCategoryDialogName}");
Text = StringParser.Parse("${res:ICSharpCode.SharpDevelop.FormDesigner.Gui.RenameCategoryDialog.NewCategoryDialogName}");
} else {
this.categoryName = categoryName;
ControlDictionary["categoryNameTextBox"].Text = categoryName;
Text = StringParser.Parse("${res:ICSharpCode.FormDesigner.Gui.RenameCategoryDialog.RenameCategoryDialogName}");
Text = StringParser.Parse("${res:ICSharpCode.SharpDevelop.FormDesigner.Gui.RenameCategoryDialog.RenameCategoryDialogName}");
}
ControlDictionary["okButton"].Click += new EventHandler(okButtonClick);
}
@ -52,7 +52,7 @@ namespace ICSharpCode.FormDesigner.Gui @@ -52,7 +52,7 @@ namespace ICSharpCode.FormDesigner.Gui
void ShowDuplicateErrorMessage()
{
MessageService.ShowError("${res:ICSharpCode.FormDesigner.Gui.RenameCategoryDialog.DuplicateNameError}");
MessageService.ShowError("${res:ICSharpCode.SharpDevelop.FormDesigner.Gui.RenameCategoryDialog.DuplicateNameError}");
}
// THIS METHOD IS MAINTAINED BY THE FORM DESIGNER

2
src/AddIns/DisplayBindings/FormDesigner/Project/Src/FormDesigner/ToolboxProvider.cs

@ -99,7 +99,7 @@ namespace ICSharpCode.FormDesigner @@ -99,7 +99,7 @@ namespace ICSharpCode.FormDesigner
if (!componentLibraryLoader.LoadToolComponentLibrary(UserConfigFile)) {
if (!componentLibraryLoader.LoadToolComponentLibrary(GlobalConfigFile)) {
MessageService.ShowWarning("${res:ICSharpCode.FormDesigner.ToolboxProvider.CantLoadSidbarComponentLibraryWarning}");
MessageService.ShowWarning("${res:ICSharpCode.SharpDevelop.FormDesigner.ToolboxProvider.CantLoadSidbarComponentLibraryWarning}");
}
}
}

6
src/AddIns/DisplayBindings/ResourceEditor/Project/Src/ResourceEdit/ResourceList.cs

@ -119,7 +119,7 @@ namespace ResourceEditor @@ -119,7 +119,7 @@ namespace ResourceEditor
public void LoadFile(string filename)
{
Stream s = File.OpenRead(filename);
switch (Path.GetExtension(filename).ToLower()) {
switch (Path.GetExtension(filename).ToLowerInvariant()) {
case ".resx":
ResXResourceReader rx = new ResXResourceReader(s);
IDictionaryEnumerator n = rx.GetEnumerator();
@ -154,10 +154,10 @@ namespace ResourceEditor @@ -154,10 +154,10 @@ namespace ResourceEditor
public void SaveFile(string filename)
{
Debug.Assert(!writeProtected, "ICSharpCode.SharpDevelop.Gui.Edit.Resource.ResourceEdit.SaveFile(string filename) : trying to save a write protected file");
switch (Path.GetExtension(filename).ToUpper()) {
switch (Path.GetExtension(filename).ToLowerInvariant()) {
// write XML resource
case ".RESX":
case ".resx":
ResXResourceWriter rxw = new ResXResourceWriter(filename);
foreach (KeyValuePair<string, ResourceItem> entry in resources) {
if (entry.Value != null) {

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

Binary file not shown.

17
src/Tools/StringResourceTool/MainForm.cs

@ -179,9 +179,9 @@ namespace StringResourceTool @@ -179,9 +179,9 @@ namespace StringResourceTool
//
// outputTextBox
//
outputTextBox.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)));
outputTextBox.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)));
outputTextBox.Location = new System.Drawing.Point(12, 120);
outputTextBox.Multiline = true;
outputTextBox.Name = "outputTextBox";
@ -235,14 +235,23 @@ namespace StringResourceTool @@ -235,14 +235,23 @@ namespace StringResourceTool
outputTextBox.Text = b.ToString();
}
string[] specialStarts = {"Dialog.HighlightingEditor.EnvColors.",
"ICSharpCode.SharpDevelop.Commands.ChooseLayoutCommand."};
/// <summary>Gets entries in t1 that are missing from t2.</summary>
List<string> FindMissing(Hashtable t1, Hashtable t2)
{
List<string> result = new List<string>();
foreach (DictionaryEntry e in t1) {
if (!t2.ContainsKey(e.Key)) {
result.Add(e.Key.ToString());
string v = (string)e.Key;
foreach (string txt in specialStarts) {
if (v.StartsWith(txt))
goto next;
}
result.Add(v);
}
next:;
}
result.Sort();
return result;

Loading…
Cancel
Save