SAPPORO - The Japanese government has warned companies against dismissing or targeting foreign trainees who get pregnant while working in the country, officials said Thursday, with some women having been compelled to consider an abortion or to return home.