def locale_or_default(locale):
 if (locale not in LOCALES):
  locale = settings.LANGUAGE_CODE
 return locale

def locale_or_default ( locale ) : if ( locale not in LOCALES ) : locale = settings . LANGUAGE_CODE return locale
return locale or .