1. offline
  2. django-publicauth


django-publicauth / publicauth / lang.py

offline 71953ab 
offline 312a180 
offline 71953ab 
offline d91699d 
offline c2f56f8 
offline 312a180 
offline d91699d 

offline 312a180 

offline dc2793d 

from django.utils.translation import ugettext as _
from django.conf import settings

ACTIVATION_REQUIRED_TEXT = getattr(settings, "PUBLICAUTH_ACTIVATION_REQUIRED_TEXT", _('To complete registration, check your email and activate your account'))
REGISTRATION_DISABLED = getattr(settings, "PUBLICAUTH_REGISTRATION_DISABLED", _('We are sorry, but registration is disabled. Come back later'))
FILL_OPENID_URL = getattr(settings, "PUBLICAUTH_FILL_OPENID_URL", _('Please fill openid url field'))
BACKEND_ERROR = getattr(settings, "PUBLICAUTH_BACKEND_ERROR", _('Your authentication provider returned bad response, please try again'))
OPENID_CANCELED = getattr(settings, "PUBLICAUTH_OPENID_CANCELED", _('You have cancelled OpenID authentication'))
OPENID_FAILED = getattr(settings, "PUBLICAUTH_OPENID_FAILED", _('OpenID authentication failed. Reason: %s'))
SUCCESS_LOGOUT = getattr(settings, "PUBLICAUTH_SUCCESS_LOGOUT", _('You have successfully logged out'))
ACCOUNTS_MERGED = getattr(settings, "PUBLICAUTH_ACCOUNTS_MERGED", _('Your existing account was merged with new authentication account'))
NOT_ACTIVATED = getattr(settings, "PUBLICAUTH_NOT_ACTIVATED",  _('Your account is not activated. Please activate it first.'))
SUCCESSFULLY_AUTHENTICATED = getattr(settings, "PUBLICAUTH_SUCCESSFULLY_AUTHENTICATED", _('You have successfully authenticated'))
FACEBOOK_INVALID_RESPONSE = getattr(settings, 
                                    _('Invalid response received from facebook server, please start the authentication process again')
                                        ('Invalid response received from OpenID server, please start the authentication process again'))
                                    _('Invalid response received from vkontakte server, please start the authentication process again')