Rails core going multiligual...ever?

As I mentioned on the rails-core list, Josh Sierles and I are going to
release an i18n plugin based on Muiltilingual Rails. It also supports
translating db content via a class method, e.g.:

class Product < ActiveRecord::Base
translates :name, :description
end

Locale.set(“es_ES”)
product = Product.find 1
product.name -> “Albondigas”

Locale.set(“en_US”)
product = Product.find 1
product.name -> “Meatballs”

It also comes with a fairly complete table of languages.

My hope is that once it becomes well established as a plugin, it will
eventually be integrated into rails core. If anybody want to check out
the beta code, send me an email at [email protected] and I’ll send you
the subversion url. We need help with testing and docs.

Josh Harvey

Julian ‘Julik’ Tarkhanov wrote:

They don’t care. None of the core users of Rails need this
functionality as I know. The answer will be “make a plugin”.

Muiltilingual Rails project was promising, I think it could have
given Rails a good foundation - but will parties involved
agree to the ways it has to do stuff?

Hi Josha,

Could you please send me the svn url.

Thanks,
Peter

Hi Josha, Could yoy please send me the svn url?

Thank you and have a nice day

Alejandro

On 10-nov-2005, at 22:34, Joshua Harvey wrote:

It also comes with a fairly complete table of languages.
Josh Harvey

Please count me in

Hello all,

(Sorry not sure if this was sent or not - sent from the wrong email
address)

I’m having a hell of a time getting Rails running under Apache for
Windows. I’ve created a rails app- myapp - and run it under webrick and
it works fine. I’ve followed the instructions on

http://wiki.rubyonrails.com/rails/pages/Fast+CGI+and+Apache2+for+Windows+XP

and I simply can’t get it working at all. Does anyone have any pointers
to alternative setup instructions or have any suggestions? Basically it
works to the point of:

"Now open a browser and type in ?\YourRailsAppName?

you should load the default Welcome to Rails page with blazing \FastCGI
speeds."

but if i was to do \MyApp\friends\view - for example, it can’t find the
file which leads me to believe that the rails side of things is not
working and it was simply loading the default welcome page as an
ordinary html page.

I’m going absolutely nuts over this… any help would really really be
appreciated!

Thanks,

Alastair

Did you modify the .htaccess to use a RewriteBase?

From .htaccess:

RewriteBase /retainit

From httpd.conf:

Alias /retainit “C:/rails/retainit/public/”

<Directory “C:/rails/retainit/public”>
AddHandler fastcgi-script .fcgi
Options +ExecCGI
AllowOverride all
Allow from all
Order allow,deny

So basically you set an Alias in your httpd.conf and a RewriteBase in
the .htaccess. Below is my full .htaccess file. The instructions on
the site should work. More info on your exact error message and what
works and what doesn’t would be helpful.

Charles

# General Apache options
AddHandler fastcgi-script .fcgi
AddHandler cgi-script .cgi
Options +FollowSymLinks +ExecCGI

# If you don't want Rails to look in certain directories,
# use the following rewrite rules so that Apache won't rewrite certain
requests
#
# Example:
#   RewriteCond %{REQUEST_URI} ^/notrails.*
#   RewriteRule .* - [L]

# Redirect all requests not available on the filesystem to Rails
# By default the cgi dispatcher is used which is very slow
#
# For better performance replace the dispatcher with the fastcgi one
#
# Example:
#   RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]
RewriteEngine On

# If your Rails application is accessed via an Alias directive,
# then you MUST also set the RewriteBase in this htaccess file.
#
# Example:
#   Alias /myrailsapp /path/to/myrailsapp/public
#   RewriteBase /myrailsapp
RewriteBase /retainit

RewriteRule ^$ index.html [QSA]
RewriteRule ^([^.]+)$ $1.html [QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]

# In case Rails experiences terminal errors
# Instead of displaying this message you can supply a file here which
will be rendered instead
#
# Example:
#   ErrorDocument 500 /500.html

ErrorDocument 500 "<h2>Application error</h2>Rails ap```