On Sat, 2008-07-05 at 12:15 +0200, Florencio Cano wrote: > Hi! > In my app when I show the errors in errorlist because a wrong filled > form it shows them in spanish (my language) but when I execute the > tests (with assertContains) the messages in errorlist appear in > english! > How can I fix this?
The tests are always run with the language set to whatever the LANGUAGE_CODE setting is in your settings file. This ensures that they will give a predictable result each time. Is "es" set as the LANGUAGE_CODE setting in your particular settings file (which would mean that is the default locale setting for your site)? Regards, Malcolm --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---