没有最新的主题。这有点可惜。

I think there are two scenarios and they need different messages:

  1. latest tab is empty (I think @justin suggestion of “You’re all caught up! Ready to [start a new conversation]?” is a good one here.

  2. New category is empty (or site is brand new, etc). This one needs more of an exhortation to create some topics so people have something to talk about, and real actual topic examples of what the category is for (other than the category description)

8 个赞

How would scenario 1 happen:

out of scenario 2 cases ? (EDIT: Oh, maybe by selecting TAGS !?)

There also is the “show tracked or watched topics” talked about above, but is “you’re all caught up…” the right message for this case ? (scenario 3 ?)

3 个赞

I put together a PR for this. The message is

You’re all caught up! Ready to start a new conversation?

https://github.com/discourse/discourse/pull/10740

11 个赞

有人知道 – 是否有插件、主题组件或配置设置(现在 :pray: )?

或者,是否可以通过 js.topics.none.latestconfig/locales/client.en.yml 进行编辑?

2 个赞

只需访问 /admin/customize/site_texts 并搜索“that’s sad”。您可以将其更改为您想要的任何内容。

编辑:不过看起来“that’s sad”已经在核心中被更改了。现在看起来只是这样:

      bottom:
        latest: "没有更多最新主题了。"
        posted: "没有更多已发布主题了。"
        read: "没有更多已读主题了。"
        new: "没有更多新主题了。"
        unread: "没有更多未读主题了。"
        unseen: "没有更多未见主题了。"
        category: "没有更多 %{category} 主题了。"
        tag: "没有更多 %{tag} 主题了。"
        top: "没有更多热门主题了。"
        bookmarks: "没有更多已收藏主题了。"
5 个赞

非常感谢您 @pfaffman – 我也很高兴了解到您的Discourse 支持服务

2 个赞

您还可以使用“after”伪类更改消息以适应类别:

.topic-list-bottom::after {
	content: '目前没有活动';
}

.category-next-events .topic-list-bottom .footer-message {
	display: none;
}

如果您的网站是多语言的,您可以添加语言伪类。

1 个赞