What is the difference between 中文 and 汉语?
In the Rosetta Stone Chinese course, I came across the following sentence:
如果你学习中文,你就会说汉语。
Is there a reason why in the two parts of that sentence, two different words are used for the Chinese language? Is there a difference between the two words? Should we always say that we learn 中文, but speak 汉语, or does it not matter?