新用户月度徽章:变量错误

New user of the month: wrong month, not localized 继续讨论:

首先,感谢您提供如此好的论坛 :heart_eyes:

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

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

  • 在英文中,
    “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 上的徽章查询。我查看了此链接的提交内容。确认提交前的内容是 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. 或者,翻译错误。

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