Some localization to German
This commit is contained in:
+51
-21
@@ -240,28 +240,51 @@ namespace Config.Entities
|
|||||||
/// <summary> Possible modes of operation of components and devices. </summary>
|
/// <summary> Possible modes of operation of components and devices. </summary>
|
||||||
public enum DebugMode
|
public enum DebugMode
|
||||||
{
|
{
|
||||||
DetectedOff = -2,
|
#if MUNICH
|
||||||
DetectedOn = -1,
|
[Description("Detected off")] DetectedOff = -2,
|
||||||
Normal = 0, /// Normal operation
|
[Description("Detected on")] DetectedOn = -1,
|
||||||
AutoDetect, /// The component (device) will be auto-detected
|
[Description("Normal")] Normal = 0, /// Normal operation
|
||||||
FailureDuringOperation, /// Failure during operation -> disabled
|
[Description("Auto detect")] AutoDetect, /// The component (device) will be auto-detected
|
||||||
Off, /// The component is off
|
[Description("Fehler")] FailureDuringOperation, /// Failure during operation -> disabled
|
||||||
Record,
|
[Description("Aus")] Off, /// The component is off
|
||||||
Reply,
|
[Description("Record")] Record,
|
||||||
Simulate, /// Test bench simulation, this mode does not require any hardware
|
[Description("Reply")] Reply,
|
||||||
Inherit,
|
[Description("Simulation")] Simulate, /// Test bench simulation, this mode does not require any hardware
|
||||||
|
[Description("Inherit")] Inherit,
|
||||||
|
#else
|
||||||
|
[Description("Detected off")] DetectedOff = -2,
|
||||||
|
[Description("Detected on")] DetectedOn = -1,
|
||||||
|
[Description("Normal")] Normal = 0, /// Normal operation
|
||||||
|
[Description("Auto detect")] AutoDetect, /// The component (device) will be auto-detected
|
||||||
|
[Description("Run-time error")] FailureDuringOperation, /// Failure during operation -> disabled
|
||||||
|
[Description("Off")] Off, /// The component is off
|
||||||
|
[Description("Record")] Record,
|
||||||
|
[Description("Reply")] Reply,
|
||||||
|
[Description("Simulate")] Simulate, /// Test bench simulation, this mode does not require any hardware
|
||||||
|
[Description("Inherit")] Inherit,
|
||||||
|
#endif
|
||||||
Count,
|
Count,
|
||||||
}
|
}
|
||||||
|
|
||||||
public enum LogLevel
|
public enum LogLevel
|
||||||
{
|
{
|
||||||
Off,
|
#if MUNICH
|
||||||
Fatal,
|
[Description("Aus")] Off,
|
||||||
Error,
|
[Description("Fatal")] Fatal,
|
||||||
Warn,
|
[Description("Fehler")] Error,
|
||||||
Info,
|
[Description("Warn")] Warn,
|
||||||
Debug,
|
[Description("Info")] Info,
|
||||||
All,
|
[Description("Debug")] Debug,
|
||||||
|
[Description("Alles")] All,
|
||||||
|
#else
|
||||||
|
[Description("Off")] Off,
|
||||||
|
[Description("Fatal")] Fatal,
|
||||||
|
[Description("Error")] Error,
|
||||||
|
[Description("Warn")] Warn,
|
||||||
|
[Description("Info")] Info,
|
||||||
|
[Description("Debug")] Debug,
|
||||||
|
[Description("All")] All,
|
||||||
|
#endif
|
||||||
Count,
|
Count,
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -282,10 +305,17 @@ namespace Config.Entities
|
|||||||
|
|
||||||
public enum Alignment
|
public enum Alignment
|
||||||
{
|
{
|
||||||
Left,
|
#if MUNICH
|
||||||
Center,
|
[Description("Links")] Left,
|
||||||
Right,
|
[Description("Center")] Center,
|
||||||
Justified,
|
[Description("Rechts")] Right,
|
||||||
|
[Description("Justified")] Justified,
|
||||||
|
#else
|
||||||
|
[Description("Left")] Left,
|
||||||
|
[Description("Center")] Center,
|
||||||
|
[Description("Right")] Right,
|
||||||
|
[Description("Justified")] Justified,
|
||||||
|
#endif
|
||||||
Count
|
Count
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
|
|||||||
// You can specify all the values or you can default the Build and Revision Numbers
|
// You can specify all the values or you can default the Build and Revision Numbers
|
||||||
// by using the '*' as shown below:
|
// by using the '*' as shown below:
|
||||||
// [assembly: AssemblyVersion("1.0.*")]
|
// [assembly: AssemblyVersion("1.0.*")]
|
||||||
[assembly: AssemblyVersion("2.12.373.0")]
|
[assembly: AssemblyVersion("2.12.385.0")]
|
||||||
[assembly: AssemblyFileVersion("2.12.373.0")]
|
[assembly: AssemblyFileVersion("2.12.385.0")]
|
||||||
|
|||||||
@@ -81,7 +81,7 @@ namespace Results.Forms
|
|||||||
ComboBox alignmentCB = new ComboBox();
|
ComboBox alignmentCB = new ComboBox();
|
||||||
for (Config.Entities.Alignment a = 0; a < Config.Entities.Alignment.Count; a++)
|
for (Config.Entities.Alignment a = 0; a < Config.Entities.Alignment.Count; a++)
|
||||||
{
|
{
|
||||||
alignmentCB.Items.Add(a.ToString());
|
alignmentCB.Items.Add(a.ToDescription());
|
||||||
}
|
}
|
||||||
|
|
||||||
editors = new Control[]
|
editors = new Control[]
|
||||||
@@ -146,7 +146,7 @@ namespace Results.Forms
|
|||||||
case Column.Alignment:
|
case Column.Alignment:
|
||||||
for (Config.Entities.Alignment a = 0; a < Config.Entities.Alignment.Count; a++)
|
for (Config.Entities.Alignment a = 0; a < Config.Entities.Alignment.Count; a++)
|
||||||
{
|
{
|
||||||
if (a.ToString().Equals(editors[e.SubItem].Text))
|
if (a.ToDescription().Equals(editors[e.SubItem].Text))
|
||||||
{
|
{
|
||||||
item.Alignment = a;
|
item.Alignment = a;
|
||||||
return;
|
return;
|
||||||
@@ -203,7 +203,7 @@ namespace Results.Forms
|
|||||||
lvi.SubItems.Add(item.Format); /// Format
|
lvi.SubItems.Add(item.Format); /// Format
|
||||||
lvi.SubItems.Add(item.Precision); /// Precision
|
lvi.SubItems.Add(item.Precision); /// Precision
|
||||||
lvi.SubItems.Add(item.Width.ToString()); /// Width
|
lvi.SubItems.Add(item.Width.ToString()); /// Width
|
||||||
lvi.SubItems.Add(item.Alignment.ToString()); /// Alignment
|
lvi.SubItems.Add(item.Alignment.ToDescription()); /// Alignment
|
||||||
|
|
||||||
selectedResultsListViewEx.Items.Add(lvi);
|
selectedResultsListViewEx.Items.Add(lvi);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
|
|||||||
// You can specify all the values or you can default the Build and Revision Numbers
|
// You can specify all the values or you can default the Build and Revision Numbers
|
||||||
// by using the '*' as shown below:
|
// by using the '*' as shown below:
|
||||||
// [assembly: AssemblyVersion("1.0.*")]
|
// [assembly: AssemblyVersion("1.0.*")]
|
||||||
[assembly: AssemblyVersion("2.12.373.0")]
|
[assembly: AssemblyVersion("2.12.385.0")]
|
||||||
[assembly: AssemblyFileVersion("2.12.373.0")]
|
[assembly: AssemblyFileVersion("2.12.385.0")]
|
||||||
|
|||||||
@@ -256,7 +256,7 @@ namespace Results
|
|||||||
items[i].Format,
|
items[i].Format,
|
||||||
items[i].Precision,
|
items[i].Precision,
|
||||||
items[i].Width,
|
items[i].Width,
|
||||||
items[i].Alignment);
|
items[i].Alignment.ToDescription());
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
@@ -286,7 +286,7 @@ namespace Results
|
|||||||
item.Precision = field[5];
|
item.Precision = field[5];
|
||||||
item.Width = int.Parse(field[6]);
|
item.Width = int.Parse(field[6]);
|
||||||
item.Alignment = 0;
|
item.Alignment = 0;
|
||||||
for (Config.Entities.Alignment a = 0; a < Config.Entities.Alignment.Count; a++) if (a.ToString().Equals(field[7])) { item.Alignment = a; break; }
|
for (Config.Entities.Alignment a = 0; a < Config.Entities.Alignment.Count; a++) if (a.ToDescription().Equals(field[7])) { item.Alignment = a; break; }
|
||||||
|
|
||||||
result.Add(item);
|
result.Add(item);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -95,11 +95,11 @@ namespace TBF
|
|||||||
listViewEx.Columns.Add(Strings.Parameters, (ls.ComponentsColumnCount > 5) ? ls.ComponentsColumnWidths[5] : 600);
|
listViewEx.Columns.Add(Strings.Parameters, (ls.ComponentsColumnCount > 5) ? ls.ComponentsColumnWidths[5] : 600);
|
||||||
|
|
||||||
debugCB = new ComboBox();
|
debugCB = new ComboBox();
|
||||||
for (DebugMode level = 0; level < DebugMode.Count; level++) debugCB.Items.Add(level.ToString());
|
for (DebugMode level = 0; level < DebugMode.Count; level++) debugCB.Items.Add(level.ToDescription());
|
||||||
splitContainer.Panel1.Controls.Add(debugCB);
|
splitContainer.Panel1.Controls.Add(debugCB);
|
||||||
|
|
||||||
logCB = new ComboBox();
|
logCB = new ComboBox();
|
||||||
for (LogLevel level = 0; level < LogLevel.Count; level++) logCB.Items.Add(level.ToString());
|
for (LogLevel level = 0; level < LogLevel.Count; level++) logCB.Items.Add(level.ToDescription());
|
||||||
splitContainer.Panel1.Controls.Add(logCB);
|
splitContainer.Panel1.Controls.Add(logCB);
|
||||||
|
|
||||||
listViewEx.SubItemClicked += new Results.Forms.SubItemEventHandler(listViewEx_SubItemClicked);
|
listViewEx.SubItemClicked += new Results.Forms.SubItemEventHandler(listViewEx_SubItemClicked);
|
||||||
@@ -135,7 +135,7 @@ namespace TBF
|
|||||||
{
|
{
|
||||||
for (DebugMode level = 0; level < DebugMode.Count; level++)
|
for (DebugMode level = 0; level < DebugMode.Count; level++)
|
||||||
{
|
{
|
||||||
if (debugCB.Text.Equals(level.ToString()))
|
if (debugCB.Text.Equals(level.ToDescription()))
|
||||||
{
|
{
|
||||||
cmpnt.Mode = level;
|
cmpnt.Mode = level;
|
||||||
flags |= CfgUpdateFlags.RestartRqrd;
|
flags |= CfgUpdateFlags.RestartRqrd;
|
||||||
@@ -148,7 +148,7 @@ namespace TBF
|
|||||||
{
|
{
|
||||||
for (LogLevel level = 0; level < LogLevel.Count; level++)
|
for (LogLevel level = 0; level < LogLevel.Count; level++)
|
||||||
{
|
{
|
||||||
if (logCB.Text.Equals(level.ToString()))
|
if (logCB.Text.Equals(level.ToDescription()))
|
||||||
{
|
{
|
||||||
cmpnt.Logging = level;
|
cmpnt.Logging = level;
|
||||||
flags |= CfgUpdateFlags.RestartRqrd;
|
flags |= CfgUpdateFlags.RestartRqrd;
|
||||||
@@ -179,8 +179,8 @@ namespace TBF
|
|||||||
ListViewItem lvi = new ListViewItem(cmpCfg.Name);
|
ListViewItem lvi = new ListViewItem(cmpCfg.Name);
|
||||||
lvi.SubItems.Add(cmpCfg.Factory.ClassName);
|
lvi.SubItems.Add(cmpCfg.Factory.ClassName);
|
||||||
lvi.SubItems.Add(cmpCfg.ParentName);
|
lvi.SubItems.Add(cmpCfg.ParentName);
|
||||||
lvi.SubItems.Add(cmpCfg.DebugLevel.ToString());
|
lvi.SubItems.Add(cmpCfg.DebugLevel.ToDescription());
|
||||||
lvi.SubItems.Add(cmpCfg.LogLevel.ToString());
|
lvi.SubItems.Add(cmpCfg.LogLevel.ToDescription());
|
||||||
lvi.SubItems.Add(cmpCfg.ToString(1));
|
lvi.SubItems.Add(cmpCfg.ToString(1));
|
||||||
|
|
||||||
lvi.Tag = cmpnt;
|
lvi.Tag = cmpnt;
|
||||||
|
|||||||
@@ -358,11 +358,11 @@ namespace TBF
|
|||||||
//BenchControl.StateMachine.Stop();
|
//BenchControl.StateMachine.Stop();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void benchComponentsTSMItem_Click(object s, EventArgs e) { new ComponentsManagerDlg().ShowDialog(); }
|
private void benchComponentsTSMItem_Click(object s, EventArgs e) { Cursor = Cursors.WaitCursor; new ComponentsManagerDlg().ShowDialog(); Cursor = Cursors.Default; }
|
||||||
private void benchPathsTSMItem_Click(object s, EventArgs e) { new PathsDlg().ShowDialog(); }
|
private void benchPathsTSMItem_Click(object s, EventArgs e) { Cursor = Cursors.WaitCursor; new PathsDlg().ShowDialog(); Cursor = Cursors.Default; }
|
||||||
private void benchTransitionsTSMItem_Click(object s, EventArgs e) { Cursor = Cursors.WaitCursor; new TransitionsDlg().ShowDialog(); Cursor = Cursors.Default; }
|
private void benchTransitionsTSMItem_Click(object s, EventArgs e) { Cursor = Cursors.WaitCursor; new TransitionsDlg().ShowDialog(); Cursor = Cursors.Default; }
|
||||||
private void benchMetrologyTSMItem_Click(object s, EventArgs e) { new MetrologyDlg().ShowDialog(); }
|
private void benchMetrologyTSMItem_Click(object s, EventArgs e) { Cursor = Cursors.WaitCursor; new MetrologyDlg().ShowDialog(); Cursor = Cursors.Default; }
|
||||||
private void proceduresTSMItem_Click(object s, EventArgs e) { new ProceduresDlg().ShowDialog(); }
|
private void proceduresTSMItem_Click(object s, EventArgs e) { Cursor = Cursors.WaitCursor; new ProceduresDlg().ShowDialog(); Cursor = Cursors.Default; }
|
||||||
private void localSettingsTSMItem_Click(object s, EventArgs e) { new PreferencesDlg().ShowDialog(); }
|
private void localSettingsTSMItem_Click(object s, EventArgs e) { new PreferencesDlg().ShowDialog(); }
|
||||||
private void databaseSettingsTSMItem_Click(object s, EventArgs e) { new BenchesDlg().ShowDialog(); }
|
private void databaseSettingsTSMItem_Click(object s, EventArgs e) { new BenchesDlg().ShowDialog(); }
|
||||||
private void usersTSMItem_Click(object s, EventArgs e) { new Forms.EditUsers().ShowDialog(); }
|
private void usersTSMItem_Click(object s, EventArgs e) { new Forms.EditUsers().ShowDialog(); }
|
||||||
|
|||||||
Reference in New Issue
Block a user