Merge pull request #38 from wty21cn/master

Make article nav support i18n
This commit is contained in:
ppoffice 2015-08-13 10:16:03 +08:00
commit 2df5700dc9
4 changed files with 11 additions and 5 deletions

View File

@ -8,6 +8,8 @@ index:
nav: nav:
next: 'Next' next: 'Next'
prev: 'Prev' prev: 'Prev'
older: 'Older'
newer: 'Newer'
widget: widget:
recents: 'recents' recents: 'recents'
archives: 'archives' archives: 'archives'

View File

@ -8,6 +8,8 @@ index:
nav: nav:
next: 'Berikutnya' next: 'Berikutnya'
prev: 'Sebelumnya' prev: 'Sebelumnya'
older: 'Lebih Tua'
newer: 'Lebih baru'
widget: widget:
recents: 'terbaru' recents: 'terbaru'
archives: 'arsip' archives: 'arsip'

View File

@ -8,6 +8,8 @@ index:
nav: nav:
next: '下一页' next: '下一页'
prev: '上一页' prev: '上一页'
older: '下一篇'
newer: '上一篇'
widget: widget:
recents: '最新文章' recents: '最新文章'
archives: '归档' archives: '归档'

View File

@ -2,7 +2,7 @@
<nav id="article-nav"> <nav id="article-nav">
<% if (post.prev){ %> <% if (post.prev){ %>
<a href="<%- url_for(post.prev.path) %>" id="article-nav-newer" class="article-nav-link-wrap"> <a href="<%- url_for(post.prev.path) %>" id="article-nav-newer" class="article-nav-link-wrap">
<strong class="article-nav-caption">Newer</strong> <strong class="article-nav-caption"><%= __('nav.newer') %></strong>
<div class="article-nav-title"> <div class="article-nav-title">
<% if (post.prev.title){ %> <% if (post.prev.title){ %>
<%= post.prev.title %> <%= post.prev.title %>
@ -14,7 +14,7 @@
<% } %> <% } %>
<% if (post.next){ %> <% if (post.next){ %>
<a href="<%- url_for(post.next.path) %>" id="article-nav-older" class="article-nav-link-wrap"> <a href="<%- url_for(post.next.path) %>" id="article-nav-older" class="article-nav-link-wrap">
<strong class="article-nav-caption">Older</strong> <strong class="article-nav-caption"><%= __('nav.older') %></strong>
<div class="article-nav-title"><%= post.next.title %></div> <div class="article-nav-title"><%= post.next.title %></div>
</a> </a>
<% } %> <% } %>