We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Assuming you want to translate the source string to the target language only once (and not re-translate the translation), the rules in https://github.com/frappe/semgrep-rules/blob/c0a1c4fcc4eb9fd7813187fa2420872cba8a3770/rules/report.py seem to be incorrect. Report column labels should not be translated in the backend since they will get translated in the frontend anyway.
One argument for this rule would be to mark translatable strings. But then the translation function will be run twice, what brings its own problems.
@ankush can we remove these rules? Or maybe the better way would be to remove the second translation in the frontend?
The text was updated successfully, but these errors were encountered:
Resolved by frappe/frappe#21606
Sorry, something went wrong.
No branches or pull requests
Assuming you want to translate the source string to the target language only once (and not re-translate the translation), the rules in https://github.com/frappe/semgrep-rules/blob/c0a1c4fcc4eb9fd7813187fa2420872cba8a3770/rules/report.py seem to be incorrect. Report column labels should not be translated in the backend since they will get translated in the frontend anyway.
One argument for this rule would be to mark translatable strings. But then the translation function will be run twice, what brings its own problems.
@ankush can we remove these rules? Or maybe the better way would be to remove the second translation in the frontend?
The text was updated successfully, but these errors were encountered: