Localize non components for the modules pages
This commit is contained in:
		| @ -2,6 +2,7 @@ | ||||
| @inherits ModuleBase | ||||
| @inject NavigationManager NavigationManager | ||||
| @inject IModuleService ModuleService | ||||
| @inject IStringLocalizer<Export> Localizer | ||||
|  | ||||
| <table class="table table-borderless"> | ||||
|     <tbody> | ||||
| @ -15,8 +16,8 @@ | ||||
|         </tr> | ||||
|     </tbody> | ||||
| </table> | ||||
| <button type="button" class="btn btn-success" @onclick="ExportModule">Export</button> | ||||
| <NavLink class="btn btn-secondary" href="@NavigateUrl()">Cancel</NavLink> | ||||
| <button type="button" class="btn btn-success" @onclick="ExportModule">@Localizer["Export"]</button> | ||||
| <NavLink class="btn btn-secondary" href="@NavigateUrl()">@Localizer["Cancel"]</NavLink> | ||||
|  | ||||
|  | ||||
| @code { | ||||
|  | ||||
| @ -2,6 +2,7 @@ | ||||
| @inherits ModuleBase | ||||
| @inject NavigationManager NavigationManager | ||||
| @inject IModuleService ModuleService | ||||
| @inject IStringLocalizer<Import> Localizer | ||||
|  | ||||
| <table class="table table-borderless"> | ||||
|     <tbody> | ||||
| @ -15,8 +16,8 @@ | ||||
|         </tr> | ||||
|     </tbody> | ||||
| </table> | ||||
| <button type="button" class="btn btn-success" @onclick="ImportModule">Import</button> | ||||
| <NavLink class="btn btn-secondary" href="@NavigateUrl()">Cancel</NavLink> | ||||
| <button type="button" class="btn btn-success" @onclick="ImportModule">@Localizer["Import"]</button> | ||||
| <NavLink class="btn btn-secondary" href="@NavigateUrl()">@Localizer["Cancel"]</NavLink> | ||||
|  | ||||
|  | ||||
| @code { | ||||
|  | ||||
| @ -4,6 +4,7 @@ | ||||
| @inject IThemeService ThemeService | ||||
| @inject IModuleService ModuleService | ||||
| @inject IPageModuleService PageModuleService | ||||
| @inject IStringLocalizer<Settings> Localizer | ||||
|  | ||||
| <TabStrip> | ||||
|     <TabPanel Name="Settings" Heading="Module Settings" ResourceKey="ModuleSettings"> | ||||
| @ -24,7 +25,7 @@ | ||||
|                     </td> | ||||
|                     <td> | ||||
|                         <select id="container" class="form-control" @bind="@_containerType"> | ||||
|                             <option value="-"><Inherit From Page Or Site></option> | ||||
|                             <option value="-"><@Localizer["Inherit From Page Or Site"]></option> | ||||
|                             @foreach (var container in _containers) | ||||
|                             { | ||||
|                                 <option value="@container.TypeName">@container.Name</option> | ||||
| @ -38,8 +39,8 @@ | ||||
|                     </td> | ||||
|                     <td> | ||||
|                         <select id="allpages" class="form-control" @bind="@_allPages"> | ||||
|                             <option value="True">Yes</option> | ||||
|                             <option value="False">No</option> | ||||
|                             <option value="True">@Localizer["Yes"]</option> | ||||
|                             <option value="False">@Localizer["No"]</option> | ||||
|                         </select> | ||||
|                     </td> | ||||
|                 </tr> | ||||
| @ -81,8 +82,8 @@ | ||||
|         </TabPanel> | ||||
|     } | ||||
| </TabStrip> | ||||
| <button type="button" class="btn btn-success" @onclick="SaveModule">Save</button> | ||||
| <NavLink class="btn btn-secondary" href="@NavigateUrl()">Cancel</NavLink> | ||||
| <button type="button" class="btn btn-success" @onclick="SaveModule">@Localizer["Save"]</button> | ||||
| <NavLink class="btn btn-secondary" href="@NavigateUrl()">@Localizer["Cancel"]</NavLink> | ||||
|  | ||||
| @code { | ||||
|     private List<ThemeControl> _containers = new List<ThemeControl>(); | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 hishamco
					hishamco