]> git.openstreetmap.org Git - osqa.git/blobdiff - forum_modules/oauthauth/settings.py
use latest jQuery version
[osqa.git] / forum_modules / oauthauth / settings.py
index 7e9ef8c6f3741c8f9b51c13f31eed8029ff818b3..4977d013712e0df981eb92f6e0acf8dd386c3143 100644 (file)
@@ -1,19 +1,25 @@
 from forum.settings import EXT_KEYS_SET
 from forum.settings.base import Setting
 from forum.settings import EXT_KEYS_SET
 from forum.settings.base import Setting
+from django.utils.translation import ugettext_lazy as _
 
 TWITTER_CONSUMER_KEY = Setting('TWITTER_CONSUMER_KEY', '', EXT_KEYS_SET, dict(
 
 TWITTER_CONSUMER_KEY = Setting('TWITTER_CONSUMER_KEY', '', EXT_KEYS_SET, dict(
-label = "Twitter consumer key",
-help_text = """
+label = _("Twitter consumer key"),
+help_text = _("""
 Get this key at the <a href="http://twitter.com/apps/">Twitter apps</a> to enable
 authentication in your site through Twitter.
 Get this key at the <a href="http://twitter.com/apps/">Twitter apps</a> to enable
 authentication in your site through Twitter.
-""",
+"""),
 required=False))
 
 TWITTER_CONSUMER_SECRET = Setting('TWITTER_CONSUMER_SECRET', '', EXT_KEYS_SET, dict(
 required=False))
 
 TWITTER_CONSUMER_SECRET = Setting('TWITTER_CONSUMER_SECRET', '', EXT_KEYS_SET, dict(
-label = "Twitter consumer secret",
-help_text = """
+label = _("Twitter consumer secret"),
+help_text = _("""
 This your Twitter consumer secret that you'll get in the same place as the consumer key.
 This your Twitter consumer secret that you'll get in the same place as the consumer key.
-""",
+"""),
 required=False))
 
 required=False))
 
-
+TWITTER_AUTO_CALLBACK_REDIRECT = Setting('TWITTER_AUTO_CALLBACK_REDIRECT', True, EXT_KEYS_SET, dict(
+label = _("Twitter auto-callback redirect"),
+help_text = _("""
+Automatically redirect to the Twitter authentication done page, pass the oauth_callback parameter.
+"""),
+required=False))