twitter/twitter-cldr-rb — pull request #93 by jasonkb (2013-01-09 20:56:43+00:00)
Title: Territories

Hi Cameron and all,

I am an engineer at Airbnb. Thank you for this wonderful gem!

I want to localize our country selector (on e.g. https://www.airbnb.com/rooms/new where you choose the "Country" of your new listing) so that the names of the countries are translated.

To do this, I thought the best way would be to add a class to TwitterCLDR to get at the territory names in the CLDR locales resource. What do you think of this pull request? It makes the "territories" component of the locales resource be extracted when "rake update:locales_resources" is run, and adds a TwitterCLDR::Shared::Territories class that makes it easy to translate country/territory names, similar to how TwitterCLDR::Shared::Languages makes it easy to translate language names.

Thank you!
Jason