Localize shadow and boolean menu options. Fix a bug that allowed invalid values for the shadow setting.