Add localization support.

Also fixed the ref project issue.