Skip to content

Commit

Permalink
Merge pull request #85 from africanmathsinitiative/master
Browse files Browse the repository at this point in the history
updating master
  • Loading branch information
Vitalis95 authored Aug 29, 2022
2 parents de184ec + f90f99c commit dc30615
Show file tree
Hide file tree
Showing 18 changed files with 1,791 additions and 1,376 deletions.
8 changes: 3 additions & 5 deletions instat/clsInstatOptions.vb
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ Imports RDotNet
iPreviewRows = clsInstatOptionsDefaults.DEFAULTiPreviewRows
iMaxRows = clsInstatOptionsDefaults.DEFAULTiMaxRows
iMaxCols = clsInstatOptionsDefaults.DEFAULTiMaxCols
strComment = clsInstatOptionsDefaults.DEFAULTstrComment
strComment = Translations.GetTranslation(clsInstatOptionsDefaults.DEFAULTstrComment)
strGraphDisplayOption = clsInstatOptionsDefaults.DEFAULTstrGraphDisplayOption
strLanguageCultureCode = clsInstatOptionsDefaults.DEFAULTstrLanguageCultureCode
strWorkingDirectory = clsInstatOptionsDefaults.DEFAULTstrWorkingDirectory
Expand Down Expand Up @@ -143,10 +143,8 @@ Imports RDotNet
SetCommandInOutpt(clsInstatOptionsDefaults.DEFAULTbCommandsinOutput)
End If

If strComment IsNot Nothing Then
SetComment(strComment)
Else
SetComment(clsInstatOptionsDefaults.DEFAULTstrComment)
If strComment Is Nothing Then
SetComment(Translations.GetTranslation(clsInstatOptionsDefaults.DEFAULTstrComment))
End If

If strGraphDisplayOption IsNot Nothing Then
Expand Down
6 changes: 6 additions & 0 deletions instat/dlgOptions.vb
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,12 @@ Public Class dlgOptions
autoTranslate(Me)
SetView() 'needed to ensure that the tree view in the left panel correctly displays translated text

If strCurrLanguageCulture <> strPrevLanguageCulture Then
Dim strCommentNewLanguage = Translations.GetTranslation(clsInstatOptionsDefaults.DEFAULTstrComment)
frmMain.clsInstatOptions.SetComment(strCommentNewLanguage)
ucrInputComment.SetName(strCommentNewLanguage)
End If

If frmMain.Visible AndAlso strCurrLanguageCulture <> strPrevLanguageCulture Then
frmMain.TranslateFrmMainMenu()
End If
Expand Down
3 changes: 1 addition & 2 deletions instat/dlgTransformText.vb
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,7 @@ Public Class dlgTransformText
ucrReceiverTransformText.Selector = ucrSelectorForTransformText
ucrReceiverTransformText.bUseFilteredData = False
ucrReceiverTransformText.SetMeAsReceiver()
ucrReceiverTransformText.SetIncludedDataTypes({"factor", "character"})
ucrReceiverTransformText.strSelectorHeading = "Characters"
ucrReceiverTransformText.strSelectorHeading = "Variables"

'ucrRdoOptions
ucrPnlOperation.AddRadioButton(rdoCase)
Expand Down
Loading

0 comments on commit dc30615

Please sign in to comment.