finalise ticket locales + improve error handling

implemented stuff is insides explained inside commits.

written by @GuillaumeGomez on  8108a126.