Update Application.php

Added isLocale() method to check current application locale.