Globalite update
Written by matt on June 27th, 2007
Today I updated Globalite, refactoring the code and fixing some issues.
I added a bunch of aliases since I was tired of typing:
Globalite.current_language = :fr
I shortened it to
Globalite.language = :fr
But the old method is still available so it won’t break your code ;)
The major change with this update is a better support for locales. Let’s say that in our application we setup the language to :fr (French) but we didn’t specify a country. Remember that Globalite lets you have specific translations/localizations per country so you can display dates, prices properly.
Previously, if my locale was set to :fr-* then Globalite would try to load the fr.yml files and not fr-FR.yml.
If you decided to use a fr.yml file for your UI localization, you might have noticed that all the Rails core messages weren’t translated(now you know why). This update deals with this issue and if a translation isn’t found in your locale, it will look for translations in your language but from a different country and pick a random one.
I’m expecting Rails core translations in Japanese, Korean and Chinese. Feel free to email me your own file and let me know on what project you used Globalite.
Comments are closed
Recent
Articles
feed- MerbCamp 2008 SanDiego (September 15th)
- db fixtures replacement solution step by step (September 7th)
- Ruby developers don't scale (August 27th)
- Googlecharts featured on Github (June 27th)
- About Metaprogramming speed (June 18th)
- News update (June 17th)
- Avoid using metaprogramming (seriously!) (May 4th)
- BarCamp San Diego rev.3 (April 27th)
- Freezing Rails with Git (April 16th)
- Merb tip - how to freeze a project? (April 15th)
- Rails or Merb, what's best for you? (April 10th)
- Merb tips II (April 7th)
- Merb tips I (April 4th)
- How Duplo (and I) offended people (March 20th)
- Ruby on Rails: the Duplo generation (March 16th)
Comments
feed- Thomas Kilb onSexy charts in less than 5 minutes
- Jonathon Hill onSexy charts in less than 5 minutes
- Eike Herzbach onAbout Metaprogramming speed
- grosser ondb fixtures replacement solution step by step
- Bryan Ray ondb fixtures replacement solution step by step
- Matt Aimonetti ondb fixtures replacement solution step by step
- Nicolas Mérouze ondb fixtures replacement solution step by step
- Tahjappychiessers onSexy charts in less than 5 minutes
- Matt Aimonetti onRuby developers don't scale
- Gustavo Barrancos onRuby developers don't scale
- Herb onRuby developers don't scale
- Herb onRuby developers don't scale
- Ben Hughes onRuby developers don't scale
- Ben Hughes onRuby developers don't scale
- another ME onRuby developers don't scale
Archives
Archives
- September 2008 (2)
- August 2008 (1)
- June 2008 (3)
- May 2008 (1)
- April 2008 (6)
- March 2008 (4)
- February 2008 (2)
- January 2008 (2)
- December 2007 (8)
- November 2007 (5)
- October 2007 (5)
- September 2007 (6)
- August 2007 (5)
- July 2007 (11)
- June 2007 (10)
- May 2007 (7)
- April 2007 (4)
- March 2007 (3)


