-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Translation broken because of f-string use #26443
Comments
ankush
added a commit
to ankush/frappe
that referenced
this issue
May 16, 2024
ankush
added a commit
that referenced
this issue
May 17, 2024
* fix: dont translate syntax error messages closes #26443 (cherry picked from commit afed21e) * fix(DX): Don't run CI if there are no tests New apps keep burning CI just to install the app and run nothing. This adds a small check before install to avoid unnecessary CI runs. (cherry picked from commit 1b0ad41) --------- Co-authored-by: Ankush Menat <ankush@frappe.io>
ankush
added a commit
that referenced
this issue
May 17, 2024
* fix: dont translate syntax error messages closes #26443 (cherry picked from commit afed21e) * fix(DX): Don't run CI if there are no tests New apps keep burning CI just to install the app and run nothing. This adds a small check before install to avoid unnecessary CI runs. (cherry picked from commit 1b0ad41) --------- Co-authored-by: Ankush Menat <ankush@frappe.io>
🎉 This issue has been resolved in version 15.28.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
🎉 This issue has been resolved in version 14.75.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Description of the issue
Translation is broken again because of continued usage of f-strings in at least one call to
frappe._
. This has been an issue in the past but I noticed the commit (557cb45) that introduces the bug was allowed to bypass CI, I wonder why.If future versions support usage of f-strings in frappe._, backporting should still verify that it does not break older versions that do not.
Output of
bench version
Steps to reproduce the issue
sites
andapps
)bench update-translations
with suitable arguments for some languageObserved result
Translation fails to complete because of exception raised while trying to evaluate code from
frappe/utils/jinja.py:69
Expected result
Translation completes without errors.
Stacktrace / full error message
Additional information
OS: Rocky Linux 9
The text was updated successfully, but these errors were encountered: