logo       

Re: [Rails I18n] GLoc: how to "reload" the translations and a suggestion: msg#00016

lang.ruby.rails.i18n

Subject: Re: [Rails I18n] GLoc: how to "reload" the translations and a suggestion

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


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise