#29623: DurationField ValidationError message should use proper gettext variables -------------------------------------+------------------------------------- Reporter: Jannis Leidel | Owner: Markus | Holtermann Type: Bug | Status: assigned Component: Forms | Version: 2.1 Severity: Release blocker | Resolution: Keywords: | Triage Stage: Ready for | checkin Has patch: 1 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 1 | UI/UX: 0 -------------------------------------+-------------------------------------
Comment (by Claude Paroz): Replying to [comment:5 Markus Holtermann]: > I don't think the `.format()` option works with gettext though, does it? It does. I don't recall the exact gettext version the support was added to, but it works. Sorry Jannis, but I don't think this is a bug. Even if the older `%()s` syntax is not deprecated, I see more and more Python code using the `'string'.format()` syntax. Translators have to get used to the new syntax anyway. Moreover, if the content is mistakenly translated, `msgfmt -c` will notice it as an error (the string is marked `#, python-brace-format` in the po files) and we will not accept the file in Django. The fact that Transifex accepts the wrong translation is a bug in Transifex. -- Ticket URL: <https://code.djangoproject.com/ticket/29623#comment:6> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/064.942493028c7632106768154e0af0e5c0%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.