Why are Harry and William know as Wales?

I noticed on the news that when Harry was doing his training he had the name Wales on his tunic.
The Royal family did change their name from Sax-coburg to Windsor after the first world war, I think. but when did the name Wales come about?
19 answers 19