Globalize plugin on Typo


#1

Hello! I’m Trying to add localization to my Typo installation with
Globalize
Plugin but, what my surprise!

  1. script/plugin script doesn’t exists. Why Typo hasn’t this script?

  2. I have tryed to checkout by hand latest Globalize version into
    vendor/plugins (plugins folder created by me), vendor and lib folders
    with
    subversion. Globalize is taken from
    http://svn.globalize-rails.org/svn/globalize/globalize/trunk.
    Then, I invoqued script/generate migrate and rake migrate, and It seems
    to
    run well; database was updated with globalize tables. But, when I use on
    views t method, application breaks with this line:

%= link_to(“edit”.t, { :controller => “admin/content”, :action =>
“edit”, :id => @article },
:class => “admintools”, :style => “display: none”, :id =>
“admin_article”) %>

Dumping this error:

undefined method `t’ for “edit”:String

Why are typo folders structure slightly different from normal Rails
applications? so, What things should I change to set globalize correctly
on
Typo?
I’m using
*typo-2.6.0_rails_1_0http://rubyforge.org/frs/shownotes.php?release_id=4771

Thanks
*


#2

Uhh, script/plugin doesn’t exist because Typo 2.6.0 is old. You might
want to try this on trunk instead (or wait for the imminent 4.0
release).


#3

Yeah and i’ll post a complete localizazed version of the current trunk
with the Localization (updated) plugin ( for rails 1.0 only), available
in english, french and dutch.