# 开发：确保所有站点设置都填写了关键词

**URL:** <https://meta.discourse.org/t/dev-ensure-all-site-settings-have-a-keyword-entry/344861>\
**Category:** Translations\
**Created:** [2024 年12 月 30 日 11:02 UTC](https://meta.discourse.org/t/dev-ensure-all-site-settings-have-a-keyword-entry/344861 "2024-12-30T11:02:13Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

作者： ![pento](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pento/32/450661_2.png) [@pento](https://meta.discourse.org/u/pento)\
发布日期： [2025 年1 月 2 日 04:57 UTC](https://meta.discourse.org/t/dev-ensure-all-site-settings-have-a-keyword-entry/344861/9 "2025-01-02T04:57:12Z")

</div>

谢谢 Moin 询问此事！

你说得对，Crowdin 默认会隐藏空字符串。看起来我可以更新我们的字符串同步机器人来让它们显示出来。

> [@gerhard](#):
>
> 如果我们希望翻译人员添加新的关键词，那么我们需要在每个字符串上提供清晰的说明，说明他们如何以及为何需要提出新的关键词，并且字符串不能为空。

Gerhard，你说得对，这个目的有点令人困惑。这是我正在查看的 PR，用于为每个关键词条目提供额外的上下文：

> <https://github.com/discourse/discourse/pull/30525>
>
> \## ✨ What's This?
> 
> Follow-up to #30485.
> 
> The site setting keyword entries ar…e mostly empty strings, and don't really provide any useful information to translators, allowing them to choose what to set them to. This PR adds a comment for each site setting keyword entry, providing contextual information that will be auto-populated into the Crowdin interface, informing translators of what they should do with this string.

但我不知道如何为每个英文的站点设置添加关键词，因为它们大多是冗余的。设置搜索已经可以针对设置名称的任何子字符串进行简单匹配（例如，搜索“avatar”也会显示“gravatar”设置），因此很少有设置可以使用额外的手动定义的关键词。

---

_[View the full topic](https://meta.discourse.org/t/dev-ensure-all-site-settings-have-a-keyword-entry/344861)._
