def update_preferred_site_language_code(user_id, preferred_site_language_code):
 user_settings = get_user_settings(user_id, strict=True)
 user_settings.preferred_site_language_code = preferred_site_language_code
 _save_user_settings(user_settings)

def update_preferred_site_language_code ( user_id , preferred_site_language_code ) : user_settings = get_user_settings ( user_id , strict = True ) user_settings . preferred_site_language_code = preferred_site_language_code _save_user_settings ( user_settings )
updates preferred_site_language_code of user with given user_id .