Skip to content

Commit

Permalink
update language
Browse files Browse the repository at this point in the history
  • Loading branch information
SK21 committed Feb 21, 2024
1 parent 3680b3b commit c0b2675
Show file tree
Hide file tree
Showing 35 changed files with 1,080 additions and 587 deletions.
5 changes: 3 additions & 2 deletions RateAppSource/RateController/FormPIDGraph.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,12 @@ public FormPIDGraph(Form callingForm)
{
mf = callingForm as FormSettings;
InitializeComponent();

#region // language
this.label5.Text = Lang.lgUPMTarget;
this.label1.Text = Lang.lgUPMApplied;

this.Text = Lang.lgPIDTune;
label7.Text = Lang.lgError;
#endregion
}

private void btnGainAuto_Click(object sender, EventArgs e)
Expand Down
356 changes: 178 additions & 178 deletions RateAppSource/RateController/FormSettings.Designer.cs

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions RateAppSource/RateController/FormSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ public FormSettings(FormStart CallingForm, int Page)

lbAltRate.Text = Lang.lgAltRate;
lbVariableRate.Text = Lang.lgChannel;
lbMaxRate.Text = Lang.lgMaxRate;
lbMinRate.Text = Lang.lgMinRate;
ckVR.Text = Lang.lgUseVR;

lbProportional.Text = Lang.lgProportional;
lbIntegral.Text = Lang.lgIntegral;
Expand All @@ -91,6 +94,11 @@ public FormSettings(FormStart CallingForm, int Page)

lbMinimumUPM.Text = Lang.lgMinUPM;
ckOffRate.Text = Lang.lgOffRate;
ckDefault.Text = Lang.lgDefaultProduct;
ckOnScreen.Text = Lang.lgOnScreen;

label2.Text = Lang.lgWifiSignal;
LabProdDensity.Text = Lang.lgDensity;

#endregion // language

Expand Down
21 changes: 17 additions & 4 deletions RateAppSource/RateController/FormStart.cs
Original file line number Diff line number Diff line change
Expand Up @@ -105,14 +105,19 @@ public FormStart()
mnuSettings.Items["MnuRelays"].Text = Lang.lgRelays;
mnuSettings.Items["calibrateToolStripMenuItem1"].Text = Lang.lgCalibrate;
mnuSettings.Items["networkToolStripMenuItem"].Text = Lang.lgModules;
mnuSettings.Items["exitToolStripMenuItem"].Text = Lang.lgExit;

MnuOptions.DropDownItems["largeScreenToolStripMenuItem"].Text = Lang.lgLargeScreen;
MnuOptions.DropDownItems["transparentToolStripMenuItem"].Text = Lang.lgTransparent;
MnuOptions.DropDownItems["pressuresToolStripMenuItem"].Text = Lang.lgPressure;
MnuOptions.DropDownItems["switchesToolStripMenuItem1"].Text = Lang.lgSwitches;
MnuOptions.DropDownItems["primedStartToolStripMenuItem"].Text = Lang.lgPrimedStart;

MnuOptions.DropDownItems["MnuNew"].Text = Lang.lgNew;
MnuOptions.DropDownItems["MnuOpen"].Text = Lang.lgOpen;
MnuOptions.DropDownItems["MnuSaveAs"].Text = Lang.lgSaveAs;
MnuOptions.DropDownItems["MnuLanguage"].Text = Lang.lgLanguage;
MnuOptions.DropDownItems["mnuMetric"].Text = Lang.lgMetric;
MnuOptions.DropDownItems["switchesToolStripMenuItem1"].Text = Lang.lgSwitches;
MnuOptions.DropDownItems["MnuLanguage"].Text = Lang.lgLanguage;
MnuOptions.DropDownItems["commDiagnosticToolStripMenuItem"].Text = Lang.lgCommDiagnostics;

#endregion // language
Expand Down Expand Up @@ -1214,8 +1219,16 @@ private void saveToolStripMenuItem_Click(object sender, EventArgs e)

private void sectionsToolStripMenuItem_Click(object sender, EventArgs e)
{
Form Sec = new frmSections(this);
Sec.ShowDialog();
Form fs = Application.OpenForms["frmSections"];

if (fs != null)
{
fs.Focus();
return;
}

Form frm = new frmSections(this);
frm.Show();
}

private void SetDayMode()
Expand Down
Loading

0 comments on commit c0b2675

Please sign in to comment.