提交 f17f19fa 编写于 作者: F freesky-edward

continue multilingual support

上级 5b2db2e1
......@@ -255,7 +255,7 @@ paginate = 10
copyright = "Copyright (c) 2019 - 2020, openEuler; all rights reserved. <br /> The openEuler has registered <span>trademarks</span> and uses trademarks. For a list of trademarks of the openEuler, please see our Trademark Usage page. <span>Privacy Policy</span> and <span>Terms of Use</span>"
# Format dates with Go's time formatting
date_format = "January 2, 2019"
date_format = "2019-01-02"
logo = "img/openeuler.png"
logo_small = "img/openeuler.png"
......
......@@ -13,3 +13,17 @@ other = "Welcome to openEuler"
[main_cards_description]
other = "The openEuler Project is a community-driven free software effort focused on delivering an operation system open source ecosystem."
[main_events_title]
other = "Upcoming Events"
[main_news_title]
other = "News"
[main_list_more]
other = "more"
[main_events_subtitle]
other = "EVENT"
[main_news_subtitle]
other = "NEWS"
......@@ -12,3 +12,17 @@ other = "欢迎加入openEuler社区"
[main_cards_description]
other = "openEuler社区致力于构建一个开放的操作系统社区"
[main_events_title]
other = "未来事件"
[main_news_title]
other = "新闻"
[main_list_more]
other = "更多"
[main_events_subtitle]
other = "事件"
[main_news_subtitle]
other = "新闻"
......@@ -2,9 +2,9 @@
{{ if .Site.Params.events.enable }}
<div class="events active">
<h2>
Upcoming Events
{{ i18n "main_events_title" }}
<a href="/events.html">
<p>more ></p>
<p>{{ i18n "main_list_more" }} ></p>
</a>
</h2>
......@@ -14,7 +14,7 @@
<li>
<h6>
<span>EVENTS</span> <i>|</i> <span>{{ .Date.Format .Site.Params.date_format }}</span>
<span>{{ i18n "main_events_subtitle" }}</span> <i>|</i> <span>{{ .Date.Format .Site.Params.date_format }}</span>
</h6>
<a href="{{ .URL }}">
<p>{{ .Title }}</p>
......
......@@ -3,9 +3,9 @@
<div class="news active">
<h2>
News
{{ i18n "main_news_title" }}
<a href="/news.html">
<p>more ></p>
<p> {{ i18n "main_list_more" }} ></p>
</a>
</h2>
......@@ -15,7 +15,7 @@
<li>
<h6>
<span>NEWS</span> <i>|</i> <span>{{ .Date.Format .Site.Params.date_format }}</span>
<span>{{ i18n "main_news_subtitle" }}</span> <i>|</i> <span>{{ .Date.Format .Site.Params.date_format }}</span>
</h6>
<a href="{{ .URL }}">
<p>{{ .Title }}</p>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册