From kadoudal at wanadoo.fr Sat Jul 1 09:54:05 2006 From: kadoudal at wanadoo.fr (Kad Kerforn) Date: Sat, 1 Jul 2006 15:54:05 +0200 Subject: [Rails I18n] [PATCH] to Globalize::Currency In-Reply-To: <200606211438.53111.roland@rv-net.de> References: <200606211438.53111.roland@rv-net.de> Message-ID: unknown wrote: > Hi there, > > this a small patch fixing Globalize::Currency::parse, to not only parse > US > like currency strings. It uses now the Locale.active settings. > hadn't time to run any tests, so status is: 'it works for me' :) > > Greetings, > Roland > [i'm not subscribed to this list, so please cc me] where is your patch Roland ? kadoudal at wanadoo.fr -- Posted via http://www.ruby-forum.com/. From kadoudal at wanadoo.fr Sat Jul 1 10:36:35 2006 From: kadoudal at wanadoo.fr (Kadoudal) Date: Sat, 1 Jul 2006 16:36:35 +0200 Subject: [Rails I18n] strange behaviour in Currency Message-ID: I installed Globalize today wo any problem.. config/environment.rb : .... include Globalize Locale.set_base_language('fr-FR') date is correctly localized, static texte too. . my only problem is with current... in my DB (test data) I have a price column (integer) the Model is : class Product < ActiveRecord::Base composed_of :price, :class_name => "Globalize::Currency", :mapping => [ %w(price cents) ] the list view display the price <%= product.date_available.localize("%d %B %Y") %>
$<%= product.price %> but I get : (the dollar currency is still there !) 26 Janvier 2005 $30,00 ? LAst question is how I define the price entry in my view i suppose that what I wrote is now sufficient :


<%= text_field 'product', 'price' %>

thansk for yoru help to a newrubies..... kad From kadoudal at wanadoo.fr Mon Jul 3 01:35:20 2006 From: kadoudal at wanadoo.fr (Kadoudal) Date: Mon, 3 Jul 2006 07:35:20 +0200 Subject: [Rails I18n] Globalizing Currency... last line Message-ID: it's quite running smoothly... at least I get correct prices in local format... but I cannot yet create or update it : my Product model is defined as following : class Product < ActiveRecord::Base composed_of :price, :class_name => "Globalize::Currency", :mapping => [ %w(price cents) ] attr_accessor :lp #not stored in DB, used to display formatted price in form the form as following :


<%= text_field 'product', 'lp' %>

