def get_locale_path(lang_code=None):
 if (not lang_code):
  return settings.USER_WRITABLE_LOCALE_DIR
 else:
  return os.path.join(settings.USER_WRITABLE_LOCALE_DIR, lcode_to_django_dir(lang_code))

def get_locale_path ( lang_code = None ) : if ( not lang_code ) : return settings . USER_WRITABLE_LOCALE_DIR else : return os . path . join ( settings . USER_WRITABLE_LOCALE_DIR , lcode_to_django_dir ( lang_code ) )
returns the location of the given language code .