def get_non_supported(lang):
 lang = lang.lower()
 langs = dict(((k.lower(), v) for (k, v) in settings.NON_SUPPORTED_LOCALES.items()))
 if (lang in langs):
  if (langs[lang] is None):
   return settings.LANGUAGE_CODE
  return langs[lang]
 return None

def get_non_supported ( lang ) : lang = lang . lower ( ) langs = dict ( ( ( k . lower ( ) , v ) for ( k , v ) in settings . NON_SUPPORTED_LOCALES . items ( ) ) ) if ( lang in langs ) : if ( langs [ lang ] is None ) : return settings . LANGUAGE_CODE return langs [ lang ] return None
find known non-supported locales with fallbacks .