and the controller def new @product = Product.new @product.price = Currency.parse(0).format end def create @product = Product.new(@params[:product]) if @product.save ..... def edit @product = Product.find(@params[:id]) @product.lp = @product.price.format end def update @product = Product.find(@params[:id]) @product.price = Currency.parse(@params[:lp]) if @product.update_attributes(@params[:product]) ..... else render_action 'edit' end end when trying to create a new Product I get the message : undefined method `cents' for "0,00 ?":String when modifying an existing price in DB .... there is no update ! what's wrong... ?? thanks kad -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/railsi18n-discussion/attachments/20060703/35ae894c/attachment.html From kadoudal at wanadoo.fr Mon Jul 3 04:13:40 2006 From: kadoudal at wanadoo.fr (Kadoudal) Date: Mon, 3 Jul 2006 10:13:40 +0200 Subject: [Rails I18n] Globalize Currencies Message-ID: I am quite there ... in creating the price , from the form pots, I should have written : @product = Product.new(@params[:product]) @product.price = Currency.parse(@product[:lp]) # -> gives me the correct price in DB when updating .. @product.price.format # ->will display the correct string in the text field BUT, if I update the value in the form , "150,00 ?" will give 1500000 cents !!!!! (incredible way to make money I agree..) irb(#):001:0> @p1.inspect => "\"150,00 ?\"" irb(#):002:0> p = Currency.parse(@p1) => # what's wrong with the parse in this case ? kad From roland at rv-net.de Mon Jul 3 07:31:01 2006 From: roland at rv-net.de (Roland) Date: Mon, 3 Jul 2006 13:31:01 +0200 Subject: [Rails I18n] [PATCH] to Globalize::Currency In-Reply-To: References: <200606211438.53111.roland@rv-net.de> Message-ID: Hi Kad, i posted via email to the list, the patch didn't make it through i think. Here is an url: http://web02.rv-net.de/currency.diff it fixes a secound bug now: parsing a string like '1.9' gave you 1.09$, but should be 1.90$. Greetings, Roland Kad Kerforn wrote: > unknown wrote: >> Hi there, >> >> this a small patch fixing Globalize::Currency::parse, to not only parse >> US >> like currency strings. It uses now the Locale.active settings. >> hadn't time to run any tests, so status is: 'it works for me' :) >> >> Greetings, >> Roland >> [i'm not subscribed to this list, so please cc me] > > where is your patch Roland ? > > kadoudal at wanadoo.fr -- Posted via http://www.ruby-forum.com/. From roland at rv-net.de Mon Jul 3 07:43:03 2006 From: roland at rv-net.de (Roland) Date: Mon, 3 Jul 2006 13:43:03 +0200 Subject: [Rails I18n] Globalize Currencies In-Reply-To: References: Message-ID: Hi Kad, this is exactly what i patched, read the other thread :) Greetings, Roland Kad Kerforn wrote: > I am quite there ... > > in creating the price , from the form pots, I should have written : > @product = Product.new(@params[:product]) > @product.price = Currency.parse(@product[:lp]) > > # -> gives me the correct price in DB > > when updating .. > > @product.price.format # ->will display the correct string in > the text field > > BUT, if I update the value in the form , "150,00 ?" will give > 1500000 cents !!!!! (incredible way to make money I agree..) > > irb(#):001:0> @p1.inspect => > "\"150,00 ?\"" > irb(#):002:0> p = Currency.parse(@p1) => > # > > what's wrong with the parse in this case ? > > kad -- Posted via http://www.ruby-forum.com/. From kadoudal at wanadoo.fr Mon Jul 3 08:29:16 2006 From: kadoudal at wanadoo.fr (Kadoudal) Date: Mon, 3 Jul 2006 14:29:16 +0200 Subject: [Rails I18n] Locale Currency - final run Message-ID: As Currency.parse(@localprice) can only work with us formatted string (as stated by u Josh) I transformed my locale strings into a us one before sending it to parse : @p1 = @localprice.tr".,",",." => "125.256,25 ?" -> "125,256.25 ?" @product.price = Currency.parse(@p1) => @product.price.cents = 12525625 and it works ( I get the correct @cents ready to be stored..) but then executing (either runtime or breakpoint) @product.save RuntimeError: can only compare with money or integer ./script/../config/../vendor/plugins/trunk/lib/globalize/models/ currency.rb:64:in `<=>' script/../config/../app/models/product.rb:29:in `validate' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.3/lib/ active_record/validations.rb:753:in `valid_without_callbacks' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.3/lib/ active_record/callbacks.rb:306:in `valid?' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.3/lib/ active_record/validations.rb:723:in `save_without_transactions' ...... strange , @cents is an Integer type.... and price in my DB too..... what else am I missing ? kad From kadoudal at wanadoo.fr Mon Jul 3 10:55:52 2006 From: kadoudal at wanadoo.fr (Kadoudal) Date: Mon, 3 Jul 2006 16:55:52 +0200 Subject: [Rails I18n] [PATCH] to Globalize::Currency Message-ID: <994E5B66-9269-4851-BFEB-B3911CB27E5D@wanadoo.fr> Thanks Roland, got it ! parsing is correct, I get my @cents as it should be.. unfortunatly when saving @product.save I get an error from Globalize::currency (not linked to your patch... I also got it wo the patc...? RuntimeError: can only compare with money or integer I believe it comes from my validations in Product class.... Hurry up Germany to the final... !!! From kadoudal at wanadoo.fr Mon Jul 3 11:22:14 2006 From: kadoudal at wanadoo.fr (Kadoudal) Date: Mon, 3 Jul 2006 17:22:14 +0200 Subject: [Rails I18n] Locale Currency format Message-ID: Thanks to Josh and Roland, we'll be close to get full currency localization ! parsing with locale settings seems to be fine (at least of amount below billions of euros... I don't intend to get over , I'm not Bill Gates !) if formatting with locale settings is fine for amounts below thousands.... it's not above : 1,245,568,45 ? (<%= product.price.format %> 1,245,568,45 (<%= product.price.amount %> using locale settings thousand and decimal separators, it shoud be (France and Germany at least..) 1.245.568,45 I'd like to get into it but I am just a DB (David Bowie... beginner) kad From roland at rv-net.de Mon Jul 3 12:30:07 2006 From: roland at rv-net.de (Roland) Date: Mon, 3 Jul 2006 18:30:07 +0200 Subject: [Rails I18n] [PATCH] to Globalize::Currency In-Reply-To: <994E5B66-9269-4851-BFEB-B3911CB27E5D@wanadoo.fr> References: <994E5B66-9269-4851-BFEB-B3911CB27E5D@wanadoo.fr> Message-ID: <2b66502400b64294894046e78a5742c5@ruby-forum.com> Kad Kerforn wrote: > Thanks Roland, got it ! > parsing is correct, I get my @cents as it should be.. > > unfortunatly when saving @product.save > I get an error from Globalize::currency (not linked to your > patch... I also got it wo the patc...? > > RuntimeError: can only compare with money or integer > > I believe it comes from my validations in Product class.... yes, looks like... This is from your other mail: > script/../config/../app/models/product.rb:29:in `validate' could you show us your product.rb? or look at it, line 29, somewhere there might be the problem :) (maybe you are comparing with a float? something like 1.5?) > Hurry up Germany to the final... !!! we're trying hard :) what's with france? :) Greetings, Roland -- Posted via http://www.ruby-forum.com/. From roland at rv-net.de Mon Jul 3 12:44:40 2006 From: roland at rv-net.de (Roland) Date: Mon, 3 Jul 2006 18:44:40 +0200 Subject: [Rails I18n] Locale Currency format In-Reply-To: References: Message-ID: <0915959077b0e52d8b05384443abb288@ruby-forum.com> Kad Kerforn wrote: > Thanks to Josh and Roland, we'll be close to get full currency > localization ! > > parsing with locale settings seems to be fine (at least of amount > below billions of euros... I don't intend to get over , I'm not Bill > Gates !) > if formatting with locale settings is fine for amounts below > thousands.... it's not above : > > 1,245,568,45 ? (<%= product.price.format %> > 1,245,568,45 (<%= product.price.amount %> > > using locale settings thousand and decimal separators, it shoud be > (France and Germany at least..) hmmm... i'm using: Locale.set_base_language('de-DE'); Locale.set('de-DE'); and getting this afterwards: 999.500,00 ? ok, here it is: selected FR from the db: select * from globalize_countries where code='FR'; id | code | english_name | date_format | currency_format | currency_code | thousands_sep | decimal_sep | currency_decimal_sep | number_grouping_scheme ----+------+--------------+-------------+-----------------+---------------+---------------+-------------+----------------------+------------------------ 73 | FR | France | | %n ? | EUR | | | , | , | western looks like someone has forgotten to set a french thousands seperator :) do something like that in your db console: update globalize_countries set thousands_sep='.' where code='FR'; Have fun, Roland -- Posted via http://www.ruby-forum.com/. From bschmeil at autoscout24.com Tue Jul 4 05:43:07 2006 From: bschmeil at autoscout24.com (Martin Bernd Schmeil) Date: Tue, 4 Jul 2006 11:43:07 +0200 Subject: [Rails I18n] Suggested code for auto finding the client locale In-Reply-To: <8a7ce02e0605151419n1f02fa1x262c11833b3eecf9@mail.gmail.com> References: <8a7ce02e0605151419n1f02fa1x262c11833b3eecf9@mail.gmail.com> Message-ID: <35093c56e7e0287b07dae0bbd29d6b8b@ruby-forum.com> Another mail on the Globalize mailing list about this topic by Thiago Arrais, (Globalize flavor this time): -- begin -- Here is the code I came up with: http://www.textsnippets.com/posts/show/546 It considers not only the accept-language field, but other user options. In order of precedence they are: - Explicit locale passed on URL - Previous language selection (stored on user session) - Accept-Language field contents - Default locale You may package this snippet with Globalize in any way you'd like. Cheers, Thiago Arrais -- end -- -- Posted via http://www.ruby-forum.com/. From bschmeil at autoscout24.com Tue Jul 4 10:47:00 2006 From: bschmeil at autoscout24.com (Martin Bernd Schmeil) Date: Tue, 4 Jul 2006 16:47:00 +0200 Subject: [Rails I18n] Globalize walkthrough In-Reply-To: References: Message-ID: If you are interested in evaluating Globalize try http://wiki.globalize-rails.org/wiki/pages/Examplary+application This is an excellent writing that helps you through all the hassles you might have with setting up Globalize. And you might learn about a couple of other fine rails things. I'm currently trying this with Oracle, more about this in a followup posting. A big thanks to szymek! - Bernd -- Posted via http://www.ruby-forum.com/. From nbibler at nathanielbibler.com Wed Jul 5 11:05:02 2006 From: nbibler at nathanielbibler.com (Nathaniel Bibler) Date: Wed, 05 Jul 2006 11:05:02 -0400 Subject: [Rails I18n] Globalize Currency Negative Value Error Message-ID: <44ABD51E.3060307@mail.nathanielbibler.com> I've got the Globalize-1.1 release installed and have been using the globalize plugin for a month or so now. My base locale is en-US, Ruby 1.8.4 (2005-12-24), Rails 1.1.2. Here's the problem taken from ./script/console: Loading development environment. >> Globalize::Currency.new("-340") => # >> Globalize::Currency.new("-340").to_s => "-4.60" >> Globalize::Currency.new("340").to_s => "3.40" >> Globalize::Currency.new("-340").to_s => "-4.60" >> Locale.set("en-US") => ... >> Globalize::Currency.new("-340").format => "-$4.60" >> Globalize::Currency.new("340").format => "$3.40" Any insights and/or patches would be greatly appreciated. Nate From bschmeil at autoscout24.com Thu Jul 6 12:42:25 2006 From: bschmeil at autoscout24.com (Martin Bernd Schmeil) Date: Thu, 6 Jul 2006 18:42:25 +0200 Subject: [Rails I18n] Making Globalize work with Oracle (HowTo) Message-ID: I wrote a small HowTo for szymeks tutorial http://wiki.globalize-rails.org/wiki/pages/Examplary+application+Oracle -- Posted via http://www.ruby-forum.com/. From joshmh at gmail.com Thu Jul 6 12:49:50 2006 From: joshmh at gmail.com (Joshua Harvey) Date: Thu, 6 Jul 2006 19:49:50 +0300 Subject: [Rails I18n] Making Globalize work with Oracle (HowTo) In-Reply-To: References: Message-ID: <3527dd260607060949p23af9227j49afe2ef3bf41655@mail.gmail.com> Thanks Martin, should be very helpful! -- Josh On 7/6/06, Martin Bernd Schmeil wrote: > I wrote a small HowTo for szymeks tutorial > > http://wiki.globalize-rails.org/wiki/pages/Examplary+application+Oracle > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Railsi18n-discussion mailing list > Railsi18n-discussion at rubyforge.org > http://rubyforge.org/mailman/listinfo/railsi18n-discussion > From japgolly at gmail.com Thu Jul 6 17:35:12 2006 From: japgolly at gmail.com (David Barri) Date: Fri, 7 Jul 2006 07:35:12 +1000 Subject: [Rails I18n] GLoc: how to "reload" the translations and a suggestion In-Reply-To: <200607061433.17674.m.bunkus@linet-services.de> References: <200607061433.17674.m.bunkus@linet-services.de> Message-ID: Hi, In development mode, the strings are automatically reloaded anytime one of the string bundle files are updated (it uses the timestamp to check). About how to install GLoc, i will be sure to include installation instructions in the README in the next version. You simply extract gloc in to a subdirectory in vendor/plugins. You don't need to add any require statements to you environment.rb because rails will automatically run vendor/plugins/gloc/init.rb. Here is an example of what I do add to my environment.rb though (for a en/ja webapp): GLoc.set_config :default_language => :ja GLoc.clear_strings_except :en, :ja GLoc.set_charset :utf8 GLoc.set_kcode Hope that helps + glad u like Gloc. ;-) Golly From elibkr at gmail.com Thu Jul 6 19:07:44 2006 From: elibkr at gmail.com (Eli Kroumova) Date: Fri, 7 Jul 2006 01:07:44 +0200 Subject: [Rails I18n] Globalize and acts_as_versioned Message-ID: Is there anybody who had used Globalize and acts_as_versioned together? What I am trying to do is maintain different versions for a page with translations in different languages for each version. Is it possible to use Globalize and acts_as_versioned together to solve this problem? Is there a better way to do this? -- Posted via http://www.ruby-forum.com/. From christopher.k.hall at gmail.com Tue Jul 11 08:02:29 2006 From: christopher.k.hall at gmail.com (Chris) Date: Tue, 11 Jul 2006 14:02:29 +0200 Subject: [Rails I18n] issues with globalize code from Rails Recipes Message-ID: I'm looking into using globalize for our corp intranet. I'm following the instructions from the Rails Recipes book. One issue I have come across involves the following snippet of code: class ApplicationController < ActionController::Base after_filter :set_charset def set_charset unless @headers["Content-Type"] =~ /charset/i @headers["Content-Type"] ||= "" @headers["Content-Type"] += "; charset=utf-8" end end end this is directly from the book. what i am noticing is that the response headers are coming back to the browser as: Content-Type: ;charset=utf-8 notice there is no actual content-type. if i force it to text/html @headers["Content-Type"] ||= "text/html" i then see that the content-type is now set correctly and rjs appears to still work so I am wondering if this is a typo in the code from the book or is it something more. Chris -- Posted via http://www.ruby-forum.com/. From cva at pobox.com Tue Jul 18 13:33:07 2006 From: cva at pobox.com (Chris Anderson) Date: Tue, 18 Jul 2006 19:33:07 +0200 Subject: [Rails I18n] Mailing List? Message-ID: <50c8f236f1ef2b3a341948e5e6e8999b@ruby-forum.com> Is this the same as the users at list.globalize-rails.org list? Some of the posts seem to be the same, but I just posted one to that list which isn't showing up here... -- Posted via http://www.ruby-forum.com/. From cva at pobox.com Tue Jul 18 15:10:13 2006 From: cva at pobox.com (Chris Anderson) Date: Tue, 18 Jul 2006 21:10:13 +0200 Subject: [Rails I18n] Globalize vs. GetText for static text Message-ID: I have been evaluating both Globalize and GetText for an application where I will be primarily translating static strings (i.e. I'm not translating values in the model). I initially preferred Globalize because it seemed to be a more rails-ish way to do things, but I'm somewhat confused about how I would actually use Globalize for my task. As I understand, Globalize stores all of it's translated strings in a database. These strings (unless you manually make a translation call) aren't created until the first time the application accesses that particular string. My question is how do people manage these strings in the build/deployment environment? There are three parts to this 1) how to migrate these strings to a new database 2) how to ensure that if the base translation changes that the dependent translations are flagged for update 3) how to get a complete list of strings which need to be translated. I admit that I'm approaching this problem in a GetText sort of way so I'm hoping that I'm just missing something fundamental in Globalize which will address these issues. I can imagine it wouldn't be difficult for me to add some of this functionality, but I didn't want to reinvent the wheel. Any guidance would be appreciated, cva -- Posted via http://www.ruby-forum.com/. From cva at pobox.com Tue Jul 18 17:51:52 2006 From: cva at pobox.com (Chris Anderson) Date: Tue, 18 Jul 2006 23:51:52 +0200 Subject: [Rails I18n] Mailing List? In-Reply-To: <50c8f236f1ef2b3a341948e5e6e8999b@ruby-forum.com> References: <50c8f236f1ef2b3a341948e5e6e8999b@ruby-forum.com> Message-ID: <7ec026905e6051ccf9f3f0e331312b15@ruby-forum.com> Nevermind, I think I figured it out. It seems the list archive link on the globalize-rails points to an archive of this list instead of users at list.globalize-rails.org. Chris Anderson wrote: > Is this the same as the users at list.globalize-rails.org list? Some of the > posts seem to be the same, but I just posted one to that list which > isn't showing up here... -- Posted via http://www.ruby-forum.com/. From bschmeil at autoscout24.com Thu Jul 20 07:56:41 2006 From: bschmeil at autoscout24.com (Martin bernd Schmeil) Date: Thu, 20 Jul 2006 13:56:41 +0200 Subject: [Rails I18n] Mailing List? In-Reply-To: <7ec026905e6051ccf9f3f0e331312b15@ruby-forum.com> References: <50c8f236f1ef2b3a341948e5e6e8999b@ruby-forum.com> <7ec026905e6051ccf9f3f0e331312b15@ruby-forum.com> Message-ID: <950297bb9b83ffcc97939b005b1af681@ruby-forum.com> As far as I know there's still no archive for the *GLOBALIZE* mailing list. *THIS* is the *Rails I18n* mailing list. I'm subscribed to both and "forwarded" a couple of interesting globalize mailing list postings. -- Posted via http://www.ruby-forum.com/. From e_a_n at hotpop.com Thu Jul 20 15:55:12 2006 From: e_a_n at hotpop.com (Ean) Date: Thu, 20 Jul 2006 21:55:12 +0200 Subject: [Rails I18n] Localizing dates with Globalize. How? (missing date_format) Message-ID: <5034ebe49527e9733890e5a857e63088@ruby-forum.com> Hi *, I'm trying to localize dates with the Globalize plugin but the date_format column in my countries table is NULL everywhere. I checked to SVN repo and even the latest CSV files don't seem to include this information. Am I missing something here? Cheers, Ean -- Posted via http://www.ruby-forum.com/. From gnugnaman at tiscalinet.it Sun Jul 23 09:56:47 2006 From: gnugnaman at tiscalinet.it (Giovanno Zangrolli) Date: Sun, 23 Jul 2006 15:56:47 +0200 Subject: [Rails I18n] arrays Message-ID: Hi, can anyone tell me how to list all the elements of an array into a view page? Thanks -- Posted via http://www.ruby-forum.com/. From kadoudal at wanadoo.fr Mon Jul 24 02:17:21 2006 From: kadoudal at wanadoo.fr (Kadoudal) Date: Mon, 24 Jul 2006 08:17:21 +0200 Subject: [Rails I18n] AJAX link_to_remote or form_remote_tag Message-ID: <3B63A25D-1886-4F8D-9428-1BD344177F47@wanadoo.fr> In one of my forms, I have 2 date input fields (start_date and end_date) each one depending on the other ( need to add/substract variable period) I wrote that , but how the methods start_changed or end_changed can modify the date value to add/sbstract a period before the replacement of teh corresponding div.. ? <%= link_to_remote("starting_date", :update => 'dd_enddate', url => {:action => :start_changed} ) %>
<%= text_field "bookings", "startdate", options = {:class => 'format-d-m-y', :maxlength => "15" } %>
<%= link_to_remote("starting_date", :update => 'dd_startdate', url => {:action => :end_changed} ) %>
<%= text_field "bookings", "enddate", options = {:class => 'format-d-m-y', :maxlength => "15" } %>
or should I use a form_remote_tag ? but these 2 fields area already within a form ... does it matter ? thanks for your help joss From g0nzo at o2.pl Tue Jul 25 08:38:40 2006 From: g0nzo at o2.pl (Szymek ---) Date: Tue, 25 Jul 2006 14:38:40 +0200 Subject: [Rails I18n] Localizing dates with Globalize. How? (missing date_form In-Reply-To: <5034ebe49527e9733890e5a857e63088@ruby-forum.com> References: <5034ebe49527e9733890e5a857e63088@ruby-forum.com> Message-ID: <66968e46671e8ec8733975112121bdb6@ruby-forum.com> Hi! You can check this tutorial: http://www.globalize-rails.org/wiki/pages/Examplary+application Chapter 4.4 describes how to translate dates. -- Posted via http://www.ruby-forum.com/. From yashgt at gmail.com Wed Jul 26 09:50:45 2006 From: yashgt at gmail.com (Yash Ganthe) Date: Wed, 26 Jul 2006 19:20:45 +0530 Subject: [Rails I18n] How to Globalize using variants of templates? Message-ID: <4f428e7b0607260650o38a19f6an56aa6dd422b7ecf7@mail.gmail.com> Hi, We have a web application running on Ruby on Rails 1.0, with all RHTML files stored in the standard app/views/controller directories. The static content, messages, etc. in all the templates are in US English. We hope to release the website in other languages. We are considering the use of the Globalize plugin from http://svn.globalize-rails.org/svn/globalize/globalize/trunk/ The layout of the pages is unlikely to change for most of the languages. All we need to do is call the translate method for all static content as: "".translate to get the text translated in the new language. However, in case of some languages like Arabic, the entire layout of all pages will have to be changed. The RHTMLs themselves will have to be different. This may also be the case for some other languages for which the static text does not align properly and we are forced to create still more variants of the RHTMLs. How do we make sure our application has a set of default templates that are used if the corresponding localized templates are not present? Is there something we need to do in routes.rb? How will Rails locate the template to be used for rendering? Thanks, Yash