Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Internationalize the GUI #2749

Merged
merged 2 commits into from
Jun 10, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,5 @@ bld/
*.nuget.targets

quotes.txt.dat

ElectronUI/
280 changes: 169 additions & 111 deletions GUI/AboutDialog.Designer.cs

Large diffs are not rendered by default.

26 changes: 4 additions & 22 deletions GUI/AboutDialog.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,31 +9,13 @@ public AboutDialog()
InitializeComponent();
ApplyFormCompatibilityFixes();
StartPosition = FormStartPosition.CenterScreen;
versionLabel.Text = string.Format(Properties.Resources.AboutDialogLabel2Text, Meta.GetVersion());
}

private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
private void linkLabel_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
Util.HandleLinkClicked("https://github.com/KSP-CKAN/CKAN/blob/master/LICENSE.md", e);
}

private void linkLabel2_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
Util.HandleLinkClicked("https://github.com/KSP-CKAN/CKAN/graphs/contributors", e);
}

private void linkLabel3_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
Util.HandleLinkClicked("https://github.com/KSP-CKAN/CKAN/", e);
}

private void linkLabel4_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
Util.HandleLinkClicked("http://forum.kerbalspaceprogram.com/index.php?/topic/154922-ckan", e);
}

private void linkLabel5_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
Util.HandleLinkClicked("http://ksp-ckan.space", e);
string url = (sender as LinkLabel).Text;
Util.HandleLinkClicked(url, e);
}
}
}
6,871 changes: 36 additions & 6,835 deletions GUI/AboutDialog.resx

Large diffs are not rendered by default.

31 changes: 15 additions & 16 deletions GUI/AskUserForAutoUpdatesDialog.Designer.cs

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

Loading