fixed locale database for templates