Fix missing translations part 2

This commit is contained in:
alikoli 2023-08-10 01:52:46 +02:00
parent 1de8bb850f
commit 8fbbbce4ec
9 changed files with 48 additions and 15 deletions

View File

@ -8,7 +8,7 @@
@inject IStringLocalizer<SharedResources> SharedLocalizer @inject IStringLocalizer<SharedResources> SharedLocalizer
<TabStrip> <TabStrip>
<TabPanel Name="Download" ResourceKey="Download"> <TabPanel Name="Download" ResourceKey="Download" Heading="Download">
<div class="row justify-content-center mb-3"> <div class="row justify-content-center mb-3">
<div class="text-center"> <div class="text-center">
<div class="form-check form-check-inline"> <div class="form-check form-check-inline">

View File

@ -12,7 +12,7 @@
@if (_initialized) @if (_initialized)
{ {
<TabStrip> <TabStrip>
<TabPanel Name="Definition" ResourceKey="Definition"> <TabPanel Name="Definition" ResourceKey="Definition" Heading="Definition">
<form @ref="form" class="@(validated ? "was-validated" : "needs-validation")" novalidate> <form @ref="form" class="@(validated ? "was-validated" : "needs-validation")" novalidate>
<div class="container"> <div class="container">
<div class="row mb-1 align-items-center"> <div class="row mb-1 align-items-center">
@ -103,7 +103,7 @@
<br /> <br />
<AuditInfo CreatedBy="@_createdby" CreatedOn="@_createdon" ModifiedBy="@_modifiedby" ModifiedOn="@_modifiedon"></AuditInfo> <AuditInfo CreatedBy="@_createdby" CreatedOn="@_createdon" ModifiedBy="@_modifiedby" ModifiedOn="@_modifiedon"></AuditInfo>
</TabPanel> </TabPanel>
<TabPanel Name="Permissions" ResourceKey="Permissions"> <TabPanel Name="Permissions" ResourceKey="Permissions" Heading="Permissions">
<div class="container"> <div class="container">
<div class="row mb-1 align-items-center"> <div class="row mb-1 align-items-center">
<PermissionGrid EntityName="@EntityNames.ModuleDefinition" PermissionNames="@PermissionNames.Utilize" PermissionList="@_permissions" @ref="_permissionGrid" /> <PermissionGrid EntityName="@EntityNames.ModuleDefinition" PermissionNames="@PermissionNames.Utilize" PermissionList="@_permissions" @ref="_permissionGrid" />
@ -113,7 +113,7 @@
<button type="button" class="btn btn-success" @onclick="SaveModuleDefinition">@SharedLocalizer["Save"]</button> <button type="button" class="btn btn-success" @onclick="SaveModuleDefinition">@SharedLocalizer["Save"]</button>
<NavLink class="btn btn-secondary" href="@NavigateUrl()">@SharedLocalizer["Cancel"]</NavLink> <NavLink class="btn btn-secondary" href="@NavigateUrl()">@SharedLocalizer["Cancel"]</NavLink>
</TabPanel> </TabPanel>
<TabPanel Name="Translations" ResourceKey="Translations"> <TabPanel Name="Translations" ResourceKey="Translations" Heading="Permissions">
@if (_languages != null && _languages.Count > 0) @if (_languages != null && _languages.Count > 0)
{ {
<Pager Items="@_languages"> <Pager Items="@_languages">

View File

@ -257,7 +257,7 @@
<td> <td>
@if (_aliasid == -1) @if (_aliasid == -1)
{ {
<ActionDialog Action="Delete" OnClick="@(async () => await DeleteAlias(context))" ResourceKey="DeleteModule" Class="btn btn-danger" Header="Delete Alias" Message="@string.Format(Localizer["Confirm.Alias.Delete", context.Name])" /> <ActionDialog Action="Delete" OnClick="@(async () => await DeleteAlias(context))" ResourceKey="DeleteAlias" Class="btn btn-danger" Header="Delete Alias" Message="@string.Format(Localizer["Confirm.Alias.Delete", context.Name])" />
} }
</td> </td>
<td>@context.Name</td> <td>@context.Name</td>

View File

@ -24,7 +24,7 @@
<div class="row justify-content-center mb-3"> <div class="row justify-content-center mb-3">
<div class="col"> <div class="col">
<div class="input-group"> <div class="input-group">
<span class="input-group-text">Product</span> <span class="input-group-text">@Localizer["Product"]</span>
<input id="search" class="form-control" placeholder="@SharedLocalizer["Search.Hint"]" @bind="@_search" /> <input id="search" class="form-control" placeholder="@SharedLocalizer["Search.Hint"]" @bind="@_search" />
<button type="button" class="btn btn-primary" @onclick="Search">@SharedLocalizer["Search"]</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> <button type="button" class="btn btn-secondary" @onclick="Reset">@SharedLocalizer["Reset"]</button>

View File

@ -1,12 +1,4 @@
{ {
"iisSettings": {
"windowsAuthentication": false,
"anonymousAuthentication": true,
"iisExpress": {
"applicationUrl": "http://localhost:44358/",
"sslPort": 0
}
},
"profiles": { "profiles": {
"IIS Express": { "IIS Express": {
"commandName": "IISExpress", "commandName": "IISExpress",
@ -23,5 +15,13 @@
}, },
"applicationUrl": "http://localhost:44358/" "applicationUrl": "http://localhost:44358/"
} }
},
"iisSettings": {
"windowsAuthentication": false,
"anonymousAuthentication": true,
"iisExpress": {
"applicationUrl": "http://localhost:65367/",
"sslPort": 44327
}
} }
} }

View File

@ -141,7 +141,7 @@
<data name="Upload.Heading" xml:space="preserve"> <data name="Upload.Heading" xml:space="preserve">
<value>Upload</value> <value>Upload</value>
</data> </data>
<data name="Product.Text" xml:space="preserve"> <data name="Product" xml:space="preserve">
<value>Product</value> <value>Product</value>
</data> </data>
</root> </root>

View File

@ -312,6 +312,9 @@
<data name="Database.HelpText" xml:space="preserve"> <data name="Database.HelpText" xml:space="preserve">
<value>The type of database</value> <value>The type of database</value>
</data> </data>
<data name="DeleteSite.Header" xml:space="preserve">
<value>Delete Site</value>
</data>
<data name="DeleteSite.Text" xml:space="preserve"> <data name="DeleteSite.Text" xml:space="preserve">
<value>Delete Site</value> <value>Delete Site</value>
</data> </data>
@ -381,4 +384,10 @@
<data name="Version.Text" xml:space="preserve"> <data name="Version.Text" xml:space="preserve">
<value>Version:</value> <value>Version:</value>
</data> </data>
<data name="DeleteAlias.Text" xml:space="preserve">
<value>Delete</value>
</data>
<data name="DeleteAlias.Header" xml:space="preserve">
<value>Delete Alias</value>
</data>
</root> </root>

View File

@ -141,4 +141,7 @@
<data name="Upload.Heading" xml:space="preserve"> <data name="Upload.Heading" xml:space="preserve">
<value>Upload</value> <value>Upload</value>
</data> </data>
<data name="Product" xml:space="preserve">
<value>Product</value>
</data>
</root> </root>

View File

@ -129,4 +129,25 @@
<data name="Message.Username.DontExist" xml:space="preserve"> <data name="Message.Username.DontExist" xml:space="preserve">
<value>User Does Not Exist With Name Specified</value> <value>User Does Not Exist With Name Specified</value>
</data> </data>
<data name="ModuleDefinition" xml:space="preserve">
<value>Module</value>
</data>
<data name="Page" xml:space="preserve">
<value>Page</value>
</data>
<data name="Folder" xml:space="preserve">
<value>Folder</value>
</data>
<data name="View" xml:space="preserve">
<value>View</value>
</data>
<data name="Edit" xml:space="preserve">
<value>Edit</value>
</data>
<data name="Utilize" xml:space="preserve">
<value>Utilize</value>
</data>
<data name="Browse" xml:space="preserve">
<value>Browse</value>
</data>
</root> </root>