missing localization on categories

This commit is contained in:
Sam Saffron 2013-02-20 16:11:41 +11:00
parent 70058c9ebe
commit ea7b97be34
4 changed files with 8 additions and 8 deletions

View file

@ -5,7 +5,7 @@
<h1> <h1>
{{#if view.topic.title}} {{#if view.topic.title}}
{{view Discourse.TopicStatusView topicBinding="view.topic"}} {{view Discourse.TopicStatusView topicBinding="view.topic"}}
<a class='topic-link' href='{{unbound view.topic.url}}'>{{view Discourse.AutoSizedTextView tagName="span" class="auto-sizer" contentBinding="view.topic.title"}}</a> <a class='topic-link' href='{{unbound view.topic.url}}'>{{view.topic.title}}</a>
{{else}} {{else}}
{{#if view.topic.missing}} {{#if view.topic.missing}}
{{i18n topic.not_found.title}} {{i18n topic.not_found.title}}

View file

@ -58,10 +58,11 @@ window.Discourse.ListTopicsView = Ember.View.extend Discourse.Scrolling, Discour
return unless @get('allLoaded') return unless @get('allLoaded')
content = @get('controller.content') content = @get('controller.content')
split = content.get('filter').split('/')
if content.get('topics.length') == 0 if content.get('topics.length') == 0
Em.String.i18n("topics.none.#{content.get('filter')}") Em.String.i18n("topics.none.#{split[0]}", category: split[1])
else else
Em.String.i18n("topics.bottom.#{content.get('filter')}") Em.String.i18n("topics.bottom.#{split[0]}", category: split[1])
).property('allLoaded', 'controller.content.topics.length') ).property('allLoaded', 'controller.content.topics.length')

View file

@ -1,8 +1,6 @@
@media only screen @media only screen
and (min-width : 320px) and (min-device-width : 320px)
and (max-width : 480px) { and (max-device-width : 480px) {
// and (min-device-width : 320px)
// and (max-device-width : 480px) {
#reply-control { #reply-control {
.toggle-preview { display:none; } .toggle-preview { display:none; }
#reply-title { width: 250px; } #reply-title { width: 250px; }

View file

@ -317,6 +317,7 @@ en:
read: "You haven't read any topics yet." read: "You haven't read any topics yet."
posted: "You haven't posted in any topics yet." posted: "You haven't posted in any topics yet."
popular: "There are no popular topics. That's sad." popular: "There are no popular topics. That's sad."
category: "There are no {{category}} topics."
bottom: bottom:
popular: "There are no more popular topics to read." popular: "There are no more popular topics to read."
posted: "There are no more posted topics to read." posted: "There are no more posted topics to read."
@ -324,7 +325,7 @@ en:
new: "There are no more new topics to read." new: "There are no more new topics to read."
unread: "There are no more unread topics to read." unread: "There are no more unread topics to read."
favorited: "There are no more favorited topics to read." favorited: "There are no more favorited topics to read."
category: "There are no more {{category}} topics."
topic: topic: