michaellaunay / alirpunkto

0 stars 0 forks source link

Make sure that all error messages are displayed as localised text (msgstr), not as labels (msgid) #112

Closed SergioArbarviro closed 1 month ago

SergioArbarviro commented 2 months ago

Symptom

When a user attempts to register with an e-mail address that already is present on the database, the software rejects the application (which is right) and displays an error message.

In the current state of the software, the error message is "email_already_exist", even in the interface in French.

I interpret this as a message label (msgid) and not as a message text (msgstr).

This error message should be displayed as a plain text, and be included in the locale files (.PO). The error messages should be:

General issue

The following error messages of the file alirpunkto/utils.py should be included as 'msgid' in the .POT and .PO files, and translated accordingly into 'msgstr' in all interface languages:

Similarly, the following error message of the file alirpunkto/views/register.py should be included as 'msgid' in the .POT and .PO files, and translated accordingly into 'msgstr' in all interface languages: