Skip to content

Commit

Permalink
chore: update locale.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
kitian616 committed Nov 18, 2017
1 parent eb6d42b commit af2c17c
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 22 deletions.
20 changes: 10 additions & 10 deletions _data/locale.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
PAGES:
NAV:
HOME:
en: Home
zh: 主页
Expand Down Expand Up @@ -35,17 +35,17 @@ ARTICLE_DATE_FORMAT:
zh-Hans: '%Y年 %m月%d日'
zh-Hant: '%Y年 %m月%d日'

ARTICLE_LIST_DATA_FORMAT:
ARTICLE_LIST_DATE_FORMAT:
en: '%b %d'
zh: '%m月%d日'
zh-Hans: '%m月%d日'
zh-Hant: '%m月%d日'

STATISTICS:
en: '[post_count] post articles, [page_count] pages.'
zh: 共计 [post_count] 篇文章, [page_count] 页。
zh-Hans: 共计 [post_count] 篇文章, [page_count] 页。
zh-Hant: 共計 [post_count] 篇文章, [page_count] 頁。
en: '[PAGE_COUNT] post articles, [PAGE_COUNT] pages.'
zh: 共计 [PAGE_COUNT] 篇文章, [PAGE_COUNT] 页。
zh-Hans: 共计 [PAGE_COUNT] 篇文章, [PAGE_COUNT] 页。
zh-Hant: 共計 [PAGE_COUNT] 篇文章, [PAGE_COUNT] 頁。

LICENSE_ANNOUNCE:
en: This work is licensed under a [LICENSE] license.
Expand All @@ -66,10 +66,10 @@ POST_ON_GITHUB:
zh-Hant: 在 Github 上查閱此文。

FOLLOW_ME:
en: Follow me on [name].
zh: 在 [name] 上关注我。
zh-Hans: 在 [name] 上关注我。
zh-Hant: 在 [name] 上關注我。
en: Follow me on [NAME].
zh: 在 [NAME] 上关注我。
zh-Hans: 在 [NAME] 上关注我。
zh-Hant: 在 [NAME] 上關注我。

