Refactor set_locale and add language options to footer