# 有一个问题，关于替换文本功能

**URL:** <https://www.isharkfly.com/t/topic/15977>\
**Category:** Discourse\
**Tags:** discourse\
**Created:** [July 10, 2024, 4:09am UTC](https://www.isharkfly.com/t/topic/15977 "2024-07-10T04:09:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rick\_Jing](https://www.isharkfly.com/user_avatar/www.isharkfly.com/rick_jing/32/14220_2.png) [@Rick\_Jing](https://www.isharkfly.com/u/Rick_Jing)\
**Post date:** [July 10, 2024, 4:09am UTC](https://www.isharkfly.com/t/topic/15977/1 "2024-07-10T04:09:18Z")

</div>

我想把 **话题** 这两个字，替换成 **贴文** 或者 **帖子** 。但是搜索结果太多了，超过了50个。

 ![image](https://cdn.isharkfly.com/com-isharkfly-www/discourse-uploads/original/2X/3/3f8774594591033471e1394557658db3be85fe4c.png)  
然后上面替换文本  
 ![image](https://cdn.isharkfly.com/com-isharkfly-www/discourse-uploads/original/2X/3/3a7f960972fbc123100d7bf977a275dffcd22ded.png)  
我不理解，什么是最新的翻译替换系统生成的，这个最新的翻译在哪里设置？

---

<div class="post-metadata">

**Author:** ![Lhcfl](https://www.isharkfly.com/user_avatar/www.isharkfly.com/lhcfl/32/14361_2.png) [@Lhcfl](https://www.isharkfly.com/u/Lhcfl)\
**Post date:** [July 10, 2024, 7:49am UTC](https://www.isharkfly.com/t/topic/15977/2 "2024-07-10T07:49:58Z")

</div>

没有 **官方支持** 的批量替换功能，但是有个别的办法，就是写个插件覆盖掉前面的所有translation，方法对初学者比较复杂但是其实很简单，我做完了发在这里

> [@Rick\_Jing](#):
>
> 我不理解，什么是最新的翻译替换系统生成的

……我去重新翻译下这个东西，感觉不是中国人做的翻译，这个按钮的意思是Discourse有一些安装完自带的帖子是英文的，你可以用这个把它变成翻译的

---

<div class="post-metadata">

**Author:** ![Lhcfl](https://www.isharkfly.com/user_avatar/www.isharkfly.com/lhcfl/32/14361_2.png) [@Lhcfl](https://www.isharkfly.com/u/Lhcfl)\
**Post date:** [July 10, 2024, 9:29am UTC](https://www.isharkfly.com/t/topic/15977/3 "2024-07-10T09:29:53Z")

</div>

> **[GitHub - Lhcfl/replace-translations-global](https://github.com/Lhcfl/replace-translations-global)**
>
> Contribute to Lhcfl/replace-translations-global development by creating an account on GitHub.

给，我写的插件，默认替换了话题=\>贴文

至于应用更改需要等缓存过期，你可以用这个强制更新：

```auto
sudo ./launcher enter app
rm -rf tmp

```

---

<div class="post-metadata">

**Author:** ![Rick\_Jing](https://www.isharkfly.com/user_avatar/www.isharkfly.com/rick_jing/32/14220_2.png) [@Rick\_Jing](https://www.isharkfly.com/u/Rick_Jing)\
**Post date:** [July 10, 2024, 10:45am UTC](https://www.isharkfly.com/t/topic/15977/4 "2024-07-10T10:45:37Z")

</div>

谢谢，没想到还可以这样，又学到了
