# 提及站点设置

**URL:** <https://meta.discourse.org/t/mention-of-site-settings/299582>\
**Category:** Translations\
**Tags:** site-settings\
**Created:** [2024年三月15日 21:19 UTC](https://meta.discourse.org/t/mention-of-site-settings/299582 "2024-03-15T21:19:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Moin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moin/32/554653_2.png) [@Moin](https://meta.discourse.org/u/Moin)\
**Post date:** [2024年三月15日 21:19 UTC](https://meta.discourse.org/t/mention-of-site-settings/299582/1 "2024-03-15T21:19:20Z")

</div>

站点设置的提及方式有很多种。有时使用下划线，有时不使用。有时设置被单引号或反引号包围，有时什么都没有。这导致这些设置名称有时会被翻译。根据写法不同，Crowdin 中的建议有时会翻译这些设置，有时则不会。由于在 Discourse 中搜索翻译后的设置不起作用，翻译人员必须注意在这种情况下纠正建议。至少对于德语来说，这并不总是奏效\[1\]。因此，如果能确保设置名称默认不被翻译，将会很有帮助。

我看了一些关于目前设置提及方式以及 Crowdin 中的德语和中文建议如何表现的例子。看起来下划线对于确保设置名称不被翻译很有帮助。

| | | |
| --- | --- | --- |
| `The `embed topics list` site setting` | [GitHub](https://github.com/discourse/discourse/blob/main/config/locales/server.en.yml#L415) | ![image601x500, 25%](https://global.discourse-cdn.com/meta/original/4X/7/a/c/7ac865ac353d4c880254bf028e593bb0c173a893.png) |
| `(check `allowed_theme_repos` global setting)` | [GitHub](https://github.com/discourse/discourse/blob/main/config/locales/server.en.yml#L100) | ![image588x500, 25%](https://global.discourse-cdn.com/meta/original/4X/c/d/1/cd1a623959c4d0320872e865146bb420ccf34f29.png) |
| `the delete_email_logs_after_days setting` | [GitHub](https://github.com/discourse/discourse/blob/main/config/locales/server.en.yml#L2617) | ![image597x499, 25%](https://global.discourse-cdn.com/meta/original/4X/8/7/4/8746519615da18e90619c055f2f6f2bfa3cf96ea.png) |
| `disable 'search_tokenize_chinese' before` | [GitHub](https://github.com/discourse/discourse/blob/main/config/locales/server.en.yml#L2614) | ![image516x500, 30%](https://global.discourse-cdn.com/meta/original/4X/c/8/8/c88f848462bc59f98da4f7e2c7dddd284228ae96.png) |
| `configure all 'google oauth2 hd' settings` | [GitHub](https://github.com/discourse/discourse/blob/main/config/locales/server.en.yml#L2613) | ![image509x500, 30%](https://global.discourse-cdn.com/meta/original/4X/5/4/f/54f38af83189e003289f5adccfc299d865eca92a.png) |

* * *

1. 例如：invalid\_uncategorized\_category\_setting: ‘Die Kategorie „Nicht kategorisiert“ kann nicht ausgewählt werden, wenn „Nicht kategorisierte Themen zulassen“ nicht aktiviert ist.’

---

<div class="post-metadata">

**Author:** ![Moin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moin/32/554653_2.png) [@Moin](https://meta.discourse.org/u/Moin)\
**Post date:** [2024年四月11日 18:00 UTC](https://meta.discourse.org/t/mention-of-site-settings/299582/2 "2024-04-11T18:00:32Z")

</div>

今天看到了另一个版本：

```plaintext
`SiteSetting.notification_consolidation_threshold` 
```

这个版本清楚地表明这是一个站点设置，不应被翻译。
