label none translation
This commit is contained in:
parent
e7aa529032
commit
c9637bac50
|
@ -73,7 +73,7 @@ class Post
|
||||||
|
|
||||||
def labels_content( need_blank=false )
|
def labels_content( need_blank=false )
|
||||||
content = self.labels.collect { |label| label.name }.join(", ")
|
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
|
content
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -8,6 +8,7 @@ en:
|
||||||
nocontent: "No More Content Here"
|
nocontent: "No More Content Here"
|
||||||
prev: '← Prev Post'
|
prev: '← Prev Post'
|
||||||
next: 'Next Post →'
|
next: 'Next Post →'
|
||||||
|
none: 'None'
|
||||||
qrcodetips: 'Continue reading with mobile phone or share it to Wechat Puppy'
|
qrcodetips: 'Continue reading with mobile phone or share it to Wechat Puppy'
|
||||||
|
|
||||||
home:
|
home:
|
||||||
|
|
|
@ -8,6 +8,7 @@ zh-CN:
|
||||||
nocontent: "没有新的内容"
|
nocontent: "没有新的内容"
|
||||||
prev: '← 上一篇'
|
prev: '← 上一篇'
|
||||||
next: '下一篇 →'
|
next: '下一篇 →'
|
||||||
|
none: '无'
|
||||||
qrcodetips: '扫一扫继续阅读或者帮我分享至朋友圈'
|
qrcodetips: '扫一扫继续阅读或者帮我分享至朋友圈'
|
||||||
|
|
||||||
home:
|
home:
|
||||||
|
|
Loading…
Reference in New Issue