Merge pull request #1259 from hishamco/more-localization
Localize Page Template Module Titles
This commit is contained in:
47
Oqtane.Client/Localization/SharedResources.cs
Normal file
47
Oqtane.Client/Localization/SharedResources.cs
Normal file
@ -0,0 +1,47 @@
|
||||
namespace Oqtane
|
||||
{
|
||||
public class SharedResources
|
||||
{
|
||||
public static readonly string UserLogin = "User Login";
|
||||
|
||||
public static readonly string UserRegistration = "User Registration";
|
||||
|
||||
public static readonly string PasswordReset = "Password Reset";
|
||||
|
||||
public static readonly string UserProfile = "User Profile";
|
||||
|
||||
public static readonly string AdminDashboard = "Admin Dashboard";
|
||||
|
||||
public static readonly string SiteSettings = "Site Settings";
|
||||
|
||||
public static readonly string PageManagement = "Page Management";
|
||||
|
||||
public static readonly string UserManagement = "User Management";
|
||||
|
||||
public static readonly string ProfileManagement = "Profile Management";
|
||||
|
||||
public static readonly string RoleManagement = "Role Management";
|
||||
|
||||
public static readonly string FileManagement = "File Management";
|
||||
|
||||
public static readonly string RecycleBin = "Recycle Bin";
|
||||
|
||||
public static readonly string EventLog = "Event Log";
|
||||
|
||||
public static readonly string SiteManagement = "Site Management";
|
||||
|
||||
public static readonly string ModuleManagement = "Module Management";
|
||||
|
||||
public static readonly string ThemeManagement = "Theme Management";
|
||||
|
||||
public static readonly string LanguageManagement = "Language Management";
|
||||
|
||||
public static readonly string ScheduledJobs = "Scheduled Jobs";
|
||||
|
||||
public static readonly string SqlManagement = "Sql Management";
|
||||
|
||||
public static readonly string SystemInfo = "System Info";
|
||||
|
||||
public static readonly string SystemUpdate = "System Update";
|
||||
}
|
||||
}
|
@ -2,6 +2,7 @@
|
||||
@inherits ModuleBase
|
||||
@inject IPageService PageService
|
||||
@inject IUserService UserService
|
||||
@inject IStringLocalizer<SharedResources> Localizer
|
||||
|
||||
<div class="row">
|
||||
@foreach (var p in _pages)
|
||||
@ -11,7 +12,7 @@
|
||||
string url = NavigateUrl(p.Path);
|
||||
<div class="col-md-2 mx-auto text-center">
|
||||
<NavLink class="nav-link" href="@url" Match="NavLinkMatch.All">
|
||||
<h2><span class="@p.Icon" aria-hidden="true"></span></h2>@p.Name
|
||||
<h2><span class="@p.Icon" aria-hidden="true"></span></h2>@Localizer[p.Name]
|
||||
</NavLink>
|
||||
</div>
|
||||
}
|
||||
@ -20,7 +21,7 @@
|
||||
|
||||
@code {
|
||||
private List<Page> _pages;
|
||||
|
||||
|
||||
public override SecurityAccessLevel SecurityAccessLevel => SecurityAccessLevel.Admin;
|
||||
|
||||
protected override void OnInitialized()
|
||||
|
Reference in New Issue
Block a user