Pager Search Localization

Localization is now referencing the Shared Resources
This commit is contained in:
Leigh Pointer 2023-10-10 14:33:16 +02:00
parent 7cf4f8fdaa
commit 119a28def1
2 changed files with 3 additions and 8 deletions

View File

@ -1,6 +1,7 @@
@namespace Oqtane.Modules.Controls
@inherits ModuleControlBase
@inject IStringLocalizerFactory LocalizerFactory
@inject IStringLocalizer<SharedResources> SharedLocalizer
@typeparam TableItem
@if (ItemList != null)
@ -9,8 +10,8 @@
{
<div class="input-group my-3">
<input id="search" class="form-control" placeholder=@string.Format(Localizer["SearchColumns"], SearchProperties) @bind="@_search" />
<button type="button" class="btn btn-primary" @onclick="Search">@Localizer["Search"]</button>
<button type="button" class="btn btn-secondary" @onclick="Reset">@Localizer["Reset"]</button>
<button type="button" class="btn btn-primary" @onclick="Search">@SharedLocalizer["Search"]</button>
<button type="button" class="btn btn-secondary" @onclick="Reset">@SharedLocalizer["Reset"]</button>
</div>
}

View File

@ -120,12 +120,6 @@
<data name="PageOfPages" xml:space="preserve">
<value>Page {0} of {1}</value>
</data>
<data name="Reset" xml:space="preserve">
<value>Reset</value>
</data>
<data name="Search" xml:space="preserve">
<value>Search</value>
</data>
<data name="SearchColumns" xml:space="preserve">
<value>Search Columns; {0}</value>
</data>