added autopopulate for locale fields