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

**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:** 1

<div class="post-metadata">

作者： ![Moin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moin/32/554653_2.png) [@Moin](https://meta.discourse.org/u/Moin)\
发布日期： [2024 年12 月 30 日 11:02 UTC](https://meta.discourse.org/t/dev-ensure-all-site-settings-have-a-keyword-entry/344861/1 "2024-12-30T11:02:13Z")

</div>

> <https://github.com/discourse/discourse/pull/30485>
>
> \## ✨ What's This?
> 
> In order to allow translators to add keywords for site sett…ings, these settings need to be listed in the \`keywords\` section, even if they're currently empty.
> 
> This PR adds a rake script \`RAILS\_ENV=development bundle exec rake site\_settings:add\_keyword\_translation\_keys\` to update the list, and a spec to ensure that it stays up to date.

翻译人员如何添加这些关键字？根据我的经验，Crowdin 中不会显示空字符串以供翻译。

---

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