Skip to content

Commit

Permalink
Merge pull request #6513 from lloyddewit/issue3721TranslateTooltipsDi…
Browse files Browse the repository at this point in the history
…alogs

Added translations for (sub)dialog tool tips
  • Loading branch information
shadrackkibet authored Jun 7, 2021
2 parents e270fcd + ea3579e commit f20451a
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 10 deletions.
13 changes: 6 additions & 7 deletions instat/Translations.vb
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,14 @@ Public Class Translations
End Sub

'''--------------------------------------------------------------------------------------------
''' <summary> TODO Gets a translation. </summary>
''' <summary>
''' Returns <paramref name="strText"/> translated into the current language (e.g. French).
''' </summary>
'''
''' <param name="strText"> The text. </param>
''' <param name="strText"> The text to translate. </param>
'''
''' <returns> The translation. </returns>
''' <returns> <paramref name="strText"/> translated into the current language (e.g. French).
''' </returns>
'''--------------------------------------------------------------------------------------------
Public Shared Function GetTranslation(strText As String) As String
If String.IsNullOrEmpty(strText) Then
Expand Down Expand Up @@ -164,10 +167,6 @@ Public Class Translations
' Therefore we can use the class name as the object name in 'CallByName'.
Dim strControlsAsCsv As String = ""
For Each typFormClass As Type In lstFormClasses
'TODO
If Not typFormClass.Name = "sdgPlots" Then
Continue For
End If
Dim frmTemp As Form = CallByName(My.Forms, typFormClass.Name, CallType.Get)
Dim strTemp = TranslateWinForm.clsTranslateWinForm.GetControlsAsCsv(frmTemp)

Expand Down
4 changes: 2 additions & 2 deletions instat/instat.vbproj
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,8 @@
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="TranslateWinForm, Version=0.1.1.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\TranslateWinForm.1.1.1\lib\net461\TranslateWinForm.dll</HintPath>
<Reference Include="TranslateWinForm, Version=0.1.1.1, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\TranslateWinForm.1.1.2\lib\net461\TranslateWinForm.dll</HintPath>
</Reference>
<Reference Include="UIAutomationProvider" />
<Reference Include="unvell.ReoGrid, Version=2.1.0.0, Culture=neutral, processorArchitecture=MSIL">
Expand Down
2 changes: 1 addition & 1 deletion instat/packages.config
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
<package id="System.Data.SQLite.Core" version="1.0.113.7" targetFramework="net461" />
<package id="System.Security.AccessControl" version="4.5.0" targetFramework="net461" />
<package id="System.Security.Principal.Windows" version="4.5.0" targetFramework="net461" />
<package id="TranslateWinForm" version="1.1.1" targetFramework="net461" />
<package id="TranslateWinForm" version="1.1.2" targetFramework="net461" />
<package id="unvell.ReoGrid.dll" version="2.1.0.0" targetFramework="net451" />
</packages>
Binary file modified instat/translations/rInstatTranslations.db
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f20451a

Please sign in to comment.