add locale function in View and PHP