# 如何修改回复按钮的标签文本

**URL:** <https://meta.discourse.org/t/how-do-i-modify-the-label-text-of-a-reply-button/169779>\
**Category:** UX\
**Created:** [2020年十一月10日 22:23 UTC](https://meta.discourse.org/t/how-do-i-modify-the-label-text-of-a-reply-button/169779 "2020-11-10T22:23:30Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)\
**Post date:** [2020年十一月10日 23:48 UTC](https://meta.discourse.org/t/how-do-i-modify-the-label-text-of-a-reply-button/169779/6 "2020-11-10T23:48:38Z")

</div>

回复按钮使用了两个不同的翻译键。`js.composer.reply` 用于打开编辑器时看到的回复按钮。`js.topic.reply.title` 用于主题中显示的回复按钮（即点击以打开编辑器的按钮）。

我并没有记住这些翻译键。我是通过在浏览器网页检查器的控制台中输入 `I18n.enableVerboseLocalizationSession()` 来找到它们的。执行此操作后，Discourse 上所有可自定义的文本项都会添加一个数字键。你可以使用该数字来查找正确的翻译键。该方法在此处有详细说明：[通过详细本地化查找翻译键](https://meta.discourse.org/t/find-a-translation-key-with-verbose-localization/134651)。

在最新版的 Chrome 浏览器中，翻译键名称会显示在网页检查器的“信息”标签页中。

---

_[View the full topic](https://meta.discourse.org/t/how-do-i-modify-the-label-text-of-a-reply-button/169779)._
