I use gettext to translate my application. But when i want to do caching, i met the problem? How can i cache the page under different language, such as english, chinese. Then it will auto-load the related html file depend on user''s setting. Does gettext support that caching mechanism? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Does anyone have some experience about this, thanks. On 7/5/07, Ye Dingding <yedingding-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > I use gettext to translate my application. But when i want to do caching, > i met the problem? > > How can i cache the page under different language, such as english, > chinese. Then it will auto-load the related html file depend on user''s > setting. > > Does gettext support that caching mechanism? >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Hi, The newest Ruby-GetText-1.10.0 support Action/Fragment caching. class ArticlesController < ApplicationController caches_action :show # Action cache : def show : : end def create @article = Article.new(params[:article]) if @article.save expire_fragment(:action => "list") # Clear Flagment cache expire_action(:action => "show") # Clear Action cache. : : end end # app/views/articles/list.rhtml <h1>Listing articles</h1> <% cache do %> #Flagment cache. Fragment cache <% end %> HTH, On Sun, 8 Jul 2007 03:59:09 +0800 "Ye Dingding" <yedingding-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Does anyone have some experience about this, thanks. > > On 7/5/07, Ye Dingding <yedingding-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > I use gettext to translate my application. But when i want to do caching, > > i met the problem? > > > > How can i cache the page under different language, such as english, > > chinese. Then it will auto-load the related html file depend on user''s > > setting. > > > > Does gettext support that caching mechanism?-- .:% Masao Mutoh<mutoh-+e5RZkbjevhHfZP73Gtkiw@public.gmane.org> --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---