Skip to content

Commit 805b295

Browse files
committed
Simplify method name
1 parent 92441b1 commit 805b295

File tree

8 files changed

+9
-9
lines changed

8 files changed

+9
-9
lines changed

src/avrdudess/Form1.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@ private void Form1_Load(object sender, EventArgs e)
479479
cbEraseFlashEEPROM.CheckedChanged += event_controlChanged;
480480
txtAdditional.TextChanged += event_controlChanged;
481481

482-
Language.Translation.ApplyTranslation(this);
482+
Language.Translation.apply(this);
483483

484484
// Check for updates
485485
if (UpdateCheck.check.needed())

src/avrdudess/FormAbout.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public FormAbout()
2121

2222
private void FormAbout_Load(object sender, System.EventArgs e)
2323
{
24-
Language.Translation.ApplyTranslation(this);
24+
Language.Translation.apply(this);
2525

2626
string about = "";
2727
about += AssemblyData.title + Environment.NewLine;

src/avrdudess/FormEnterText.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public FormEnterText(string title, string prefillText)
2828

2929
private void FormEnterText_Load(object sender, System.EventArgs e)
3030
{
31-
Language.Translation.ApplyTranslation(this);
31+
Language.Translation.apply(this);
3232
}
3333
}
3434
}

src/avrdudess/FormFuseSelector.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public FormFuseSelector()
5252

5353
private void FormFusesAndLocks_Load(object sender, EventArgs e)
5454
{
55-
Language.Translation.ApplyTranslation(this);
55+
Language.Translation.apply(this);
5656

5757
Left += 200;
5858
}

src/avrdudess/FormOptions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public FormOptions(List<Programmer> programmers, List<MCU> mcus)
8989

9090
private void FormOptions_Load(object sender, EventArgs e)
9191
{
92-
Language.Translation.ApplyTranslation(this);
92+
Language.Translation.apply(this);
9393
}
9494

9595
private void setHiddenCheckBoxes(List<string> hiddenParts, CheckedListBox clb)

src/avrdudess/FormPresetManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ private void FormPresetManager_Load(object sender, EventArgs e)
4949
openFileDialog1.FileName = "";
5050
openFileDialog1.Title = Language.Translation.get("_OPENDIALOG_IMPORT");
5151

52-
Language.Translation.ApplyTranslation(this);
52+
Language.Translation.apply(this);
5353
}
5454

5555
private string performTextInputDialog(string title, string prefillText)

src/avrdudess/FormUpdate.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public FormUpdate(UpdateData updateData, Action onSkipVersion)
6161

6262
private void FormUpdate_Load(object sender, EventArgs e)
6363
{
64-
Language.Translation.ApplyTranslation(this);
64+
Language.Translation.apply(this);
6565

6666
// 2 second timer so that a button is not accidentally clicked when the form pops up
6767
tmr = new Timer();

src/avrdudess/Language.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ private Language()
2828

2929
}
3030

31-
public void ApplyTranslation(Control root, bool isFirst = true)
31+
public void apply(Control root, bool isFirst = true)
3232
{
3333
if (isFirst)
3434
root.Text = Translation.get(root.Text);
@@ -37,7 +37,7 @@ public void ApplyTranslation(Control root, bool isFirst = true)
3737
{
3838
control.Text = Translation.get(control.Text);
3939
if (control.Controls != null)
40-
ApplyTranslation(control, false);
40+
apply(control, false);
4141
}
4242
}
4343

0 commit comments

Comments
 (0)