mirror of
https://github.com/greenshot/greenshot
synced 2025-08-19 13:10:00 -07:00
Fixed translation issue in expert settings, clipboard format options not being updated right away after switching UI language, see bug #3576073
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2178 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
parent
428b84ac6d
commit
75f848e989
1 changed files with 12 additions and 1 deletions
|
@ -231,6 +231,7 @@ namespace Greenshot {
|
||||||
// Delaying the SelectedIndexChanged events untill all is initiated
|
// Delaying the SelectedIndexChanged events untill all is initiated
|
||||||
this.combobox_language.SelectedIndexChanged += new System.EventHandler(this.Combobox_languageSelectedIndexChanged);
|
this.combobox_language.SelectedIndexChanged += new System.EventHandler(this.Combobox_languageSelectedIndexChanged);
|
||||||
UpdateDestinationDescriptions();
|
UpdateDestinationDescriptions();
|
||||||
|
UpdateClipboardFormatDescriptions();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check the settings and somehow visibly mark when something is incorrect
|
// Check the settings and somehow visibly mark when something is incorrect
|
||||||
|
@ -264,6 +265,16 @@ namespace Greenshot {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Show all clipboard format descriptions in the current language
|
||||||
|
/// </summary>
|
||||||
|
private void UpdateClipboardFormatDescriptions() {
|
||||||
|
foreach(ListViewItem item in listview_clipboardformats.Items) {
|
||||||
|
ClipboardFormat cf = (ClipboardFormat) item.Tag;
|
||||||
|
item.Text = Language.Translate(cf);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Build the view with all the destinations
|
/// Build the view with all the destinations
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -319,7 +330,7 @@ namespace Greenshot {
|
||||||
item.Tag = clipboardFormat;
|
item.Tag = clipboardFormat;
|
||||||
item.Checked = coreConfiguration.ClipboardFormats.Contains(clipboardFormat);
|
item.Checked = coreConfiguration.ClipboardFormats.Contains(clipboardFormat);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Language.CurrentLanguage != null) {
|
if (Language.CurrentLanguage != null) {
|
||||||
combobox_language.SelectedValue = Language.CurrentLanguage;
|
combobox_language.SelectedValue = Language.CurrentLanguage;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue