🌐 en support

This commit is contained in:
shenyu 2020-04-04 14:38:01 +08:00
parent 85fbcf5702
commit cdf2bceb40
6 changed files with 47 additions and 29 deletions

View File

@ -1,19 +1 @@
categories: Categories
search: Search
tags: Tags
tagcloud: Tag Cloud
tweets: Tweets
prev: Prev
next: Next
comment: Comments
archive_a: Archives
archive_b: "Archives: %s"
page: Page %d
recent_posts: Recent Posts
newer: Newer
older: Older
share: Share
powered_by: Powered by
rss_feed: RSS Feed
category: Category
tag: Tag
en.yml

28
languages/en.yml Normal file
View File

@ -0,0 +1,28 @@
categories: Categories
search: Search
tags: Tags
tagcloud: Tag Cloud
tweets: Tweets
prev: Prev
next: Next
comment: Comments
archive_a: Archives
archive_b: "Archives: %s"
page: Page %d
recent_posts: Recent Posts
newer: Newer
older: Older
share: Share
powered_by: Powered by
rss_feed: RSS Feed
category: Category
tag: Tag
post:
word_count: Word count
read_time: Reading time
minutes: min
reward: Reward
sticky: Sticky
copyright_title: Copyright
copyright_content: Copyright is owned by the author. For commercial reprints, please contact the author for authorization. For non-commercial reprints, please indicate the source.

View File

@ -16,4 +16,13 @@ share: 分享
powered_by: Powered by
rss_feed: RSS Feed
category: Category
tag: Tag
tag: Tag
post:
word_count: 字数统计
read_time: 阅读时长
minutes: 分钟
reward: 打赏
sticky: 置顶
copyright_title: 版权声明
copyright_content: 本博客所有文章除特别声明外,著作权归作者所有。转载请注明出处!

View File

@ -38,7 +38,7 @@
<!-- reward -->
<% if ((theme.reward_type === 2 || (theme.reward_type === 1 && post.reward)) && !index && !post.no_reward){ %>
<div id="reward-btn">
打赏
<%= __('post.reward') %>
</div>
<% } %>
</div>
@ -50,9 +50,8 @@
<ul class="post-copyright">
<li>
<i class="ri-copyright-line"></i>
<strong>版权声明: </strong s>
本博客所有文章除特别声明外,均采用 <a href="https://www.apache.org/licenses/LICENSE-2.0.html" rel="external nofollow"
target="_blank">Apache License 2.0</a> 许可协议。转载请注明出处!
<strong><%= __('post.copyright_title') %> </strong>
<%= __('post.copyright_content') %>
</li>
</ul>
</div>

View File

@ -1,3 +1,3 @@
<% if (is_home() && post.top) { %>
<i class="article-topping">置顶</i>
<i class="article-topping"><%= __('post.sticky') %></i>
<% } %>

View File

@ -3,8 +3,8 @@
<span class="post-time">
<span class="post-meta-item-icon">
<i class="ri-quill-pen-line"></i>
<span class="post-meta-item-text"> 字数统计:</span>
<span class="post-count"><%= wordcount(post.content) %></span>
<span class="post-meta-item-text"> <%= __('post.word_count') %>:</span>
<span class="post-count"><%= wordcount(post.content) %></span>
</span>
</span>
@ -12,8 +12,8 @@
&nbsp; | &nbsp;
<span class="post-meta-item-icon">
<i class="ri-book-open-line"></i>
<span class="post-meta-item-text"> 阅读时长≈</span>
<span class="post-count"><%= min2read(post.content) %>分钟</span>
<span class="post-meta-item-text"> <%= __('post.read_time') %>≈</span>
<span class="post-count"><%= min2read(post.content) %> <%= __('post.minutes') %></span>
</span>
</span>
</div>