New user of the month badge: variables error

AI-generated summary

Hyeonji_Kim reports an issue with the ‘New User of the Month’ badge message on a Korean-language forum, where the system displays %B%Y instead of the expected localized month and year. The forum, launched on January 18, 2022, shows an incorrect message: ‘Congratulations, you’ve been awarded the New User of the Month award for % B % Y .’ Hyeonji_Kim checked the site settings and found the variable is actually %{month_year}, not %B%Y, and reviewed the GitHub code, noting that the badge logic uses Time.now.strftime("%B%Y"). They speculate the error may stem from the forum’s creation date affecting previous_month_beginning calculation, a pre-commit badge version, or a translation issue. They seek clarification and a solution to fix the display error.

Continue the discussion at New user of the month: wrong month, not localized:

First, thank you for the good forum :heart_eyes:

My forum use Korean and was opened on January 18, 2022.

When awarding this month’s new user badge, there is an error in the system message.

→ in English,
“Congratulations, you’ve been awarded the New User of the Month award for % B % Y .”

I did this to correct this error.

  1. Visit site setting > text to find the variable % B % Y. However, there was %{month_year}. I cannot fix,…

  2. So, I checked Badge query at GitHub. I checked the commit contents of this link. It was confirmed that the content before the commitment was month_year: Time.now.strftime ("%B%Y").

I guess the cause of the problem is two things.

  1. Because the forum was created at the end of January, previous_month_beginning could not be calculated in month_year: I18n.l (previous_month_beginning, format: no_day). So system printed ‘%B%Y’.

  2. Or, this is the case when the badge of the forum is prior to commit.

  3. Or, Translation error

I wonder the reason of this error.. And let me know if there’s a way I can solve this error. Thanks
:cry: