label none translation

This commit is contained in:
yafeilee 2015-04-17 15:13:30 +08:00
parent e7aa529032
commit c9637bac50
3 changed files with 3 additions and 1 deletions

View File

@ -73,7 +73,7 @@ class Post
def labels_content( need_blank=false )
content = self.labels.collect { |label| label.name }.join(", ")
content = '无' if content.blank? and !need_blank
content = I18n.t('none') if content.blank? and !need_blank
content
end

View File

@ -8,6 +8,7 @@ en:
nocontent: "No More Content Here"
prev: '← Prev Post'
next: 'Next Post →'
none: 'None'
qrcodetips: 'Continue reading with mobile phone or share it to Wechat Puppy'
home:

View File

@ -8,6 +8,7 @@ zh-CN:
nocontent: "没有新的内容"
prev: '← 上一篇'
next: '下一篇 →'
none: '无'
qrcodetips: '扫一扫继续阅读或者帮我分享至朋友圈'
home: