diff --git a/Controls.LookupGrid/LookupControl3.vb b/Controls.LookupGrid/LookupControl3.vb index b53b5278..a65b28aa 100644 --- a/Controls.LookupGrid/LookupControl3.vb +++ b/Controls.LookupGrid/LookupControl3.vb @@ -49,10 +49,8 @@ Public Class RepositoryItemLookupControl3 Private Const TAG_DROPDOWN = "openDropdown" Private Const TAG_BUTTON_LOOKUP_FORM = "openLookupForm" - Private Const TEXT_NO_RECORDS = "Keine Datensätze ausgewählt" - Private Const TEXT_ONE_RECORD = "Ein Datensatz ausgewählt" - Private Const TEXT_N_RECORDS = "{0} Datensätze ausgewählt" + Private _R As Resources.ResourceManager = My.Resources.Strings.ResourceManager Private _SelectedValues As New List(Of String) Private _MultiSelect As Boolean = False Private _ReadOnly As Boolean = False @@ -159,11 +157,11 @@ Public Class RepositoryItemLookupControl3 If MultiSelect = True Then Select Case Values.Count Case 0 - NullText = TEXT_NO_RECORDS + NullText = _R.GetString("LookupControl_NoRecords") Case 1 - NullText = TEXT_ONE_RECORD + NullText = _R.GetString("LookupControl_OneRecord") Case Else - NullText = String.Format(TEXT_N_RECORDS, Values.Count) + NullText = String.Format(_R.GetString("LookupControl_NRecords"), Values.Count) End Select Else NullText = Values.FirstOrDefault() diff --git a/Controls.LookupGrid/Resources/Strings.Designer.vb b/Controls.LookupGrid/Resources/Strings.Designer.vb index edba7805..136f8d4b 100644 --- a/Controls.LookupGrid/Resources/Strings.Designer.vb +++ b/Controls.LookupGrid/Resources/Strings.Designer.vb @@ -64,21 +64,48 @@ Namespace My.Resources End Set End Property + ''' + ''' Sucht eine lokalisierte Zeichenfolge, die Keine Datensätze ausgewählt ähnelt. + ''' + Friend Shared ReadOnly Property LookupControl_NoRecords() As String + Get + Return ResourceManager.GetString("LookupControl_NoRecords", resourceCulture) + End Get + End Property + + ''' + ''' Sucht eine lokalisierte Zeichenfolge, die {0} Datensätze ausgewählt ähnelt. + ''' + Friend Shared ReadOnly Property LookupControl_NRecords() As String + Get + Return ResourceManager.GetString("LookupControl_NRecords", resourceCulture) + End Get + End Property + + ''' + ''' Sucht eine lokalisierte Zeichenfolge, die Ein Datensatz ausgewählt ähnelt. + ''' + Friend Shared ReadOnly Property LookupControl_OneRecord() As String + Get + Return ResourceManager.GetString("LookupControl_OneRecord", resourceCulture) + End Get + End Property + ''' ''' Sucht eine lokalisierte Zeichenfolge, die Bitte wählen Sie einen Wert aus: ähnelt. ''' - Friend Shared ReadOnly Property FormText() As String + Friend Shared ReadOnly Property PopupForm_Text() As String Get - Return ResourceManager.GetString("FormText", resourceCulture) + Return ResourceManager.GetString("PopupForm_Text", resourceCulture) End Get End Property ''' ''' Sucht eine lokalisierte Zeichenfolge, die Bitte wählen Sie einen oder mehrere Werte aus: ähnelt. ''' - Friend Shared ReadOnly Property FormTextMultiLine() As String + Friend Shared ReadOnly Property PopupForm_TextMultiLine() As String Get - Return ResourceManager.GetString("FormTextMultiLine", resourceCulture) + Return ResourceManager.GetString("PopupForm_TextMultiLine", resourceCulture) End Get End Property End Class diff --git a/Controls.LookupGrid/Resources/Strings.en.resx b/Controls.LookupGrid/Resources/Strings.en.resx index a2357574..f9bd92ec 100644 --- a/Controls.LookupGrid/Resources/Strings.en.resx +++ b/Controls.LookupGrid/Resources/Strings.en.resx @@ -117,10 +117,19 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - + + No records selected + + + {0} records selected + + + One record selected + + Please choose a value: - + Please choose one or more values: \ No newline at end of file diff --git a/Controls.LookupGrid/Resources/Strings.resx b/Controls.LookupGrid/Resources/Strings.resx index 67c89192..dd5e4f94 100644 --- a/Controls.LookupGrid/Resources/Strings.resx +++ b/Controls.LookupGrid/Resources/Strings.resx @@ -117,10 +117,19 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - + + Keine Datensätze ausgewählt + + + {0} Datensätze ausgewählt + + + Ein Datensatz ausgewählt + + Bitte wählen Sie einen Wert aus: - + Bitte wählen Sie einen oder mehrere Werte aus: \ No newline at end of file diff --git a/Controls.LookupGrid/frmLookupGrid.vb b/Controls.LookupGrid/frmLookupGrid.vb index 9a480d5e..a34ed92f 100644 --- a/Controls.LookupGrid/frmLookupGrid.vb +++ b/Controls.LookupGrid/frmLookupGrid.vb @@ -54,13 +54,11 @@ Public Class frmLookupGrid Dim oCheckboxColumn = _View.Columns.Item(0) oCheckboxColumn.Caption = " " oCheckboxColumn.MaxWidth = 10 - My.Resources.ResourceManager.GetString("FormText") - - Text = _R.GetString("FormText") + Text = _R.GetString("PopupForm_Text") _DataColumn = 1 Else - Text = _R.GetString("FormText") + Text = _R.GetString("PopupForm_TextMultiLine") _DataColumn = 0 End If