Project class: add method to manage locale exception

Moved code from Bugzilla to manage exceptions