Ruby Locale 0.1

I wanted a ruby version of the Java Locale object and couldn’t find one, so i created a project for it. Here’s the address:

It is pretty minimal, but it does contain all the current ISO country and language codes as well as a simple class for accessing them. It is also in a rails compliant plugin layout so it can just be dropped into the rails vendor/plugin directory.

The unit tests are failing, but it is just a numbering issue, which I’ll fix this afternoon or next week.


3 thoughts on “Ruby Locale 0.1

  1. You have some typos in Locale.rd, “Locale.setlocal” should be “Locale.setlocale”

    Thanks for the package 🙂


  2. Oops, sorry I misread rubyforge with sourceforge (there is another ruby-locale in Sorry


  3. No problem. That project works mainly with the system locale and the Unix method of localizing applications. It doesn’t provide any API to construct and find locales, that’s what my project is for. You should be able to use them together quite nicely. If you have, or anyone has, issues with the inter-op, just let me know (or open a bug) and I’ll fix them.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s