cleanup translation handling

get translation of locale field right.