refactor and update i18n (project space), to be continue

This commit is contained in:
shiqstone 2021-04-18 14:25:52 +08:00
parent c4e6ada23a
commit 7294ba5489
4 changed files with 30 additions and 8 deletions

View File

@ -352,6 +352,17 @@ ft_last_editor = Last editor
ft_create_time = Create time
ft_update_time = Update time
[project]
prj_space_list = Project Space List
prj_space_list_of = List of Project Space %s
search_title = Show Items of Project Space "%s"
author = Author
no_project = No Project
prj_amount = Project Count
creator = Creator
create_time = Create time
no_project_space = No Project Space
[page]
first = first
last = last

View File

@ -352,6 +352,17 @@ ft_last_editor = 最后编辑:
ft_create_time = 创建时间:
ft_update_time = 更新时间:
[project]
prj_space_list = 项目空间列表
prj_space_list_of = 项目空间%s的项目列表
search_title = 显示项目空间为"%s"的项目
authro = 作者
no_project = 暂无项目
prj_amount = 项目数量
creator = 创建人
create_time = 创建时间
no_project_space = 没有项目空间
[page]
first = 首页
last = 末页

View File

@ -5,7 +5,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>项目空间列表 - Powered by MinDoc</title>
<title>{{i18n .Lang "project.prj_space_list"}} - Powered by MinDoc</title>
<meta name="keywords" content="MinDoc,文档在线管理系统,WIKI,wiki,wiki在线,文档在线管理,接口文档在线管理,接口文档管理">
<meta name="description" content="MinDoc文档在线管理系统 {{.site_description}}">
<meta name="author" content="Minho" />
@ -22,7 +22,7 @@
{{template "widgets/header.tpl" .}}
<div class="container manual-body">
<div class="search-head">
<strong class="search-title">项目空间列表</strong>
<strong class="search-title">{{i18n .Lang "project.prj_space_list"}}</strong>
</div>
<div class="row">
<div class="hide tag-container-outer" style="border: 0;margin-top: 0;padding: 5px 15px;min-height: 200px;">
@ -30,12 +30,12 @@
{{range $index,$item := .Lists}}
<a href="{{urlfor "ItemsetsController.List" ":key" $item.ItemKey}}" class="ui-card" title="{{$item.ItemName}}">
<div class="header">{{$item.ItemName}}</div>
<div class="description">项目数量:{{$item.BookNumber}} &nbsp; 创建人:{{$item.CreateName}}<br/> 创建时间{{$item.CreateTimeString}}</div>
<div class="description">{{i18n $.Lang "project.prj_amount"}}{{$item.BookNumber}} &nbsp; {{i18n $.Lang "project.creator"}}{{$item.CreateName}}<br/> {{i18n $.Lang "project.create_time"}}{{$item.CreateTimeString}}</div>
</a>
{{else}}
<div class="search-empty">
<img src="{{cdnimg "/static/images/search_empty.png"}}" class="empty-image">
<span class="empty-text">没有项目空间</span>
<span class="empty-text">{{i18n .Lang "project.no_projct_space"}}</span>
</div>
{{end}}
</div>

View File

@ -5,7 +5,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>项目空间{{.Model.ItemName}}的项目列表 - Powered by MinDoc</title>
<title>{{i18n .Lang "project.prj_space_list_of" .Model.ItemName}} - Powered by MinDoc</title>
<meta name="keywords" content="MinDoc,文档在线管理系统,WIKI,wiki,wiki在线,文档在线管理,接口文档在线管理,接口文档管理,{{.Model.ItemName}}">
<meta name="description" content="MinDoc文档在线管理系统 {{.site_description}}">
<!-- Bootstrap -->
@ -19,7 +19,7 @@
{{template "widgets/header.tpl" .}}
<div class="container manual-body">
<div class="search-head">
<strong class="search-title">显示项目空间为"{{.Model.ItemName}}"的项目</strong>
<strong class="search-title">{{i18n .Lang "project.search_title" .Model.ItemName}}</strong>
</div>
<div class="row">
<div class="manual-list">
@ -36,7 +36,7 @@
</dd>
<dd>
<span class="author">
<b class="text">作者</b>
<b class="text">{{i18n .Lang "project.author"}}</b>
<b class="text">-</b>
<b class="text">{{if eq $item.RealName "" }}{{$item.CreateName}}{{else}}{{$item.RealName}}{{end}}</b>
</span>
@ -46,7 +46,7 @@
{{else}}
<div class="search-empty">
<img src="{{cdnimg "/static/images/search_empty.png"}}" class="empty-image">
<span class="empty-text">暂无项目</span>
<span class="empty-text">{{i18n .Lang "project.no_project"}}</span>
</div>
{{end}}