# 新用户月度徽章：变量错误

**URL:** <https://meta.discourse.org/t/new-user-of-the-month-badge-variables-error/216943>\
**Category:** Bug\
**Created:** [2022年二月3日 09:25 UTC](https://meta.discourse.org/t/new-user-of-the-month-badge-variables-error/216943 "2022-02-03T09:25:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hyeonji\_Kim](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hyeonji_kim/32/246647_2.png) [@Hyeonji\_Kim](https://meta.discourse.org/u/Hyeonji_Kim)\
**Post date:** [2022年二月3日 09:25 UTC](https://meta.discourse.org/t/new-user-of-the-month-badge-variables-error/216943/1 "2022-02-03T09:25:37Z")

</div>

在 [New user of the month: wrong month, not localized](https://meta.discourse.org/t/new-user-of-the-month-wrong-month-not-localized/110868/5) 继续讨论：

首先，感谢您提供如此好的论坛 😍

我的论坛使用韩语，并于 2022 年 1 月 18 日开通。

在授予本月新用户徽章时，系统消息中出现了一个错误。

 ![image](https://global.discourse-cdn.com/meta/original/3X/a/e/aed96166c40abf30e2963922bd255069946a136a.jpeg)

- 在英文中，  
“Congratulations, you’ve been awarded the **New User of the Month award for** % B % Y .”

我做了以下操作来纠正这个错误。

1. 访问 **site setting \> text** 来查找变量 `% B % Y`。然而，那里是 `%{month_year}`。我无法修复……
2. 因此，我查看了 [GitHub 上的徽章查询](https://github.com/discourse/discourse/blob/main/app/jobs/scheduled/grant_new_user_of_the_month_badges.rb)。我查看了此链接的提交内容。确认提交前的内容是 `month_year: Time.now.strftime ("%B%Y")`。

我猜测问题的原因有两个。

1. 因为论坛是在一月底创建的，所以在 `month_year: I18n.l (previous_month_beginning, format: no_day)` 中无法计算 `previous_month_beginning`。所以系统打印了 ‘%B%Y’。
2. 或者，这是在提交之前的论坛徽章的情况。
3. 或者，翻译错误。

我想知道这个错误的原因…… 如果有解决这个错误的方法，请告诉我。谢谢 😢
