Skip to content

Commit

Permalink
Fix for AEPR-22 - Mix up of translations if translation is entered in…
Browse files Browse the repository at this point in the history
…to a node name but the node does not lose focus.
  • Loading branch information
freshehr committed Aug 25, 2014
1 parent b4c7170 commit 72a6ff9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Expand Up @@ -96,4 +96,6 @@ Generated_Code #added for RIA/Silverlight projects
# Visual Studio version. Backup files are not needed, because we have git ;-)
_UpgradeReport_Files/
Backup*/
UpgradeLog*.XML
UpgradeLog*.XML
/ArchetypeEditor.userprefs
/ArchetypeEditor/AssemblyVersion.vb
7 changes: 5 additions & 2 deletions ArchetypeEditor/Forms/Designer.vb
Expand Up @@ -3467,6 +3467,8 @@ Public Class Designer

Private Sub ChangeLanguage(ByVal langCode As String)
If mFileManager.OntologyManager.HasLanguage(langCode) AndAlso mFileManager.OntologyManager.LanguageCode <> langCode Then
' AEPR - 22 - Force Focus change to trigger AfterLabelEdit
LogoPictureBox.Focus()
previousLanguageCode = mFileManager.OntologyManager.LanguageCode
Translate(langCode)
End If
Expand All @@ -3487,11 +3489,12 @@ Public Class Designer
End Sub

Private Sub MenuChangeLanguage_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
ChangeLanguageText(sender.Text)
ChangeLanguageText(sender.Text)
End Sub

Private Sub MenuLanguageToggle_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MenuLanguageToggle.Click
ChangeLanguage(previousLanguageCode)

ChangeLanguage(previousLanguageCode)
End Sub

#End Region
Expand Down

0 comments on commit 72a6ff9

Please sign in to comment.