Permalink
Switch branches/tags
Commits on Nov 8, 2009
  1. Regenerated gemspec for version 0.1.0

    Sven Fuchs
    Sven Fuchs committed Nov 8, 2009
  2. prepare gemcutter release

    Sven Fuchs
    Sven Fuchs committed Nov 8, 2009
  3. Version bump to 0.0.0

    Sven Fuchs
    Sven Fuchs committed Nov 8, 2009
  4. added unit test to reproduce error when rails config.cache_classes is

    phuesler authored and Sven Fuchs committed Oct 10, 2009
    set to false. This is the case in development mode.
    
    The problem occurs,when the proxy class (e.g TagTranslation) exists already
    when gloablize wants to create it.
  5. Check for the existence of the proxy class because it might exist al…

    phuesler authored and Sven Fuchs committed Oct 4, 2009
    …ready.
    
     Due to rails lazy class loading using const_missing I try to load the proxy class,
     if that fails I create a new one. After that, append the globalize methods to the
     class.
    
     I did not find a way to reproduce this error with a unit test. So here is how
     you can reproduce this:
    
     1. Have a model that needs translation (e.g Tag)
     2. Create a TagTranslation model and add a custom method to it (e.g slugname)
     3. ruby script/console
     4. Tag.new (Tag class is loaded and proxy class is being created)
     5. TagTranslation.new.respond_to?(:slugname) => false but should be true
  6. backport changes from adva_cms

    Clemens Kofler and Sven Fuchs Sven Fuchs
    Clemens Kofler and Sven Fuchs authored and Sven Fuchs committed Sep 22, 2009
    * fix issue with active_support/dependencies class reloading
    * do not raise an exception on missing translations in static backend (dubious change)
    * add a clear_cache method, only clear the cache on reload (i.e. keep the stash) (dubious change)
    * add a translated_attributes method
  7. allow to set_translation_table_name on client model. use the globaliz…

    Clemens Kofler and Sven Fuchs Sven Fuchs
    Clemens Kofler and Sven Fuchs authored and Sven Fuchs committed Sep 22, 2009
    …e_proxy.table_name instead of evaluating it.
Commits on Oct 6, 2009
  1. applied elsifaka's globalize2 patches for ultra long table names. did…

    hukl committed Oct 6, 2009
    … not pull because I rewrote the tests quite a bit so its more readable.
  2. applying patch http://gist.github.com/107265 to fix issue with form b…

    oliver authored and hukl committed Oct 6, 2009
    …uilder not showing translated field values. http://github.com/joshmh/globalize2/issues/#issue/2
Commits on Sep 14, 2009
  1. use underscores instead of slashes for table names

    Clemens Kofler and Sven Fuchs
    Clemens Kofler and Sven Fuchs committed Sep 14, 2009
  2. hash long index names on translation tables

    Clemens Kofler and Sven Fuchs
    Clemens Kofler and Sven Fuchs committed Sep 14, 2009
  3. stop globalize2 from raising an exception when untranslated fields ar…

    Clemens Kofler and Sven Fuchs
    Clemens Kofler and Sven Fuchs committed Sep 14, 2009
    …e handed to create_translation_table!
  4. fix #translate to work with namespaced models

    Clemens Kofler and Sven Fuchs
    Clemens Kofler and Sven Fuchs committed Sep 14, 2009
  5. let's have a test/all script

    Clemens Kofler and Sven Fuchs
    Clemens Kofler and Sven Fuchs committed Sep 14, 2009
  6. yuck, whitespace

    Clemens Kofler and Sven Fuchs
    Clemens Kofler and Sven Fuchs committed Sep 14, 2009
  7. rename data/post.rb to data/models.rb

    Clemens Kofler and Sven Fuchs
    Clemens Kofler and Sven Fuchs committed Sep 14, 2009
Commits on Jul 21, 2009
  1. remove the index on the foreign key of the translation table when the…

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

    soey authored and hukl committed May 27, 2009
    Signed-off-by: John-P. Bader <contact@smyck.org>
Commits on May 26, 2009
  1. 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 …

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

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

    hukl committed Apr 20, 2009
    …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.
Commits on Apr 8, 2009
  1. adding set_translations method which allows to set multiple translati…

    hukl committed Apr 8, 2009
    …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
Commits on Mar 31, 2009
  1. Fixed chained backend tests -- they were failing because I18n.locale …

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

    hukl
    hukl committed Mar 28, 2009
    …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.
Commits on Feb 24, 2009
  1. added translated_locales

    joshmh committed Feb 24, 2009