Permalink
Commits on Aug 4, 2009
  1. fixed failing test

    Karol Bucek committed Aug 4, 2009
Commits on Jul 21, 2009
  1. remove the index on the foreign key of the translation table when the…

    … table is dropped.
    
    added tests and addition to test_helper - Thank you http://github.com/sgt
    hukl committed Jul 21, 2009
  2. added Rakefile for plugin testing

    Signed-off-by: John-P. Bader <contact@smyck.org>
    soey committed with hukl May 27, 2009
Commits on May 26, 2009
  1. added MIT license

    joshmh committed May 26, 2009
Commits on May 19, 2009
  1. fixed translations of true/false values

    Karol Bucek committed May 19, 2009
  2. MERGED WITH joshm REPOSITORY

    Karol Bucek committed May 19, 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 Mar 20, 2009
  1. fixed test error - cause of change in arguments of the reset_db! test…

    … helper
    Karol Bucek committed Mar 20, 2009
  2. merged with main repository

    Karol Bucek committed Mar 20, 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
  1. extended pluralization behavour to be able to return multiple keys fo…

    …r count and fallback to the one provided
    Karol Bucek committed Feb 13, 2009
Commits on Feb 12, 2009
  1. translation method should handle returning a symbol for cases like Da…

    …teHelper.translated_date_order
    Karol Bucek committed Feb 12, 2009
  2. fixing missing I18n parent module while referencing an exception from…

    … it(in pluralizing.rb) + added test case
    Karol Bucek committed Feb 12, 2009
Commits on Feb 11, 2009
  1. fixed tests

    joshmh committed Feb 11, 2009