stefanfoulis / django-phonenumber-field

A django model and form field for normalised phone numbers using python-phonenumbers
MIT License
1.48k stars 318 forks source link

Clarify translations context for error messages #613

Closed francoisfreitag closed 2 months ago

francoisfreitag commented 2 months ago

Since 9923578b435392304c5ac8c56b1f7a8424647d6e, the error message for invalid phone number is annotated with both:

The comment does not allow to offer a different translation for each context. Instead, use pgettext to offer context information.