Update version to 3.1.2
Update some flags
Add multi-language support