Update class.php

Added checklang