Hi
I ported my old password validation system based on good old cracklib to the
new password validators. https://github.com/nirgal/django-cracklib/
I am wondering how to get a proper translation for external library calls.
I am using this stuff:
DJANGO_LANGUAGE_TO_LOCALE = { # UTF-8 version is a requirement
'af': 'af_ZA.UTF-8',
'ar': 'ar_SA.UTF-8',
'ast': 'ast_ES.UTF-8',
'az': 'az_AZ.UTF-8',
'be': 'be_BY.UTF-8',
'bg': 'bg_BG.UTF-8',
'bn': 'bn_BD.UTF-8',
'br': 'br_FR.UTF-8',
'bs': 'bs_BA.UTF-8',
'ca': 'ca_ES.UTF-8',
....
os.putenv('LANG', django.utils.translation.get_language())
crack.FascistCheck(password)
Is there a way to convert django locale to GNU locale other that my ugly
hardcoded table?
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/2212724.ZFP6dMKeL1%40deimos.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment