Skip to content

Fix: Remove variables and revise wording in goals page which crashes in some languages #4811

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

HarikalarKutusu
Copy link
Contributor

@HarikalarKutusu HarikalarKutusu commented Feb 28, 2025

Fixes: #3907

In goals page, there is a complex structure which crashes the page in some languages because of unnecessarily added plurals/variables to the i10n sentence, which creates a thousand possibilities for Fluent. But the variables are not variables, just passed as constants.

Also the calculations are based on 10k hours what could be valid in 2018, but not nowadays. And it also depends on many other variables as explained here:
#3907 (comment)

So, this PR just makes it a single fixed value string with more recent requirements.

Credit goes to @eemeli

@moz-dfeller
Copy link
Contributor

Looks great, less complex. If you are okay with that @ftyers , I'm happy to merge it.

Copy link
Collaborator

@ftyers ftyers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

@moz-bozden moz-bozden merged commit a4a8e69 into common-voice:main Jun 25, 2025
2 checks passed
@moz-bozden moz-bozden deleted the fix-complex-plural-in-goals branch June 25, 2025 14:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] The string activity-needed-calculation-plural is unnecessarily complex
4 participants