汉化部分
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
}
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<html lang="zh">
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
@@ -103,7 +103,7 @@
|
||||
<a class="dropdown-item text-dark" href="@GlobalConfiguration.BasePath/@sessionState.PageNavigation/Page/Create">Create "@sessionState.PageNavigation"</a>
|
||||
}
|
||||
|
||||
<a class="dropdown-item text-dark" href="@GlobalConfiguration.BasePath/Page/Create">Create new page</a>
|
||||
<a class="dropdown-item text-dark" href="@GlobalConfiguration.BasePath/Page/Create">新建页面</a>
|
||||
}
|
||||
|
||||
@if (sessionState.Page.Exists == true)
|
||||
@@ -114,31 +114,31 @@
|
||||
}
|
||||
if (sessionState.CanView == true && TightWiki.Models.GlobalConfiguration.EnablePageComments)
|
||||
{
|
||||
<a class="dropdown-item text-dark" href="@GlobalConfiguration.BasePath/@sessionState.PageNavigation/Comments">Comments</a>
|
||||
<a class="dropdown-item text-dark" href="@GlobalConfiguration.BasePath/@sessionState.PageNavigation/Comments">评论</a>
|
||||
}
|
||||
if (sessionState.CanDelete == true)
|
||||
{
|
||||
<a class="dropdown-item text-dark" href="@GlobalConfiguration.BasePath/@sessionState.PageNavigation/Delete">Delete this page</a>
|
||||
<a class="dropdown-item text-dark" href="@GlobalConfiguration.BasePath/@sessionState.PageNavigation/Delete">删除 this page</a>
|
||||
}
|
||||
if (sessionState.CanEdit == true && sessionState.Page.IsHistoricalVersion == false)
|
||||
{
|
||||
<a class="dropdown-item text-dark" href="@GlobalConfiguration.BasePath/@sessionState.PageNavigation/Edit">Edit</a>
|
||||
<a class="dropdown-item text-dark" href="@GlobalConfiguration.BasePath/@sessionState.PageNavigation/Edit">编辑</a>
|
||||
}
|
||||
if (sessionState.CanView == true)
|
||||
{
|
||||
<a class="dropdown-item text-dark" href="@GlobalConfiguration.BasePath/@sessionState.PageNavigation/Revisions">Revisions</a>
|
||||
<a class="dropdown-item text-dark" href="@GlobalConfiguration.BasePath/@sessionState.PageNavigation/Revisions">修订</a>
|
||||
}
|
||||
if (sessionState.CanCreate == true)
|
||||
{
|
||||
<a class="dropdown-item text-dark" href="@GlobalConfiguration.BasePath/@sessionState.PageNavigation/Refresh">Refresh</a>
|
||||
<a class="dropdown-item text-dark" href="@GlobalConfiguration.BasePath/@sessionState.PageNavigation/Refresh">刷新</a>
|
||||
}
|
||||
if (sessionState.CanModerate == true && sessionState.Page.IsHistoricalVersion == true)
|
||||
{
|
||||
<a class="dropdown-item text-dark" href="@GlobalConfiguration.BasePath/@sessionState.PageNavigation/revert/@sessionState.Page.Revision">Revert to revision @sessionState.Page.Revision</a>
|
||||
<a class="dropdown-item text-dark" href="@GlobalConfiguration.BasePath/@sessionState.PageNavigation/revert/@sessionState.Page.Revision">恢复至 @sessionState.Page.Revision</a>
|
||||
}
|
||||
if (sessionState.CanView == true && TightWiki.Models.GlobalConfiguration.EnablePageComments)
|
||||
{
|
||||
<a class="dropdown-item text-dark" href="@GlobalConfiguration.BasePath/@sessionState.PageNavigation">View</a>
|
||||
<a class="dropdown-item text-dark" href="@GlobalConfiguration.BasePath/@sessionState.PageNavigation">浏览</a>
|
||||
}
|
||||
}
|
||||
</div>
|
||||
@@ -152,32 +152,32 @@
|
||||
<div class="dropdown-menu" aria-labelledby="navbarDropdownMenuLink">
|
||||
@if (sessionState.Role == TightWiki.Library.Constants.Roles.Administrator)
|
||||
{
|
||||
<a class="dropdown-item text-dark" href="@GlobalConfiguration.BasePath/Admin/Accounts">Accounts</a>
|
||||
<a class="dropdown-item text-dark" href="@GlobalConfiguration.BasePath/Admin/Roles">Roles</a>
|
||||
<a class="dropdown-item text-dark" href="@GlobalConfiguration.BasePath/Admin/Accounts">账号</a>
|
||||
<a class="dropdown-item text-dark" href="@GlobalConfiguration.BasePath/Admin/Roles">角色</a>
|
||||
<div class="dropdown-divider"></div>
|
||||
<a class="dropdown-item text-dark" href="@GlobalConfiguration.BasePath/Admin/Config">Configuration</a>
|
||||
<a class="dropdown-item text-dark" href="@GlobalConfiguration.BasePath/Admin/Config">配置</a>
|
||||
<a class="dropdown-item text-dark" href="@GlobalConfiguration.BasePath/Admin/Emojis">Emojis</a>
|
||||
<a class="dropdown-item text-dark" href="@GlobalConfiguration.BasePath/Admin/MenuItems">Site Menu</a>
|
||||
<a class="dropdown-item text-dark" href="@GlobalConfiguration.BasePath/Admin/MenuItems">站点菜单</a>
|
||||
<div class="dropdown-divider"></div>
|
||||
<a class="dropdown-item text-dark" href="@GlobalConfiguration.BasePath/Admin/CompilationStatistics">Compilations</a>
|
||||
<a class="dropdown-item text-dark" href="@GlobalConfiguration.BasePath/Admin/Database">Database</a>
|
||||
<a class="dropdown-item text-dark" href="@GlobalConfiguration.BasePath/Admin/Exceptions">Exceptions</a>
|
||||
<a class="dropdown-item text-dark" href="@GlobalConfiguration.BasePath/Admin/Metrics">Metrics</a>
|
||||
<a class="dropdown-item text-dark" href="@GlobalConfiguration.BasePath/Admin/CompilationStatistics">计算</a>
|
||||
<a class="dropdown-item text-dark" href="@GlobalConfiguration.BasePath/Admin/Database">数据库</a>
|
||||
<a class="dropdown-item text-dark" href="@GlobalConfiguration.BasePath/Admin/Exceptions">异常</a>
|
||||
<a class="dropdown-item text-dark" href="@GlobalConfiguration.BasePath/Admin/Metrics">指标</a>
|
||||
<div class="dropdown-divider"></div>
|
||||
<a class="dropdown-item text-dark" href="@GlobalConfiguration.BasePath/Admin/DeletedPages">Deleted Pages</a>
|
||||
<a class="dropdown-item text-dark" href="@GlobalConfiguration.BasePath/Admin/MissingPages">Missing Pages</a>
|
||||
<a class="dropdown-item text-dark" href="@GlobalConfiguration.BasePath/Admin/Moderate">Moderate</a>
|
||||
<a class="dropdown-item text-dark" href="@GlobalConfiguration.BasePath/Admin/Namespaces">Namespaces</a>
|
||||
<a class="dropdown-item text-dark" href="@GlobalConfiguration.BasePath/Admin/OrphanedPageAttachments">Orphaned Attachments</a>
|
||||
<a class="dropdown-item text-dark" href="@GlobalConfiguration.BasePath/Admin/Pages">Pages</a>
|
||||
<a class="dropdown-item text-dark" href="@GlobalConfiguration.BasePath/Admin/DeletedPages">删除页面</a>
|
||||
<a class="dropdown-item text-dark" href="@GlobalConfiguration.BasePath/Admin/MissingPages">丢失页</a>
|
||||
<a class="dropdown-item text-dark" href="@GlobalConfiguration.BasePath/Admin/Moderate">页面说明</a>
|
||||
<a class="dropdown-item text-dark" href="@GlobalConfiguration.BasePath/Admin/Namespaces">命名空间</a>
|
||||
<a class="dropdown-item text-dark" href="@GlobalConfiguration.BasePath/Admin/OrphanedPageAttachments">独立附件</a>
|
||||
<a class="dropdown-item text-dark" href="@GlobalConfiguration.BasePath/Admin/Pages">页面</a>
|
||||
}
|
||||
else if (sessionState.CanModerate == true)
|
||||
{
|
||||
<a class="dropdown-item text-dark" href="@GlobalConfiguration.BasePath/Admin/DeletedPages">Deleted Pages</a>
|
||||
<a class="dropdown-item text-dark" href="@GlobalConfiguration.BasePath/Admin/MissingPages">Missing Pages</a>
|
||||
<a class="dropdown-item text-dark" href="@GlobalConfiguration.BasePath/Admin/Moderate">Moderate</a>
|
||||
<a class="dropdown-item text-dark" href="@GlobalConfiguration.BasePath/Admin/Namespaces">Namespaces</a>
|
||||
<a class="dropdown-item text-dark" href="@GlobalConfiguration.BasePath/Admin/Pages">Pages</a>
|
||||
<a class="dropdown-item text-dark" href="@GlobalConfiguration.BasePath/Admin/DeletedPages">删除页面</a>
|
||||
<a class="dropdown-item text-dark" href="@GlobalConfiguration.BasePath/Admin/MissingPages">丢失页</a>
|
||||
<a class="dropdown-item text-dark" href="@GlobalConfiguration.BasePath/Admin/Moderate">页面说明</a>
|
||||
<a class="dropdown-item text-dark" href="@GlobalConfiguration.BasePath/Admin/Namespaces">命名空间</a>
|
||||
<a class="dropdown-item text-dark" href="@GlobalConfiguration.BasePath/Admin/Pages">页面</a>
|
||||
}
|
||||
</div>
|
||||
</li>
|
||||
@@ -186,19 +186,19 @@
|
||||
@if (sessionState.IsAuthenticated == true)
|
||||
{
|
||||
<li class="nav-item dropdown">
|
||||
<a class="nav-link dropdown-toggle text-dark" href="#" id="navbarDropdownMenuLink" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">My</a>
|
||||
<a class="nav-link dropdown-toggle text-dark" href="#" id="navbarDropdownMenuLink" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">我的</a>
|
||||
<div class="dropdown-menu" aria-labelledby="navbarDropdownMenuLink">
|
||||
<a class="dropdown-item text-dark" href="@GlobalConfiguration.BasePath/Profile/My">Profile</a>
|
||||
<a class="dropdown-item text-dark" href="@GlobalConfiguration.BasePath/Identity/Account/Manage">Account</a>
|
||||
<a class="dropdown-item text-dark" href="@GlobalConfiguration.BasePath/Profile/My">个人信息</a>
|
||||
<a class="dropdown-item text-dark" href="@GlobalConfiguration.BasePath/Identity/Account/Manage">账号</a>
|
||||
<div class="dropdown-divider"></div>
|
||||
<a class="dropdown-item text-dark" href="@GlobalConfiguration.BasePath/Identity/Account/Logout?returnUrl=/">Logout</a>
|
||||
<a class="dropdown-item text-dark" href="@GlobalConfiguration.BasePath/Identity/Account/Logout?returnUrl=/">登出</a>
|
||||
</div>
|
||||
</li>
|
||||
}
|
||||
|
||||
@if (sessionState.IsAuthenticated == false)
|
||||
{
|
||||
<li class="nav-item"><a class="nav-link text-dark" href="@GlobalConfiguration.BasePath/Identity/Account/Login?returnUrl=@UrlEncoder.Default.Encode($"{GlobalConfiguration.BasePath}{Context.Request.Path.Value}")">Login</a></li>
|
||||
<li class="nav-item"><a class="nav-link text-dark" href="@GlobalConfiguration.BasePath/Identity/Account/Login?returnUrl=@UrlEncoder.Default.Encode($"{GlobalConfiguration.BasePath}{Context.Request.Path.Value}")">登录</a></li>
|
||||
}
|
||||
|
||||
@if (TightWiki.Models.GlobalConfiguration.IncludeSearchOnNavbar)
|
||||
@@ -206,8 +206,8 @@
|
||||
<li class="nav-item ms-auto d-none d-lg-block">
|
||||
<div class="collapse navbar-collapse justify-content-end">
|
||||
<form class="d-flex" role="search" method="GET" action="@GlobalConfiguration.BasePath/Page/Search">
|
||||
<input class="form-control me-2" type="search" placeholder="Search" name="SearchString" aria-label="Search">
|
||||
<button class="btn btn-outline-primary" type="submit">Search</button>
|
||||
<input class="form-control me-2" type="search" placeholder="搜索" name="SearchString" aria-label="Search">
|
||||
<button class="btn btn-outline-primary" type="submit">search</button>
|
||||
</form>
|
||||
</div>
|
||||
</li>
|
||||
@@ -228,9 +228,9 @@
|
||||
<div class="card-header"><strong>Default password has not been changed</strong></div>
|
||||
<div class="card-body">
|
||||
<p class="card-text">
|
||||
The admin password is set to its default value, it is <i>recommended</i> that you change it immediately!<br />
|
||||
管理密码为默认值,<i>建议</i> 您立即更换!<br />
|
||||
<br />
|
||||
You can change this password by logging in, navigating to My -> Account -> Password.<br />
|
||||
您可以登录账号后, 导航至 “我的” -> “账号” -> “密码”来更换密码<br />
|
||||
<br />
|
||||
<strong>Current admin login:</strong><br />
|
||||
<strong>Username:</strong>"admin@tightwiki.com"<br />
|
||||
|
||||
Reference in New Issue
Block a user