Wrong Pius...the article says Pius XI
That says Pope Pius XI, not the XII. Although, the Pius XI Wikipedia page tells me that the writing of that encyclical is partially credited to Eugenio Pacelli. Is that what you meant?
That says Pius XI, not XII.
They both were anti-nazi, particularly Pius XI. Pius XII reigned during the war, and had to be a little bit polite if he wasn't going to be carted off to some consentration camp. But Pius XI was very outspoken when Hitler started to round up catholic priests and sent them to concentration camps in - when was it? 1938? 1939? Anyway, well before the outbreak of the war. Look it up, fascinating story.