POC Campus Condorcet : formView i18n

traductions 'lazy'
This commit is contained in:
Paul Marillonnet 2017-05-17 10:34:49 +02:00
parent 371462a28e
commit 2e54fd15ce
3 changed files with 8 additions and 11 deletions

View File

@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-05-16 18:01+0000\n"
"POT-Creation-Date: 2017-05-17 08:20+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@ -39,8 +39,6 @@ msgid "Member"
msgstr ""
#: saml/forms.py:12
#, fuzzy
#| msgid "Affiliations"
msgid "Affiliate"
msgstr ""
@ -155,11 +153,11 @@ msgid "Please fill in the empty fields and submit your account request"
msgstr ""
"Veuillez completer les champs vides et valider votre demande d'inscription."
#: sp_sso/settings.py:160
#: sp_sso/settings.py:161
msgid "French"
msgstr "Francais"
#: sp_sso/settings.py:161
#: sp_sso/settings.py:162
msgid "English"
msgstr "Anglais"

View File

@ -1,4 +1,4 @@
from django.utils.translation import ugettext as _
from django.utils.translation import ugettext_lazy as _
from django import forms
from .utils import ldap_get_unites, ldap_get_etablissements

View File

@ -12,6 +12,7 @@ https://docs.djangoproject.com/en/1.7/ref/settings/
import os
from django.conf import global_settings
from django.utils.translation import ugettext_lazy as _
BASE_DIR = os.path.dirname(os.path.dirname(__file__))
@ -150,15 +151,13 @@ TIME_ZONE = 'UTC'
USE_I18N = True
USE_L10N = True
USE_L10N = False
USE_TZ = True
gettext = lambda x: x
LANGUAGES = (
('fr', gettext('French')),
('en', gettext('English')),
('fr', _('French')),
('en', _('English')),
)
LOCALE_PATHS = (