[Rails] Re: Re: GetText: Works with en_GB and en_US, but
doesn't wi
Masao Mutoh
mutoh at highway.ne.jp
Thu Feb 9 14:04:11 GMT 2006
Hi,
On Thu, 9 Feb 2006 14:47:48 +0100
Grzegorz Daniluk <daniluk at yahoo.com> wrote:
> > Ruby-GetText-Package doesn't depend on the system locale.
> > If you have a translated po file in po/#{lang}/ correctly,
> > it will be shown the language even if your server doesn't support your
> > locale.
>
> OK I understand. I guess that there is something wrong with my gettext
> package configuration. Please look below, I execute the hello.rb
<snip>
> Works. I guess that there is a different way of changing a lang to use
> by hello example.
Ah, I see.
Ruby-GetText-Package depends on system locale if you use it on the console.
But "gettext/rails" doesn't depend on system locale.
#Because the information is from the www browser(not server side).
Here is Rails ML, so I answered the behavior of it on Rails.
P.S.
If you're interested in it, check gettext/cgi.rb.
And the url below may help you:
http://www.yotabanana.com/hiki/ruby-gettext-howto-cgi.html#How+to+get+the+locale+information+from+WWW+browser
--
.:% Masao Mutoh<mutoh at highway.ne.jp>
More information about the Rails
mailing list