From 14e89034a636c9af22ebdfffaa0dd5bef2f0997a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Antonio=20Mart=C3=ADn=20Prieto?= Date: Thu, 25 Aug 2011 20:13:35 +0300 Subject: [PATCH] Added explanation of NOTIFICATION_LANGUAGE_MODULE setting. --- docs/usage.txt | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/docs/usage.txt b/docs/usage.txt index 89623ed6..2fa113e8 100644 --- a/docs/usage.txt +++ b/docs/usage.txt @@ -73,6 +73,17 @@ and ``notification/friends_full.txt`` might contain:: The context variables are provided when sending the notification. +Translation Support +=================== + +If your project supports multiple languages and you want that the users get their notices in their chosen language, you need to add this line to your settings file:: + + NOTIFICATION_LANGUAGE_MODULE = "account.Account" + +The value of this setting should be formatted like "app.Model" and the model should have at least two fields: a foreignkey to the User class (user) and a language field (language) which stores the language code (e.g. en). + +The above example shows the usual setting in Pinax, but you can use any other app. + Sending Notification ====================