From d79d6f87a0839db5d906e2613941c98ea5889c89 Mon Sep 17 00:00:00 2001 From: yafeilee Date: Sun, 12 Apr 2015 23:37:47 +0800 Subject: [PATCH] add type_en to locale --- app/views/admin/posts/index.html.slim | 2 +- app/views/archives/index.html.slim | 2 +- app/views/blogs/index.html.slim | 2 +- config/locales/en.yml | 1 + config/locales/zh-CN.yml | 1 + 5 files changed, 5 insertions(+), 3 deletions(-) diff --git a/app/views/admin/posts/index.html.slim b/app/views/admin/posts/index.html.slim index 0339c56..2055577 100644 --- a/app/views/admin/posts/index.html.slim +++ b/app/views/admin/posts/index.html.slim @@ -16,7 +16,7 @@ i.fi-calendar span #{format_time(post.created_at)} i.fi-list - span #{ post.type } + span #{ post.type_en } i.fi-pricetag-multiple span #{ post.labels_content } i.fi-torsos diff --git a/app/views/archives/index.html.slim b/app/views/archives/index.html.slim index e929fc8..01181a9 100644 --- a/app/views/archives/index.html.slim +++ b/app/views/archives/index.html.slim @@ -12,7 +12,7 @@ |{{ post.created_at }} i.fi-list-thumbnails span - |{{ post.type }} + |{{ post.type_en }} i.fi-pricetag-multiple span |{{ post.labels }} diff --git a/app/views/blogs/index.html.slim b/app/views/blogs/index.html.slim index 7dc554b..5ce915e 100644 --- a/app/views/blogs/index.html.slim +++ b/app/views/blogs/index.html.slim @@ -15,7 +15,7 @@ = link_to t('home.read'), blog_path(@newest), class: 'read-more' p.published-at #{t('home.created_at')} #{format_date(@newest.created_at)} - h4.recent-title RECENT + h4.recent-title #{t('home.recent')} ul.recent-content - @recent.each do |re| li = link_to "#{re.title}",blog_path(re) diff --git a/config/locales/en.yml b/config/locales/en.yml index f431f67..3821ab2 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -14,6 +14,7 @@ en: no_blog_here: 'There is no post here' read: 'Read More >>' created_at: 'Posted At' + recent: 'RECENT' subscribes: title: 'SUBSCRIBE' diff --git a/config/locales/zh-CN.yml b/config/locales/zh-CN.yml index ab0f56e..c037ae9 100644 --- a/config/locales/zh-CN.yml +++ b/config/locales/zh-CN.yml @@ -14,6 +14,7 @@ zh-CN: no_blog_here: '这里没有博客' read: '阅读全文 >>' created_at: '发表于 ' + recent: '近期博客' subscribes: title: '订阅我'