Skip to content

Commit 23ec4dc

Browse files
committed
Multilingual support - v2.7
1 parent df871cb commit 23ec4dc

26 files changed

Lines changed: 811 additions & 275 deletions

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
All notable changes to this project will be documented in this file.
44

5+
## [2.7] - 2022-01-28
6+
- New: Multilingual support (starting with Hellenic and Chinese)
7+
58
## [2.6] - 2022-01-23
69
- Improved: Listing JSON file summaries (#14)
710

Hashing/AboutForm.Designer.cs

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Hashing/AboutForm.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ public AboutForm()
1111
InitializeComponent();
1212
Options.ApplyTheme(this);
1313
CheckForIllegalCrossThreadCalls = false;
14+
15+
button7.Text = Options.TranslationList["button7"].ToString();
1416
}
1517

1618
private void button7_Click(object sender, EventArgs e)

Hashing/AnalyzedForm.Designer.cs

Lines changed: 6 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Hashing/CompareForm.Designer.cs

Lines changed: 7 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Hashing/CompareForm.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,13 @@ public CompareForm()
1111
CheckForIllegalCrossThreadCalls = false;
1212
Options.ApplyTheme(this);
1313

14+
label1.Text = Options.TranslationList["label1"].ToString();
15+
btnPaste.Text = Options.TranslationList["btnPaste"].ToString();
16+
btnCompare.Text = Options.TranslationList["btnCompare"].ToString();
17+
chkRemove.Text = Options.TranslationList["chkRemove"].ToString();
18+
label2.Text = Options.TranslationList["label2"].ToString();
19+
lblNoMatch.Text = Options.TranslationList["lblNoMatch"].ToString();
20+
1421
LoadActiveHash();
1522

1623
KeyPreview = true;

Hashing/Enums.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,11 @@ public enum FeatureAction
1616
AnalyzeJSON,
1717
ListJSON
1818
}
19+
20+
public enum LanguageCode
21+
{
22+
EN, // english
23+
EL, // hellenic
24+
CN // chinese
25+
}
1926
}

Hashing/FeatureBox.Designer.cs

Lines changed: 23 additions & 23 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Hashing/FeatureBox.cs

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,5 @@
11
using System;
2-
using System.Collections.Generic;
3-
using System.ComponentModel;
4-
using System.Data;
5-
using System.Drawing;
6-
using System.Linq;
72
using System.Runtime.InteropServices;
8-
using System.Text;
9-
using System.Threading.Tasks;
103
using System.Windows.Forms;
114

125
namespace Hashing
@@ -31,13 +24,18 @@ public FeatureBox()
3124
Options.ApplyTheme(this);
3225
CheckForIllegalCrossThreadCalls = false;
3326

27+
label77.Text = Options.TranslationList["label77"].ToString();
28+
btnCalc.Text = Options.TranslationList["btnCalc"].ToString();
29+
btnAnalyze.Text = Options.TranslationList["btnAnalyze"].ToString();
30+
btnList.Text = Options.TranslationList["btnList"].ToString();
31+
3432
var sm = GetSystemMenu(Handle, false);
3533
EnableMenuItem(sm, SC_CLOSE, MF_BYCOMMAND | MF_DISABLED);
3634
}
3735

3836
private void FeatureBox_Load(object sender, EventArgs e)
3937
{
40-
38+
4139
}
4240

4341
private void btnCalc_Click(object sender, EventArgs e)

Hashing/Hashing.csproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,9 @@
161161
<DependentUpon>Settings.settings</DependentUpon>
162162
<DesignTimeSharedInput>True</DesignTimeSharedInput>
163163
</Compile>
164+
<None Include="Resources\CN.json" />
165+
<None Include="Resources\EL.json" />
166+
<None Include="Resources\EN.json" />
164167
</ItemGroup>
165168
<ItemGroup>
166169
<None Include="App.config" />

0 commit comments

Comments
 (0)