Jul 282006

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 Responses to “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 sf.net) 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

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">



This site uses Akismet to reduce spam. Learn how your comment data is processed.