fix handling of translated option values (for select attributes).