Permalink
Commits on Jun 30, 2009
  1. Select distinct rows

    committed Jun 30, 2009
Commits on Jun 15, 2009
Commits on May 29, 2009
  1. Fix a minor bug with namespaces

    committed May 29, 2009
Commits on May 26, 2009
  1. Fixed some more bugs

    committed May 26, 2009
  2. Added the globalize.rb file

    committed May 26, 2009
  3. Gemified the plugin

    committed May 26, 2009
  4. added MIT license

    joshmh committed May 26, 2009
Commits on May 1, 2009
Commits on Apr 29, 2009
  1. This patch makes sure globalize2 behaves as expected when a subclass …

    …of an untranslated model is translated.
    
    class Comment < ActiveRecord::Base
    end
    
    class TranslatedComment < Comment
      translates :content
    end
    hukl committed Apr 29, 2009
  2. added dependent destroy for globalize_translations. When a record wit…

    …h translated attributes is destroyed - the associated translations will be deleted as well. thanks to http://github.com/kares
    hukl committed Apr 29, 2009
Commits on Apr 20, 2009
  1. Passing options hash to reload so it doesn't break the default rails …

    …reload method.
    
    Also removed alias_method_chain for reload to keep things up to date for Rails 3.0. That change didn't break anything.
    hukl committed Apr 20, 2009
Commits on Apr 8, 2009
  1. adding set_translations method which allows to set multiple translati…

    …ons for a given translated record at once. It is possible to update only certain attributes for some locales as well leaving the other translations / attributes as they are. Options hash looks like:
    
    options {
    	:en => { :title => "Hello" }
    	:de => { :title => "Hallo", :text => "Wie gehts?"}
    }
    
    That would update only the :title on the english version of the record but updating :title and :text on the german one.
    
    Added tests as well
    hukl committed Apr 8, 2009
Commits on Mar 31, 2009
  1. Fixed chained backend tests -- they were failing because I18n.locale …

    …was set to :'en-US' somewhere else
    joshmh committed Mar 31, 2009
Commits on Mar 28, 2009
  1. Fix to make :include work. Example: Page.all(:include => :globalize_t…

    …ranslations) would collect the pages and the translations. However when you loop over the pages to puts the title, another query on the page_translations table is made for each page.
    
    This is a fix to only fetch the attributes if @record.globalize_translations.loaded? is false. 
    
    I ran the globalize2 tests but they threw 5 errors - this modification didn't add any.
    hukl committed Mar 28, 2009
Commits on Feb 24, 2009
  1. added translated_locales

    joshmh committed Feb 24, 2009
  2. added content locale support

    joshmh committed Feb 24, 2009
  3. fixed nil assign bug

    joshmh committed Feb 24, 2009
Commits on Feb 13, 2009
Commits on Feb 12, 2009
Commits on Feb 11, 2009
  1. fixed tests

    joshmh committed Feb 11, 2009
  2. added missing_translations_raise_handler

    Joshua Harvey committed Feb 11, 2009
Commits on Feb 3, 2009
  1. added adapter clearing

    Joshua Harvey committed Feb 3, 2009
Commits on Feb 1, 2009
  1. fixed caching bug when locales are switched

    Joshua Harvey committed Feb 1, 2009
  2. refactored out has_many extension for easier overriding

    Joshua Harvey committed Feb 1, 2009
Commits on Jan 30, 2009
  1. some testing notes

    Joshua Harvey committed Jan 30, 2009
  2. added support for extensions to Globalize2, via callbacks

    Joshua Harvey committed Jan 30, 2009