Skip to content

Commit

Permalink
Multilingual support - v2.7
Browse files Browse the repository at this point in the history
  • Loading branch information
hellzerg committed Jan 28, 2022
1 parent df871cb commit 23ec4dc
Show file tree
Hide file tree
Showing 26 changed files with 811 additions and 275 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

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

## [2.7] - 2022-01-28
- New: Multilingual support (starting with Hellenic and Chinese)

## [2.6] - 2022-01-23
- Improved: Listing JSON file summaries (#14)

Expand Down
10 changes: 5 additions & 5 deletions Hashing/AboutForm.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions Hashing/AboutForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ public AboutForm()
InitializeComponent();
Options.ApplyTheme(this);
CheckForIllegalCrossThreadCalls = false;

button7.Text = Options.TranslationList["button7"].ToString();
}

private void button7_Click(object sender, EventArgs e)
Expand Down
11 changes: 6 additions & 5 deletions Hashing/AnalyzedForm.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 7 additions & 8 deletions Hashing/CompareForm.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions Hashing/CompareForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@ public CompareForm()
CheckForIllegalCrossThreadCalls = false;
Options.ApplyTheme(this);

label1.Text = Options.TranslationList["label1"].ToString();
btnPaste.Text = Options.TranslationList["btnPaste"].ToString();
btnCompare.Text = Options.TranslationList["btnCompare"].ToString();
chkRemove.Text = Options.TranslationList["chkRemove"].ToString();
label2.Text = Options.TranslationList["label2"].ToString();
lblNoMatch.Text = Options.TranslationList["lblNoMatch"].ToString();

LoadActiveHash();

KeyPreview = true;
Expand Down
7 changes: 7 additions & 0 deletions Hashing/Enums.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,11 @@ public enum FeatureAction
AnalyzeJSON,
ListJSON
}

public enum LanguageCode
{
EN, // english
EL, // hellenic
CN // chinese
}
}
46 changes: 23 additions & 23 deletions Hashing/FeatureBox.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 6 additions & 8 deletions Hashing/FeatureBox.cs
Original file line number Diff line number Diff line change
@@ -1,12 +1,5 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Hashing
Expand All @@ -31,13 +24,18 @@ public FeatureBox()
Options.ApplyTheme(this);
CheckForIllegalCrossThreadCalls = false;

label77.Text = Options.TranslationList["label77"].ToString();
btnCalc.Text = Options.TranslationList["btnCalc"].ToString();
btnAnalyze.Text = Options.TranslationList["btnAnalyze"].ToString();
btnList.Text = Options.TranslationList["btnList"].ToString();

var sm = GetSystemMenu(Handle, false);
EnableMenuItem(sm, SC_CLOSE, MF_BYCOMMAND | MF_DISABLED);
}

private void FeatureBox_Load(object sender, EventArgs e)
{

}

private void btnCalc_Click(object sender, EventArgs e)
Expand Down
3 changes: 3 additions & 0 deletions Hashing/Hashing.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,9 @@
<DependentUpon>Settings.settings</DependentUpon>
<DesignTimeSharedInput>True</DesignTimeSharedInput>
</Compile>
<None Include="Resources\CN.json" />
<None Include="Resources\EL.json" />
<None Include="Resources\EN.json" />
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
Expand Down
Loading

0 comments on commit 23ec4dc

Please sign in to comment.