Tough one, and really depends on one's outlook on the facts. I would say that it is not discrimination as long as a man can take an extended leave also if he becomes a father. In other words, if a man is allowed paternity leave then theis women is not being discriminated against because of sex because the employer can argue that it would treat a man in the exact same way.