cameronyule / isodata

Rails plugin for creating Country and Language models and populating them with the relevant ISO data.

This URL has Read+Write access

Cameron Yule (author)
Tue Aug 05 09:58:23 -0700 2008
commit  762b0deaae9ce3d36d3fb609c99571d182320576
tree    1fbde78f931b77e2d9694efec247f1f36c7a9df8
parent  7244e074ed29d8fa9d07ec6410ea4a729da3218e
name age message
file MIT-LICENSE Tue Aug 05 09:54:26 -0700 2008 first commit [Cameron Yule]
file README Tue Aug 05 09:58:23 -0700 2008 updating the README [Cameron Yule]
directory db/ Tue Aug 05 09:54:26 -0700 2008 first commit [Cameron Yule]
directory generators/ Tue Aug 05 09:54:26 -0700 2008 first commit [Cameron Yule]
file init.rb Tue Aug 05 09:54:26 -0700 2008 first commit [Cameron Yule]
file install.rb Tue Aug 05 09:54:26 -0700 2008 first commit [Cameron Yule]
directory tasks/ Tue Aug 05 09:54:26 -0700 2008 first commit [Cameron Yule]
file uninstall.rb Tue Aug 05 09:54:26 -0700 2008 first commit [Cameron Yule]
README
isodata
========

Plugin for creating Country and Language models and populating them with the relevant ISO data.


Install
=======

script/plugin install git://github.com/cameronyule/isodata.git


Usage
=====

For countries;

script/generate countries
rake db:migrate
rake isodata:db:countries

For languages;

script/generate languages
rake db:migrate
rake isodata:db:languages

After using the generators, you can safely delete the plugin.


Caveats
=======

The language data that comes with this generator doesn't include macrolanguages. These are generally dialects
of a specific language or very closely related languages.

More information and a complete list of macrolanguages can be found on wikipedia.

http://en.wikipedia.org/wiki/ISO_639_macrolanguage


Credits
=======

The original source data for the ISO 3166 country codes - http://snippets.dzone.com/posts/show/1727
The original source data for the ISO 639 language codes - http://en.wikipedia.org/wiki/List_of_ISO_639-1_codes