Add preferences option to enable/disable localization.
Handle syntax highlight setting correctly with localization enabled.