EMAIL_ME:
en: Send me Email.
Expand Down
6 changes: 3 additions & 3 deletions _includes/blog/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,18 @@
</div>
<nav>
<ul class="inline-list">
{% assign __locale = site.data.locale.PAGES.HOME %}
{% assign __locale = site.data.locale.NAV.HOME %}
{% include snippets/locale-to-string.html %}
<li><a href="{{ '/' | prepend: site.baseurl | replace: '//', '/' }}">{{ __return }}</a></li>
{% assign __locale = site.data.locale.PAGES.ALL %}
{% assign __locale = site.data.locale.NAV.ALL %}
{% include snippets/locale-to-string.html %}
<li><a href="{{ '/all.html' | prepend: site.baseurl | append: "?tag=" | replace: '//', '/'}}">{{ __return }}</a></li>
{% for list in site.nav_lists %}
{% assign __locale = list.titles %}
{% include snippets/locale-to-string.html %}
<li><a href="{{ list.url }}">{% if list.title %}{{ list.title }}{% else %}{{ __return }}{% endif %}</a></li>
{% endfor %}
{% assign __locale = site.data.locale.PAGES.RSS %}
{% assign __locale = site.data.locale.NAV.RSS %}
{% include snippets/locale-to-string.html %}
<li><a type="application/rss+xml" href="{{ '/feed.xml' | prepend: site.baseurl | replace: '//', '/'}}">{{ __return }}</a></li>
</ul>
Expand Down
14 changes: 7 additions & 7 deletions _includes/info/follow-me.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<meta itemprop="name" content="{{ site.author.name }}">
<link itemprop="url" href="{{ '/' | prepend: site.url }}">
{% if site.author.weibo %}
<li title="{{ __return | replace: '[name]', 'Weibo' }}">
<li title="{{ __return | replace: '[NAME]', 'Weibo' }}">
<div class="round-button weibo">
<a itemprop="sameAs" href="https://weibo.com/{{ site.author.weibo }}" target="_blank">
<div class="icon">{% include icon/social/weibo.svg %}</div>
Expand All @@ -14,7 +14,7 @@
</li>
{% endif %}
{% if site.author.facebook %}
<li title="{{ __return | replace: '[name]', 'Facebook' }}">
<li title="{{ __return | replace: '[NAME]', 'Facebook' }}">
<div class="round-button facebook">
<a itemprop="sameAs" href="https://www.facebook.com/{{ site.author.facebook }}" target="_blank">
<div class="icon">{% include icon/social/facebook.svg %}</div>
Expand All @@ -23,7 +23,7 @@
</li>
{% endif %}
{% if site.author.twitter %}
<li title="{{ __return | replace: '[name]', 'Twitter' }}">
<li title="{{ __return | replace: '[NAME]', 'Twitter' }}">
<div class="round-button twitter">
<a itemprop="sameAs" href="https://twitter.com/{{ site.author.twitter }}" target="_blank">
<div class="icon">{% include icon/social/twitter.svg %}</div>
Expand All @@ -32,7 +32,7 @@
</li>
{% endif %}
{% if site.author.googleplus %}
<li title="{{ __return | replace: '[name]', 'Google+' }}">
<li title="{{ __return | replace: '[NAME]', 'Google+' }}">
<div class="round-button googlepluse">
<a itemprop="sameAs" href="https://plus.google.com/u/0/{{ site.author.googleplus }}" target="_blank">
<div class="icon">{% include icon/social/googleplus.svg %}</div>
Expand All @@ -41,7 +41,7 @@
</li>
{% endif %}
{% if site.author.github %}
<li title="{{ __return | replace: '[name]', 'Github' }}">
<li title="{{ __return | replace: '[NAME]', 'Github' }}">
<div class="round-button github">
<a itemprop="sameAs" href="https://github.com/{{ site.author.github }}" target="_blank">
<div class="icon">{% include icon/social/github.svg %}</div>
Expand All @@ -50,7 +50,7 @@
</li>
{% endif %}
{% if site.author.linkedin %}
<li title="{{ __return | replace: '[name]', 'Linkedin' }}">
<li title="{{ __return | replace: '[NAME]', 'Linkedin' }}">
<div class="round-button linkedin">
<a itemprop="sameAs" href="https://www.linkedin.com/in/{{ site.author.linkedin }}" target="_blank">
<div class="icon">{% include icon/social/linkedin.svg %}</div>
Expand All @@ -59,7 +59,7 @@
</li>
{% endif %}
{% if site.author.douban %}
<li title="{{ __return | replace: '[name]', 'Douban' }}">
<li title="{{ __return | replace: '[NAME]', 'Douban' }}">
<div class="round-button douban">
<a itemprop="sameAs" href="https://www.douban.com/people/{{ site.author.douban }}" target="_blank">
<div class="icon">{% include icon/social/douban.svg %}</div>
Expand Down
2 changes: 1 addition & 1 deletion _layouts/all.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ <h2 class="year-title" id="year-{{ post.date | date: "%Y" }}">{{ currentdate }}<
{% endfor %}
{% assign last = _tags | size | minus: 1 %}
{% assign _tags = _tags | slice: 1, last %}
{% assign __locale = site.data.locale.ARTICLE_LIST_DATA_FORMAT } %}
{% assign __locale = site.data.locale.ARTICLE_LIST_DATE_FORMAT } %}
{% include snippets/locale-to-string.html %}
<li class="js-post-block" data-tag="{{ _tags }}">
<span class="post-date">{{ post.date | date: __return }}</span>
Expand Down
2 changes: 1 addition & 1 deletion _layouts/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ <h1>
{% include snippets/locale-to-string.html %}
{% assign post_count = site.posts | size %}
{% assign page_count = paginator.total_pages %}
<p>{{ __return | replace: '[post_count]', post_count | replace: '[page_count]', page_count }}</p>
<p>{{ __return | replace: '[PAGE_COUNT]', post_count | replace: '[PAGE_COUNT]', page_count }}</p>
<ul class="inline-list">
{% if paginator.previous_page %}
<li><a class="round-button" href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}">
Expand Down

0 comments on commit af2c17c

Please sign in to comment.