# 编辑包含%的文本时出现问题

**URL:** <https://meta.discourse.org/t/there-was-a-problem-editing-text-with/130123>\
**Category:** Bug\
**Created:** [2019年十月3日 12:53 UTC](https://meta.discourse.org/t/there-was-a-problem-editing-text-with/130123 "2019-10-03T12:53:23Z")\
**Posts on this page:** 1\
**Showing post:** 13

<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:** [2019年十月3日 19:44 UTC](https://meta.discourse.org/t/there-was-a-problem-editing-text-with/130123/13 "2019-10-03T19:44:07Z")

</div>

我已将此话题移至 #Contribute > Bug 分类。我在托管的 Discourse 站点上发现，当包含占位符的文本内容被编辑时，编辑后的文本会被保存到 `TranslationOverride` 表中。该文本会显示在站点的用户界面中。例如，如果我编辑 `login_required.welcome_message` 文本，我的编辑内容将在登录页面中使用。

问题是，编辑后的文本在 Admin / Customize / Text 列表中显示不一致，并且在文本编辑页面上完全不显示：

 ![image](https://global.discourse-cdn.com/meta/original/3X/d/e/de6d78ebb151d997d4915f7cf2ccd33657c2e499.png)

如果我勾选“仅显示已覆盖”复选框，或搜索特定的翻译键，编辑后的文本会显示出来：

 ![image](https://global.discourse-cdn.com/meta/original/3X/b/5/b5b16a042f4bea26079f601531a21b2d11e8c6bc.png)

如果我点击文本的编辑按钮，则会显示一个空的文本区域：

 ![image](https://global.discourse-cdn.com/meta/original/3X/1/2/12053b8e3fa2a0c61324dade584e38c8265f3973.png)

编辑：这似乎是 @tshenry 链接到的问题的重复项：[https://meta.discourse.org/t/changing-systems-welcome-message/128572/3。我发现的区别在于，在步骤](https://meta.discourse.org/t/changing-systems-welcome-message/128572/3%E3%80%82%E6%88%91%E5%8F%91%E7%8E%B0%E7%9A%84%E5%8C%BA%E5%88%AB%E5%9C%A8%E4%BA%8E%EF%BC%8C%E5%9C%A8%E6%AD%A5%E9%AA%A4) 6 中点击还原按钮会还原为默认文本，而不是最近编辑的文本。这个问题似乎只出现在包含占位符的字符串中。我将暂时将此话题关闭为重复项。

---

_[View the full topic](https://meta.discourse.org/t/there-was-a-problem-editing-text-with/130123)._
