def update_preferred_language_codes(user_id, preferred_language_codes):
 user_settings = get_user_settings(user_id, strict=True)
 user_settings.preferred_language_codes = preferred_language_codes
 _save_user_settings(user_settings)

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