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?