I'm having trouble with sending localized messages to Django users using the
user.message_set.create(message="Message")
mechanism. First of all,
user.message_set.create(message=_("Message"))
flat out doesn't work, SQLite says it won't accept the non-ascii parameter (localized message contains special characters).
user.message_set.create(message=unicode(_("Message")))
sends the original English message regardless of the preferred language (other translated parts of the app do work correctly).
Using a hardcoded localized message like this
user.message_set.create(message=u"Localized message áýčš")
is the only thing that works but that implies that I'd be able to only use one language.
How can I send users localized messages loaded from LC_MESSAGES?