I’m in the process of writing some code to do this style of country selection.
I’m developing a site that is international and needs some localized features. I’m using foreign proxies to test the features, and found this list helpful.
A very helpful (and thoughtful) guide to localization. Recommend reading BEFORE messing with the theme (or you’ll have to go undo less-well-thought-out stuff like me!).