Skip to content

Commit

Permalink
Merge pull request #244 from africanmathsinitiative/master
Browse files Browse the repository at this point in the history
updating branch
  • Loading branch information
maxwellfundi authored Nov 10, 2017
2 parents 60ab22a + 6b18e34 commit 56bfc85
Show file tree
Hide file tree
Showing 29 changed files with 7,420 additions and 278 deletions.
1,939 changes: 1,936 additions & 3 deletions instat/MultilingualResources/instat.fr-FR.xlf

Large diffs are not rendered by default.

1,939 changes: 1,936 additions & 3 deletions instat/MultilingualResources/instat.sw-KE.xlf

Large diffs are not rendered by default.

18 changes: 10 additions & 8 deletions instat/Translations.vb
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,18 @@ Public Class Translations
For Each aControl As Control In controls
'If checkboxes are translated then it overrides the text set in the dialog code
'If ucrPanels are translated their position is shifted on the dialog - not yet found reason but does not affect button translation
If TypeOf aControl IsNot ucrCheck AndAlso TypeOf aControl IsNot ucrInput AndAlso TypeOf aControl IsNot UcrPanel Then
If TypeOf aControl Is Panel Then
If TypeOf aControl IsNot ucrCheck AndAlso TypeOf aControl IsNot ucrInput Then
If TypeOf aControl Is UcrPanel OrElse TypeOf aControl Is Panel Then
translateEach(aControl.Controls, ctrParent)
ElseIf TypeOf aControl Is MenuStrip Then
mnuTmp = DirectCast(aControl, MenuStrip)
translateMenu(mnuTmp.Items, ctrParent)
ElseIf TypeOf aControl Is UserControl Then
translateEach(aControl.Controls, aControl)
Else
If TypeOf aControl Is MenuStrip Then
mnuTmp = DirectCast(aControl, MenuStrip)
translateMenu(mnuTmp.Items, ctrParent)
ElseIf TypeOf aControl Is UserControl Then
translateEach(aControl.Controls, aControl)
End If
res.ApplyResources(aControl, aControl.Name, Threading.Thread.CurrentThread.CurrentUICulture)
End If
res.ApplyResources(aControl, aControl.Name, Threading.Thread.CurrentThread.CurrentUICulture)
End If
Next

Expand Down
6 changes: 5 additions & 1 deletion instat/clsGgplotDefaults.vb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,11 @@ Public Class GgplotDefaults
Dim clsTempParam As New RParameter

clsTempParam.SetArgumentName("theme_name")
clsTempParam.SetArgumentValue("theme_grey()")
clsTempParam.SetArgumentValue("theme_grey()")
'This position MUST be smaller than the position of the theme() parameter
' Otherwise this will overwrite any specific theme options selected
' Currently theme() is set to position 100
clsTempParam.Position = 14
Return clsTempParam
End Get
End Property
Expand Down
2 changes: 1 addition & 1 deletion instat/dlgBarAndPieChart.vb
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ Public Class dlgBarAndPieChart

clsBaseOperator.SetOperation("+")
clsBaseOperator.AddParameter("ggplot", clsRFunctionParameter:=clsRggplotFunction, iPosition:=0)
clsBaseOperator.AddParameter("geomfunc", clsRFunctionParameter:=clsRgeomBarFunction)
clsBaseOperator.AddParameter("geomfunc", clsRFunctionParameter:=clsRgeomBarFunction, iPosition:=2)

clsRggplotFunction.SetPackageName("ggplot2")
clsRggplotFunction.SetRCommand("ggplot")
Expand Down
2 changes: 1 addition & 1 deletion instat/dlgCumulativeDistribution.vb
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ Public Class dlgCumulativeDistribution

clsBaseOperator.SetOperation("+")
clsBaseOperator.AddParameter("ggplot", clsRFunctionParameter:=clsRggplotFunction, iPosition:=0)
clsBaseOperator.AddParameter("stat_ecdf", clsRFunctionParameter:=clsRgeomCumDistFunction, iPosition:=1)
clsBaseOperator.AddParameter("stat_ecdf", clsRFunctionParameter:=clsRgeomCumDistFunction, iPosition:=2)

clsRggplotFunction.SetPackageName("ggplot2")
clsRggplotFunction.SetRCommand("ggplot")
Expand Down
178 changes: 34 additions & 144 deletions instat/dlgFitModel.Designer.vb

Large diffs are not rendered by default.

366 changes: 366 additions & 0 deletions instat/dlgFitModel.fr-FR.resx

Large diffs are not rendered by default.

Loading

0 comments on commit 56bfc85

Please sign in to comment.