Browse Source

feat: add locals

master
colorfulberry 5 years ago
parent
commit
013dc368c4
3 changed files with 40 additions and 21 deletions
  1. +11
    -12
      custom/templates/base/footer_content.tmpl
  2. +18
    -9
      options/locale/locale_en-US.ini
  3. +11
    -0
      options/locale/locale_zh-CN.ini

+ 11
- 12
custom/templates/base/footer_content.tmpl View File

@@ -4,20 +4,19 @@
<div class="sixteen wide mobile eight wide tablet eight wide computer column"> <div class="sixteen wide mobile eight wide tablet eight wide computer column">
<div class="ui three column grid"> <div class="ui three column grid">
<div class="column ui vertical text menu"> <div class="column ui vertical text menu">
<div class="header item">社区</div>
<a href="https://www.openi.org.cn/html/Club/2019/0227/14.html" class="item">理事会</a>
<a href="https://www.openi.org.cn/html/Club/2019/0227/14.html" class="item">技术委员会</a>
<a href="https://www.openi.org.cn/html/Club/2019/0228/17.html" class="item">加入OpenI</a>
<div class="header item">{{.i18n.Tr "custom.head.community"}}</div>
<a href="https://www.openi.org.cn/html/Club/2019/0227/14.html" class="item">{{.i18n.Tr "custom.foot.council"}}</a>
<a href="https://www.openi.org.cn/html/Club/2019/0227/14.html" class="item">{{.i18n.Tr "custom.foot.technical_committee"}}</a>
<a href="https://www.openi.org.cn/html/Club/2019/0228/17.html" class="item">{{.i18n.Tr "custom.foot.join"}}</a>
</div> </div>
<div class="column ui vertical text menu"> <div class="column ui vertical text menu">
<div class="header item">动态</div>
<a href="https://www.openi.org.cn/html/news/dongtai/" class="item">社区动态</a>
<a href="https://www.openi.org.cn/html/news/huodong/" class="item">成员动态</a>
<a href="https://www.openi.org.cn/html/news/zixun/" class="item">行业资讯</a>
<div class="header item">{{.i18n.Tr "custom.foot.news"}}</div>
<a href="https://www.openi.org.cn/html/news/dongtai/" class="item">{{.i18n.Tr "custom.foot.community_news"}}</a>
<a href="https://www.openi.org.cn/html/news/huodong/" class="item">{{.i18n.Tr "custom.foot.member_news"}}</a>
<a href="https://www.openi.org.cn/html/news/zixun/" class="item">{{.i18n.Tr "custom.foot.industry_advisory"}}</a>
</div> </div>
<div class="column ui vertical text menu"> <div class="column ui vertical text menu">
<div class="header item">帮助</div>
<a href="https://docs.gitea.io/zh-cn/" class="item">帮助文档</a>
<div class="header item">{{.i18n.Tr "custom.foot.help"}}</div>
<div class="ui language bottom floating slide up dropdown link item"> <div class="ui language bottom floating slide up dropdown link item">
<i class="world icon"></i> <i class="world icon"></i>
<div class="text">{{.LangName}}</div> <div class="text">{{.LangName}}</div>
@@ -32,9 +31,9 @@
</div> </div>
</div> </div>
<div class="sixteen wide mobile eight wide tablet eight wide computer column" style=" margin:2.0rem 0"> <div class="sixteen wide mobile eight wide tablet eight wide computer column" style=" margin:2.0rem 0">
版权所有:新一代人工智能开源开放平台(OpenI) <a href="http://www.miitbeian.gov.cn/" target="_blank">京ICP备18004880号</a>
{{.i18n.Tr "custom.foot.copyright"}} <a href="http://www.miitbeian.gov.cn/" target="_blank">京ICP备18004880号</a>
<br> <br>
{{.i18n.Tr "powered_by" "鹏城实验室云脑、Trustie、华为云 DevCloud、gitea"}} 构建
{{.i18n.Tr "powered_by" "鹏城实验室云脑、Trustie、华为云 DevCloud、gitea"}}
<br> <br>
</div> </div>
</div> </div>


+ 18
- 9
options/locale/locale_en-US.ini View File

@@ -2441,12 +2441,21 @@ error.no_unit_allowed_repo = You are not allowed to access any section of this r
error.unit_not_allowed = You are not allowed to access this repository section. error.unit_not_allowed = You are not allowed to access this repository section.


[custom] [custom]
head.community=Community
head.welcome=Welcome to OpenI
head.about_org=About orgnation
head.license=OpenI open source license
head.community_charter=OpenI Community Charter
head.community_infos=Community News
head.project=Project
head.study=Study
head.activity=Activity
head.community= Community
head.welcome= Welcome to OpenI
head.about_org= About orgnation
head.license= OpenI open source license
head.community_charter= OpenI Community Charter
head.community_infos= Community News
head.project= Project
head.study= Study
head.activity= Activity
foot.council= Council
foot.technical_committee= Technical Committee
foot.join= Join OpenI
foot.news= News
foot.community_news= Community News
foot.member_news= Member news
foot.industry_advisory= Industry Advisory
foot.help= help
foot.copyright= Copyright: New Generation Artificial Intelligence Open Source Open Platform (OpenI)

+ 11
- 0
options/locale/locale_zh-CN.ini View File

@@ -2450,3 +2450,14 @@ head.community_infos=社区动态
head.project=项目 head.project=项目
head.study=学些 head.study=学些
head.activity=活动 head.activity=活动
foot.council=理事会
foot.technical_committee=技术委员会
foot.join=加入启智
foot.news=动态
foot.community_news=社区动态
foot.member_news=成员动态
foot.industry_advisory=行业咨询
foot.help=帮助
foot.copyright= 版权所有:新一代人工智能开源开放平台(OpenI)



Loading…
Cancel
Save