Skip to content
Commits on Dec 7, 2009
  1. Merge branch 'master' of git://

    Laurynas Butkus committed Dec 8, 2009
Commits on Nov 14, 2009
  1. @svenfuchs


    svenfuchs committed Nov 14, 2009
Commits on Nov 8, 2009
  1. @svenfuchs
  2. @svenfuchs

    prepare gemcutter release

    svenfuchs committed Nov 8, 2009
  3. @svenfuchs

    Version bump to 0.0.0

    svenfuchs committed Nov 8, 2009
  4. @phuesler @svenfuchs

    added unit test to reproduce error when rails config.cache_classes is

    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.
    phuesler committed with svenfuchs Oct 10, 2009
  5. @phuesler @svenfuchs

    Check for the existence of the proxy class because it might exist al…

     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
     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 class is loaded and proxy class is being created)
     5. => false but should be true
    phuesler committed with svenfuchs Oct 4, 2009
  6. @svenfuchs

    backport changes from adva_cms

    * 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
    Clemens Kofler and Sven Fuchs committed with svenfuchs Sep 22, 2009
  7. @svenfuchs

    allow to set_translation_table_name on client model. use the globaliz…

    …e_proxy.table_name instead of evaluating it.
    Clemens Kofler and Sven Fuchs committed with svenfuchs Sep 22, 2009
Commits on Oct 6, 2009
  1. @hukl
  2. @hukl

    applied elsifaka's globalize2 patches for ultra long table names. did…

    … not pull because I rewrote the tests quite a bit so its more readable.
    hukl committed Oct 6, 2009
  3. @hukl

    applying patch to fix issue with form b…

    …uilder not showing translated field values.
    oliver committed with hukl Oct 6, 2009
Commits on Sep 14, 2009
  1. use underscores instead of slashes for table names

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

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

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

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

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

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

    Clemens Kofler and Sven Fuchs committed Sep 14, 2009
Commits on Jul 21, 2009
  1. @hukl
  2. @hukl

    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
    hukl committed Jul 21, 2009
  3. @soey @hukl

    added Rakefile for plugin testing

    Signed-off-by: John-P. Bader <>
    soey committed with hukl May 28, 2009
  4. @hukl
Commits on May 26, 2009
  1. @joshmh

    added MIT license

    joshmh committed May 26, 2009
Commits on May 1, 2009
  1. @joshmh
Commits on Apr 29, 2009
  1. @hukl

    This patch makes sure globalize2 behaves as expected when a subclass …

    …of an untranslated model is translated.
    class Comment < ActiveRecord::Base
    class TranslatedComment < Comment
      translates :content
    hukl committed Apr 29, 2009
  2. @hukl

    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
    hukl committed Apr 29, 2009
Commits on Apr 20, 2009
  1. @hukl

    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. @hukl

    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. @hukl
  2. @hukl
  3. @joshmh

    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. @joshmh
  2. @joshmh

    added translated_locales

    joshmh committed Feb 24, 2009
Something went wrong with that request. Please try again.