mirror of
https://github.com/greenshot/greenshot
synced 2025-08-14 02:37:03 -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
|
||||
this.combobox_language.SelectedIndexChanged += new System.EventHandler(this.Combobox_languageSelectedIndexChanged);
|
||||
UpdateDestinationDescriptions();
|
||||
UpdateClipboardFormatDescriptions();
|
||||
}
|
||||
|
||||
// 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>
|
||||
/// Build the view with all the destinations
|
||||
/// </summary>
|
||||
|
@ -319,7 +330,7 @@ namespace Greenshot {
|
|||
item.Tag = clipboardFormat;
|
||||
item.Checked = coreConfiguration.ClipboardFormats.Contains(clipboardFormat);
|
||||
}
|
||||
|
||||
|
||||
if (Language.CurrentLanguage != null) {
|
||||
combobox_language.SelectedValue = Language.CurrentLanguage;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue