mirror of
https://github.com/greenshot/greenshot
synced 2025-08-23 06:36:20 -07:00
This fixes the language dialog
This commit is contained in:
parent
fad25c023e
commit
d4f1bd4345
1 changed files with 4 additions and 4 deletions
|
@ -43,7 +43,7 @@ namespace Greenshot.Forms
|
||||||
private static readonly LogSource Log = new LogSource();
|
private static readonly LogSource Log = new LogSource();
|
||||||
private bool _properOkPressed;
|
private bool _properOkPressed;
|
||||||
|
|
||||||
private LanguageDialog()
|
public LanguageDialog()
|
||||||
{
|
{
|
||||||
//
|
//
|
||||||
// The InitializeComponent() call is required for Windows Forms designer support.
|
// The InitializeComponent() call is required for Windows Forms designer support.
|
||||||
|
@ -67,12 +67,12 @@ namespace Greenshot.Forms
|
||||||
private void FormLoad(object sender, EventArgs e)
|
private void FormLoad(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
// Initialize the Language ComboBox
|
// Initialize the Language ComboBox
|
||||||
comboBoxLanguage.DisplayMember = "Description";
|
comboBoxLanguage.DisplayMember = "Value";
|
||||||
comboBoxLanguage.ValueMember = "Ietf";
|
comboBoxLanguage.ValueMember = "Key";
|
||||||
|
|
||||||
// Set datasource last to prevent problems
|
// Set datasource last to prevent problems
|
||||||
// See: http://www.codeproject.com/KB/database/scomlistcontrolbinding.aspx?fid=111644
|
// See: http://www.codeproject.com/KB/database/scomlistcontrolbinding.aspx?fid=111644
|
||||||
comboBoxLanguage.DataSource = LanguageLoader.Current.AvailableLanguages;
|
comboBoxLanguage.DataSource = LanguageLoader.Current.AvailableLanguages.ToList();
|
||||||
|
|
||||||
var currentLanguage = LanguageLoader.Current.CurrentLanguage;
|
var currentLanguage = LanguageLoader.Current.CurrentLanguage;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue