# 「投稿者が取り下げたトピック」のテキスト変更が反映されない

**URL:** https://meta.discourse.org/t/changed-text-for-topic-withdrawn-by-author-doesnt-apply/150572
**Category:** Bug
**Created:** [2020 年 5 月 6 日午前 9:13 UTC](https://meta.discourse.org/t/changed-text-for-topic-withdrawn-by-author-doesnt-apply/150572 "2020-05-06T09:13:32Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![zcuric](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zcuric/32/292837_2.png) [@zcuric](https://meta.discourse.org/u/zcuric)
#### Post date: [2020 年 5 月 6 日午前 9:13 UTC](https://meta.discourse.org/t/changed-text-for-topic-withdrawn-by-author-doesnt-apply/150572/1 "2020-05-06T09:13:32Z")

</div>

再現手順:

1. `Customize > Text` で、既存のテキスト (`(topic withdrawn by author, will be automatically deleted in 24 hours unless flagged)`) を `js.topic.deleted_by_author.one` および `js.topic.deleted_by_author.other` の値に変更します。
2. 一般ユーザーとしてトピックを作成します。
3. 一般ユーザーとしてそのトピックを削除します。
4. 更新されたテキストが表示されるはずですが、`(topic withdrawn by author, will be automatically deleted in 24 hours unless flagged)` が表示されます。

問題は以下のコードにある可能性があります:

> <https://github.com/discourse/discourse/blob/main/lib/post_destroyer.rb#L181>

ここには `js.topic.deleted_by_author.one` または `js.topic.deleted_by_author.other` が参照されておらず、存在しないロケール設定の `js.topic.deleted_by_author` だけが参照されているようです。

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [2020 年 5 月 6 日午後 7:26 UTC](https://meta.discourse.org/t/changed-text-for-topic-withdrawn-by-author-doesnt-apply/150572/2 "2020-05-06T19:26:29Z")

</div>

これは私たちで修正すべきバグですか、@sam？

---

<div class="post-metadata">

### Author: ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)
#### Post date: [2020 年 5 月 6 日午後 9:56 UTC](https://meta.discourse.org/t/changed-text-for-topic-withdrawn-by-author-doesnt-apply/150572/3 "2020-05-06T21:56:49Z")

</div>

これは、自己削除テキストが翻訳され、サーバー上の投稿リビジョンとして保存されるために発生しています。翻訳の変更は、新しく削除された投稿にのみ適用されます。

---

<div class="post-metadata">

### Author: ![zcuric](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zcuric/32/292837_2.png) [@zcuric](https://meta.discourse.org/u/zcuric)
#### Post date: [2020 年 5 月 11 日午後 7:27 UTC](https://meta.discourse.org/t/changed-text-for-topic-withdrawn-by-author-doesnt-apply/150572/4 "2020-05-11T19:27:59Z")

</div>

@riking これはバグではないのでしょうか？詳しくはわかりませんが、この部分は以前から翻訳されており、新しい投稿でもこの問題が解消されていません。
